-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
13 lines (10 loc) · 999 Bytes
/
Dockerfile
File metadata and controls
13 lines (10 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM ghcr.io/helmfile/helmfile:v0.154.0 AS base
# add kubectl
RUN curl -o /usr/local/bin/kubectl -L "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
# add sopssecretgenerator
RUN mkdir -vp "/helm/.config/kustomize/plugin/goabout.com/v1beta1/sopssecretgenerator" && \
curl -L -o "/helm/.config/kustomize/plugin/goabout.com/v1beta1/sopssecretgenerator/SopsSecretGenerator" $(curl -Ls https://api.github.com/repos/goabout/kustomize-sopssecretgenerator/releases/latest | jq -r '.assets[] | select(.name | test("^SopsSecretGenerator_.+_linux_amd64$")) | .browser_download_url') && \
chmod +x "/helm/.config/kustomize/plugin/goabout.com/v1beta1/sopssecretgenerator/SopsSecretGenerator"
# add sops
RUN curl -s -L -o /usr/local/bin/sops $(curl -Ls https://api.github.com/repos/mozilla/sops/releases/latest | jq -r '.assets[] | select(.name | test("^sops-v.+\\.linux\\.amd64$")) | .browser_download_url') && \
chmod +x /usr/local/bin/sops