alpine 3.7; helm 2.8.2; check sha256 sum; add run target

This commit is contained in:
Cedric Meury 2018-03-28 01:10:50 +02:00
parent a33d111ecb
commit 174e5557c8
2 changed files with 12 additions and 3 deletions

View File

@ -1,8 +1,14 @@
FROM alpine:3.4
FROM alpine:3.7
ENV HELM_VERSION=v2.8.2
ENV HELM_LOCATION="https://kubernetes-helm.storage.googleapis.com"
ENV HELM_FILENAME="helm-${HELM_VERSION}-linux-amd64.tar.gz"
ENV HELM_SHA256="614b5ac79de4336b37c9b26d528c6f2b94ee6ccacb94b0f4b8d9583a8dd122d3"
RUN apk add --update curl && \
curl -L https://kubernetes-helm.storage.googleapis.com/helm-v2.0.0-linux-amd64.tar.gz | \
tar zxf - && mv /linux-amd64/helm /usr/local/bin/ && rm -r /linux-amd64 && apk del curl
curl -L ${HELM_LOCATION}/${HELM_FILENAME} -o ${HELM_FILENAME} && \
sha256sum ${HELM_FILENAME} | grep -q "${HELM_SHA256}" && \
tar zxf ${HELM_FILENAME} && mv /linux-amd64/helm /usr/local/bin/ && \
rm ${HELM_FILENAME} && rm -r /linux-amd64 && apk del curl
COPY dist/helmfile_linux_amd64 /usr/local/bin/helmfile

View File

@ -36,6 +36,9 @@ release: pristine cross
image: cross
docker build -t quay.io/roboll/helmfile:${TAG} .
run: image
docker run --rm -it -t quay.io/roboll/helmfile:${TAG} sh
push: image
docker push quay.io/roboll/helmfile:${TAG}