ADD file:33ebe56b967747a97dcec01bc2559962bee8823686c9739d26be060381bbb3ca in / |
CMD ["/bin/sh"] |
ARG SOPS_VERSION |
ARG KUSTOMIZE_SOPS_VERSION |
RUN |2 SOPS_VERSION=3.8.1 KUSTOMIZE_SOPS_VERSION=4.3.2 /bin/sh -c apk add --no-cache kubectl kustomize age git bash openssh openrc ca-certificates make # buildkit |
ADD https://github.com/getsops/sops/releases/download/v3.8.1/sops-v3.8.1.linux.amd64 /tmp/sops # buildkit |
RUN |2 SOPS_VERSION=3.8.1 KUSTOMIZE_SOPS_VERSION=4.3.2 /bin/sh -c mv /tmp/sops /usr/local/bin/sops && chmod +x /usr/local/bin/sops # buildkit |
ADD https://github.com/viaduct-ai/kustomize-sops/releases/download/v4.3.2/ksops_latest_Linux_x86_64.tar.gz /tmp/ksops.tar.gz # buildkit |
RUN |2 SOPS_VERSION=3.8.1 KUSTOMIZE_SOPS_VERSION=4.3.2 /bin/sh -c tar -xzf /tmp/ksops.tar.gz -C /tmp && mv /tmp/ksops /usr/local/bin/ksops && chmod +x /usr/local/bin/ksops # buildkit |
RUN |2 SOPS_VERSION=3.8.1 KUSTOMIZE_SOPS_VERSION=4.3.2 /bin/sh -c adduser -h /home/cluster -s /bin/sh -D cluster && mkdir -p /home/cluster/.ssh && chown -R cluster:cluster /home/cluster && chmod 0700 /home/cluster/.ssh # buildkit |
RUN |2 SOPS_VERSION=3.8.1 KUSTOMIZE_SOPS_VERSION=4.3.2 /bin/sh -c ssh-keygen -A && echo -e "PasswordAuthentication no" >> /etc/ssh/sshd_config && mkdir -p /run/openrc && touch /run/openrc/softlevel # buildkit |
USER cluster |
WORKDIR /home/cluster |
ENTRYPOINT ["sh" "-c" "rc-status; rc-service sshd start"] |