76 lines
5.1 KiB
Docker
76 lines
5.1 KiB
Docker
FROM docker.io/bitnami/minideb:bullseye
|
|
|
|
ARG TARGETARCH
|
|
|
|
LABEL org.opencontainers.image.authors="https://bitnami.com/contact" \
|
|
org.opencontainers.image.description="Application packaged by Bitnami" \
|
|
org.opencontainers.image.ref.name="2.4.13-debian-11-r0" \
|
|
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/argo-cd" \
|
|
org.opencontainers.image.title="argo-cd" \
|
|
org.opencontainers.image.vendor="VMware, Inc." \
|
|
org.opencontainers.image.version="2.4.13"
|
|
|
|
ENV HOME="/" \
|
|
OS_ARCH="${TARGETARCH:-amd64}" \
|
|
OS_FLAVOUR="debian-11" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl git git-lfs gnupg libc6 openssh-client procps
|
|
RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \
|
|
if [ ! -f kustomize-4.5.7-2-linux-${OS_ARCH}-debian-11.tar.gz ]; then \
|
|
curl -SsLf https://downloads.bitnami.com/files/stacksmith/kustomize-4.5.7-2-linux-${OS_ARCH}-debian-11.tar.gz -O ; \
|
|
curl -SsLf https://downloads.bitnami.com/files/stacksmith/kustomize-4.5.7-2-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -O ; \
|
|
fi && \
|
|
sha256sum -c kustomize-4.5.7-2-linux-${OS_ARCH}-debian-11.tar.gz.sha256 && \
|
|
tar -zxf kustomize-4.5.7-2-linux-${OS_ARCH}-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \
|
|
rm -rf kustomize-4.5.7-2-linux-${OS_ARCH}-debian-11.tar.gz kustomize-4.5.7-2-linux-${OS_ARCH}-debian-11.tar.gz.sha256
|
|
RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \
|
|
if [ ! -f ksonnet-0.13.1-153-linux-${OS_ARCH}-debian-11.tar.gz ]; then \
|
|
curl -SsLf https://downloads.bitnami.com/files/stacksmith/ksonnet-0.13.1-153-linux-${OS_ARCH}-debian-11.tar.gz -O ; \
|
|
curl -SsLf https://downloads.bitnami.com/files/stacksmith/ksonnet-0.13.1-153-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -O ; \
|
|
fi && \
|
|
sha256sum -c ksonnet-0.13.1-153-linux-${OS_ARCH}-debian-11.tar.gz.sha256 && \
|
|
tar -zxf ksonnet-0.13.1-153-linux-${OS_ARCH}-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \
|
|
rm -rf ksonnet-0.13.1-153-linux-${OS_ARCH}-debian-11.tar.gz ksonnet-0.13.1-153-linux-${OS_ARCH}-debian-11.tar.gz.sha256
|
|
RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \
|
|
if [ ! -f helm-3.10.0-0-linux-${OS_ARCH}-debian-11.tar.gz ]; then \
|
|
curl -SsLf https://downloads.bitnami.com/files/stacksmith/helm-3.10.0-0-linux-${OS_ARCH}-debian-11.tar.gz -O ; \
|
|
curl -SsLf https://downloads.bitnami.com/files/stacksmith/helm-3.10.0-0-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -O ; \
|
|
fi && \
|
|
sha256sum -c helm-3.10.0-0-linux-${OS_ARCH}-debian-11.tar.gz.sha256 && \
|
|
tar -zxf helm-3.10.0-0-linux-${OS_ARCH}-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \
|
|
rm -rf helm-3.10.0-0-linux-${OS_ARCH}-debian-11.tar.gz helm-3.10.0-0-linux-${OS_ARCH}-debian-11.tar.gz.sha256
|
|
RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \
|
|
if [ ! -f gosu-1.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz ]; then \
|
|
curl -SsLf https://downloads.bitnami.com/files/stacksmith/gosu-1.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz -O ; \
|
|
curl -SsLf https://downloads.bitnami.com/files/stacksmith/gosu-1.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -O ; \
|
|
fi && \
|
|
sha256sum -c gosu-1.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz.sha256 && \
|
|
tar -zxf gosu-1.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \
|
|
rm -rf gosu-1.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz gosu-1.14.0-154-linux-${OS_ARCH}-debian-11.tar.gz.sha256
|
|
RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \
|
|
if [ ! -f argo-cd-2.4.13-0-linux-${OS_ARCH}-debian-11.tar.gz ]; then \
|
|
curl -SsLf https://downloads.bitnami.com/files/stacksmith/argo-cd-2.4.13-0-linux-${OS_ARCH}-debian-11.tar.gz -O ; \
|
|
curl -SsLf https://downloads.bitnami.com/files/stacksmith/argo-cd-2.4.13-0-linux-${OS_ARCH}-debian-11.tar.gz.sha256 -O ; \
|
|
fi && \
|
|
sha256sum -c argo-cd-2.4.13-0-linux-${OS_ARCH}-debian-11.tar.gz.sha256 && \
|
|
tar -zxf argo-cd-2.4.13-0-linux-${OS_ARCH}-debian-11.tar.gz -C /opt/bitnami --strip-components=2 --no-same-owner --wildcards '*/files' && \
|
|
rm -rf argo-cd-2.4.13-0-linux-${OS_ARCH}-debian-11.tar.gz argo-cd-2.4.13-0-linux-${OS_ARCH}-debian-11.tar.gz.sha256
|
|
RUN apt-get autoremove --purge -y curl && \
|
|
apt-get update && apt-get upgrade -y && \
|
|
apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
|
|
RUN chmod g+rwX /opt/bitnami
|
|
|
|
COPY rootfs /
|
|
RUN /opt/bitnami/scripts/argo-cd/postunpack.sh
|
|
ENV APP_VERSION="2.4.13" \
|
|
BITNAMI_APP_NAME="argo-cd" \
|
|
PATH="/opt/bitnami/kustomize/bin:/opt/bitnami/ksonnet/bin:/opt/bitnami/helm/bin:/opt/bitnami/common/bin:/opt/bitnami/argo-cd/bin:/opt/bitnami/argo-cd/hack:$PATH"
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/argo-cd/entrypoint.sh" ]
|
|
CMD [ "argocd", "--help" ]
|