-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (23 loc) · 1.23 KB
/
Dockerfile
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
FROM curlimages/curl:latest as helm-dowloader
RUN curl -L https://get.helm.sh/helm-v3.12.0-linux-amd64.tar.gz | tar -xzf - -C /tmp && mv /tmp/linux-amd64/helm /tmp && \
chmod +x /tmp/helm
FROM curlimages/curl:latest as helm-sops-dowloader
RUN curl -L https://github.com/camptocamp/helm-sops/releases/download/20240712-1/helm-sops_20240712-1_linux_amd64.tar.gz | tar -xzf - -C /tmp && \
chmod +x /tmp/helm-sops
FROM curlimages/curl:latest as helmfile-dowloader
RUN curl -L https://github.com/helmfile/helmfile/releases/download/v0.154.0/helmfile_0.154.0_linux_amd64.tar.gz | tar -xzf - -C /tmp && \
chmod +x /tmp/helmfile
FROM curlimages/curl:latest as yq-dowloader
RUN curl -L https://github.com/mikefarah/yq/releases/download/v4.34.1/yq_linux_amd64 --output /tmp/yq && \
chmod +x /tmp/yq
FROM alpine:3.18.0
RUN apk add --no-cache bash
COPY --from=helm-dowloader /tmp/helm /usr/local/bin/_helm
COPY --from=helm-sops-dowloader /tmp/helm-sops /usr/local/bin/helm
COPY --from=helmfile-dowloader /tmp/helmfile /usr/local/bin/
COPY --from=yq-dowloader /tmp/yq /usr/local/bin/
COPY argocd-helmfile /usr/local/bin/
COPY plugin.yaml /home/argocd/cmp-server/config/plugin.yaml
ENV HOME="/home/argocd"
RUN chown -R 999:999 /home/argocd
USER 999