21 lines
1.0 KiB
Docker
21 lines
1.0 KiB
Docker
FROM bitnami/minideb:stretch
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates wget
|
|
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/mongodb-exporter-0.10.0-0-linux-amd64-debian-9.tar.gz && \
|
|
echo "c6e8330ce15e42568b8fe5bee42f5eda33900ecafddb0e489b7db44893bf6dda /tmp/bitnami/pkg/cache/mongodb-exporter-0.10.0-0-linux-amd64-debian-9.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/mongodb-exporter-0.10.0-0-linux-amd64-debian-9.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/mongodb-exporter-0.10.0-0-linux-amd64-debian-9.tar.gz
|
|
RUN ln -sf /opt/bitnami/mongodb-exporter/bin/mongodb_exporter /bin/mongodb_exporter
|
|
|
|
ENV BITNAMI_APP_NAME="mongodb-exporter" \
|
|
BITNAMI_IMAGE_VERSION="0.10.0-debian-9-r39" \
|
|
PATH="/opt/bitnami/mongodb-exporter/bin:$PATH"
|
|
|
|
EXPOSE 9216
|
|
|
|
WORKDIR /opt/bitnami/mongodb-exporter
|
|
USER 1001
|
|
ENTRYPOINT [ "mongodb_exporter" ]
|