Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
FROM alpine:3.8
ENV KUSTOMIZE_VER 3.5.4
ENV KUBECTL_VER 1.17.3
# Versions: https://pypi.python.org/pypi/awscli#downloads
ENV AWS_CLI_VERSION 1.17.5
FROM alpine:3.16

RUN apk --no-cache update && \
apk --no-cache add ca-certificates groff less py-pip git make && \
pip --no-cache-dir install awscli==${AWS_CLI_VERSION} && \
rm -rf /var/cache/apk/*
ENV SOPS_VER 3.8.1
ENV KUSTOMIZE_VER 5.2.1
ENV KUBECTL_VER 1.23.17
# Versions: https://pypi.python.org/pypi/awscli#downloads
ENV AWS_CLI_VERSION 1.29.82

RUN apk --no-cache add curl gettext
RUN apk --no-cache add curl gettext bash ca-certificates groff less \
py-pip git make curl gettext jq
RUN pip --no-cache-dir install awscli==${AWS_CLI_VERSION} yq

RUN mkdir /working
WORKDIR /working

RUN curl -L https://github.com/mozilla/sops/releases/download/v3.5.0/sops-v3.5.0.linux -o /usr/local/bin/sops \
RUN curl -L https://github.com/mozilla/sops/releases/download/v3.7.3/sops-v${SOPS_VER}.linux -o /usr/local/bin/sops \
&& chmod +x /usr/local/bin/sops

RUN curl -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv3.5.4/kustomize_v3.5.4_linux_amd64.tar.gz | tar xvz -C /usr/local/bin \
RUN curl -L https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2Fv${KUSTOMIZE_VER}/kustomize_v${KUSTOMIZE_VER}_linux_amd64.tar.gz | tar xvz -C /usr/local/bin \
&& chmod +x /usr/local/bin/kustomize

RUN curl -L https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VER}/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
Docker image for systems using Kustomize and kubectl.

Included additions beyond base Apline:
- Kustomize 3.5.4
- Kubectl 1.17.3
- AWS 1.17.5
- Kustomize 5.2.1
- Kubectl 1.23.17
- AWS 1.29.82
- sops 3.8.1
- envsubst

Working directory is set to `/working/` if you need to mount files.
Expand Down