-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile
50 lines (43 loc) · 1.72 KB
/
Containerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
ARG ARCHITECTURE
ARG ARGOCD_VERSION=2.13.3
ARG HELM_VERSION=3.16.4
ARG K3D_VERSION=5.7.5
ARG KFILT_VERSION=0.0.8
ARG KUSTOMIZE_VERSION=5.0.1
FROM ghcr.io/k3d-io/k3d:${K3D_VERSION}-dind
ARG ARCHITECTURE
ARG ARGOCD_VERSION
ARG HELM_VERSION
ARG KFILT_VERSION
ARG KUSTOMIZE_VERSION
RUN test -n "$ARCHITECTURE" || case $(uname -m) in \
aarch64) ARCHITECTURE=arm64; ;; \
amd64) ARCHITECTURE=amd64; ;; \
arm64) ARCHITECTURE=arm64; ;; \
armv8b) ARCHITECTURE=arm64; ;; \
armv8l) ARCHITECTURE=arm64; ;; \
x86_64) ARCHITECTURE=amd64; ;; \
*) echo "Unsupported architecture, exiting..."; exit 1; ;; \
esac \
&& apk add --virtual .build-deps \
curl \
&& apk add \
bash \
git-daemon \
&& curl -fsSL https://github.com/argoproj/argo-cd/releases/download/v${ARGOCD_VERSION}/argocd-linux-${ARCHITECTURE} -o /usr/local/bin/argocd \
&& curl -fsSL https://get.helm.sh/helm-v${HELM_VERSION}-linux-${ARCHITECTURE}.tar.gz \
| tar xzOf - linux-${ARCHITECTURE}/helm > /usr/local/bin/helm \
&& curl -fsSL https://github.com/ryane/kfilt/releases/download/v${KFILT_VERSION}/kfilt_${KFILT_VERSION}_linux_${ARCHITECTURE} -o /usr/local/bin/kfilt \
&& curl -fsSL https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${KUSTOMIZE_VERSION}/kustomize_v${KUSTOMIZE_VERSION}_linux_${ARCHITECTURE}.tar.gz \
| tar xzOf - kustomize > /usr/local/bin/kustomize \
&& chmod +x \
/usr/local/bin/argocd \
/usr/local/bin/helm \
/usr/local/bin/kfilt \
/usr/local/bin/kustomize \
&& apk del .build-deps
COPY rootfs /
ENTRYPOINT ["/entrypoint.sh"]
HEALTHCHECK CMD kubectl get --raw='/readyz?verbose'
EXPOSE 443
EXPOSE 6445