Merge pull request #76 from cmeury/update-dockerfile

Upgrade container to alpine 3.7 and Helm 2.8.2 & check sha256
This commit is contained in:
KUOKA Yusuke 2018-04-02 18:22:31 +09:00 committed by GitHub
commit e6216564b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View File

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

View File

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