15 lines
553 B
Docker
15 lines
553 B
Docker
|
FROM alpine:3
|
||
|
|
||
|
RUN apk add --no-cache kubectl kustomize age webhook
|
||
|
|
||
|
# Install sops
|
||
|
ADD https://github.com/getsops/sops/releases/download/v3.8.1/sops-v3.8.1.linux.amd64 /tmp/sops
|
||
|
RUN mv /tmp/sops /usr/local/bin/sops
|
||
|
RUN chmod +x /usr/local/bin/sops
|
||
|
|
||
|
# Install ksops
|
||
|
ADD https://raw.githubusercontent.com/viaduct-ai/kustomize-sops/master/scripts/install-ksops-archive.sh /tmp/install-ksops-archive.sh
|
||
|
RUN chmod +x /tmp/install-ksops-archive.sh
|
||
|
RUN /tmp/install-ksops-archive.sh
|
||
|
|
||
|
ENTRYPOINT ["/usr/local/bin/webhook", "--hooks", "/etc/webhook/hooks.yaml"]
|