Skip to content

Commit

Permalink
Update helm and kubectl version
Browse files Browse the repository at this point in the history
  • Loading branch information
maeb committed Aug 12, 2019
1 parent 6b0e2eb commit f634000
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,39 +1,34 @@
FROM alpine

ARG VCS_REF
ARG BUILD_DATE

# Metadata
LABEL maintainer="[email protected]" \
LABEL maintainer="Marius André Elsfjordstrand Beck <[email protected]>" \
org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.vcs-ref=${VCS_REF} \
org.label-schema.vcs-url="https://github.com/nlnwa/k8s-util" \
org.label-schema.name="k8s-util" \
org.label-schema.url="https://hub.docker.com/r/norsknettarkiv/k8s-util/"

ARG VCS_REF
ARG BUILD_DATE

ARG DEPENDENCIES="ca-certificates git openssh curl jq"

# Note: Latest version of kubectl may be found at:
# https://aur.archlinux.org/packages/kubectl-bin/
ARG KUBE_LATEST_VERSION="v1.12.0"
# https://github.com/kubernetes/kubectl/releases
ARG KUBECTL_VERSION="v1.15.2"

# Note: Latest version of helm may be found at:
# https://github.com/kubernetes/helm/releases
ARG HELM_VERSION="v2.12.2"
ARG HELM_VERSION="v2.14.3"

# Note: Latest version of namerctl may be found at:
# https://github.com/linkerd/namerctl/releases
ARG NAMERCTL_VERSION="0.8.6"
ENV HELM_HOST=localhost:44134

RUN apk add --update --no-cache ${DEPENDENCIES} \
&& wget -q https://storage.googleapis.com/kubernetes-release/release/${KUBE_LATEST_VERSION}/bin/linux/amd64/kubectl \
&& wget -q https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl \
-O /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl \
&& wget -q http://storage.googleapis.com/kubernetes-helm/helm-${HELM_VERSION}-linux-amd64.tar.gz \
-O - | tar -xzO linux-amd64/helm > /usr/local/bin/helm \
&& chmod +x /usr/local/bin/helm \
&& wget -q https://github.com/linkerd/namerctl/releases/download/${NAMERCTL_VERSION}/namerctl_linux_amd64 \
-O /usr/local/bin/namerctl \
&& chmod +x /usr/local/bin/namerctl

WORKDIR /config
&& tar -xvf helm-${HELM_VERSION}-linux-amd64.tar.gz \
&& mv linux-amd64/helm /usr/local/bin \
&& mv linux-amd64/tiller /usr/local/bin \
&& rm -rf linux-amd64 \
&& rm helm-${HELM_VERSION}-linux-amd64.tar.gz \
&& helm init --client-only --wait

0 comments on commit f634000

Please sign in to comment.