39 lines
1.9 KiB
Docker
39 lines
1.9 KiB
Docker
FROM docker.io/bitnami/minideb:bullseye
|
|
ENV HOME="/" \
|
|
OS_ARCH="amd64" \
|
|
OS_FLAVOUR="debian-11" \
|
|
OS_NAME="linux"
|
|
|
|
LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \
|
|
org.opencontainers.image.description="Application packaged by Bitnami" \
|
|
org.opencontainers.image.ref.name="1.6.4-debian-11-r25" \
|
|
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/kapacitor" \
|
|
org.opencontainers.image.title="kapacitor" \
|
|
org.opencontainers.image.vendor="VMware, Inc." \
|
|
org.opencontainers.image.version="1.6.4"
|
|
|
|
COPY prebuildfs /
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl gzip procps tar wget
|
|
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/kapacitor-1.6.4-152-linux-amd64-debian-11.tar.gz && \
|
|
echo "321e72c79fdc169a7e0fa4e77eef76a9cc0bf4b52c9048fed16ab27f2ae22802 /tmp/bitnami/pkg/cache/kapacitor-1.6.4-152-linux-amd64-debian-11.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/kapacitor-1.6.4-152-linux-amd64-debian-11.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/kapacitor-1.6.4-152-linux-amd64-debian-11.tar.gz
|
|
RUN apt-get update && apt-get upgrade -y && \
|
|
rm -r /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN chmod g+rwX /opt/bitnami
|
|
RUN mkdir -p /bitnami/kapacitor && chmod g+rwX /bitnami/kapacitor
|
|
|
|
ENV APP_VERSION="1.6.4" \
|
|
BITNAMI_APP_NAME="kapacitor" \
|
|
KAPACITOR_DATA_DIR="/bitnami/kapacitor" \
|
|
KAPACITOR_LOAD_DIR="/bitnami/kapacitor/load" \
|
|
KAPACITOR_REPLAY_DIR="/bitnami/kapacitor/replay" \
|
|
KAPACITOR_STORAGE_BOLTDB="/bitnami/kapacitor/kapacitor.db" \
|
|
KAPACITOR_TASK_DIR="/bitnami/kapacitor/tasks" \
|
|
PATH="/opt/bitnami/kapacitor/bin:$PATH"
|
|
|
|
USER 1001
|
|
CMD [ "kapacitord" ]
|