-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
15 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |