You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
787 B
Docker
22 lines
787 B
Docker
ARG BASE_IMAGE=google/cloud-sdk:latest
|
|
FROM $BASE_IMAGE
|
|
|
|
RUN apk add -U --no-cache openssl jq gnupg
|
|
|
|
# download and install kubectl
|
|
ARG KUBECTL_VERSION
|
|
RUN curl -L https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl -o /usr/bin/kubectl \
|
|
&& chmod +x /usr/bin/kubectl
|
|
|
|
# install mozilla sops
|
|
ARG SOPS_VERSION
|
|
RUN curl -L https://github.com/mozilla/sops/releases/download/$SOPS_VERSION/sops-$SOPS_VERSION.linux -o /usr/bin/sops \
|
|
&& chmod +x /usr/bin/sops
|
|
|
|
ARG HELM_VERSION
|
|
RUN curl -LO https://storage.googleapis.com/kubernetes-helm/helm-$HELM_VERSION-linux-amd64.tar.gz \
|
|
&& tar xfvz helm-$HELM_VERSION-linux-amd64.tar.gz \
|
|
&& mv linux-amd64/helm /usr/bin/helm \
|
|
&& rm -rf linux-amd64 #\
|
|
&& rm helm-$HELM_VERSION-linux-amd64.tar.gz
|