Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MASTER :: NOTICKET :: Added helm3 to container image #3

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
13 changes: 12 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ ARG DOCKER_ENGINE_VERSION=stable
FROM docker:$DOCKER_ENGINE_VERSION

ARG HELM_VERSION=v2.12.3
ARG HELM3_VERSION=v3.0.3

# @see http://label-schema.org/rc1/
LABEL maintainer="Phase2 <[email protected]>" \
Expand All @@ -15,6 +16,10 @@ LABEL maintainer="Phase2 <[email protected]>" \
org.label-schema.schema-version="1.0"

RUN apk add --no-cache \
build-base \
python2-dev \
libffi-dev \
openssl-dev \
bash \
curl \
openssl \
Expand All @@ -30,6 +35,12 @@ RUN apk add --no-cache \
curl -o ./install_helm.sh https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get && \
chmod +x ./install_helm.sh && \
./install_helm.sh -v ${HELM_VERSION} && \
helm init --client-only
helm init --client-only && \
curl -o /tmp/helm-${HELM3_VERSION}-linux-amd64.tar.gz https://get.helm.sh/helm-${HELM3_VERSION}-linux-amd64.tar.gz && \
tar -xvzf /tmp/helm-${HELM3_VERSION}-linux-amd64.tar.gz && \
mv linux-amd64/helm /usr/local/bin/helm3 && \
rm -f /tmp/helm-${HELM3_VERSION}-linux-amd64.tar.gz && \
rm -rf linux-amd64/ && \
rm -rf /var/cache/apk/*

COPY root /