20 lines
987 B
Docker
20 lines
987 B
Docker
FROM bitnami/minideb:stretch
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl procps unzip wget
|
|
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/kafka-exporter-1.2.0-1-linux-amd64-debian-9.tar.gz && \
|
|
echo "6291d3d8d8964f9308426dc6328e5c1b5bd4b716a8ea2bd227ea3e84f991495b /tmp/bitnami/pkg/cache/kafka-exporter-1.2.0-1-linux-amd64-debian-9.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/kafka-exporter-1.2.0-1-linux-amd64-debian-9.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/kafka-exporter-1.2.0-1-linux-amd64-debian-9.tar.gz
|
|
|
|
ENV BITNAMI_APP_NAME="kafka-exporter" \
|
|
BITNAMI_IMAGE_VERSION="1.2.0-debian-9-r103" \
|
|
PATH="/opt/bitnami/kafka-exporter/bin:$PATH"
|
|
|
|
EXPOSE 9308
|
|
|
|
WORKDIR /opt/bitnami/kafka-exporter
|
|
USER 1001
|
|
ENTRYPOINT [ "kafka_exporter" ]
|