2024-03-25 20:47:52 +00:00
|
|
|
FROM alpine:3
|
|
|
|
|
2024-05-15 17:14:46 +00:00
|
|
|
ARG SOPS_VERSION
|
|
|
|
ARG KUSTOMIZE_SOPS_VERSION
|
|
|
|
|
|
|
|
RUN apk add --no-cache kubectl kustomize age git bash tini
|
2024-03-25 20:47:52 +00:00
|
|
|
|
|
|
|
# Install sops
|
2024-05-15 17:14:46 +00:00
|
|
|
ADD https://github.com/getsops/sops/releases/download/v${SOPS_VERSION}/sops-v3.8.1.linux.amd64 /tmp/sops
|
2024-03-25 20:47:52 +00:00
|
|
|
RUN mv /tmp/sops /usr/local/bin/sops
|
|
|
|
RUN chmod +x /usr/local/bin/sops
|
|
|
|
|
|
|
|
# Install ksops
|
2024-05-15 17:14:46 +00:00
|
|
|
ADD https://github.com/viaduct-ai/kustomize-sops/releases/download/v${KUSTOMIZE_SOPS_VERSION}/ksops_latest_Linux_x86_64.tar.gz /tmp/ksops.tar.gz
|
2024-03-25 20:57:10 +00:00
|
|
|
RUN tar -xzf /tmp/ksops.tar.gz -C /tmp
|
|
|
|
RUN mv /tmp/ksops /usr/local/bin/ksops
|
|
|
|
RUN chmod +x /usr/local/bin/ksops
|
2024-03-25 20:47:52 +00:00
|
|
|
|
2024-05-15 17:14:46 +00:00
|
|
|
ENTRYPOINT ["/sbin/tini", "--"]
|