From 9bf1ceb74dbcf8438d37d617bc980e8c27ef48b7 Mon Sep 17 00:00:00 2001 From: Konstantin Chugalinskiy Date: Wed, 21 Feb 2018 14:40:48 +0300 Subject: [PATCH] Add helm repo update in entrypoint --- Dockerfile | 3 +++ README.md | 1 - entrypoint.sh | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index 794bedc..67e70c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,8 @@ FROM alpine:3.6 LABEL maintainer="Igor Zibarev " +COPY entrypoint.sh / + ENV KUBECTL_VERSION v1.8.3 ENV HELM_VERSION 2.7.2 ENV HELM_FILENAME helm-v${HELM_VERSION}-linux-amd64.tar.gz @@ -18,4 +20,5 @@ RUN set -ex \ RUN helm init --client-only +ENTRYPOINT ["/entrypoint.sh"] CMD ["helm"] diff --git a/README.md b/README.md index c7d5236..dfd9897 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,6 @@ deploy-staging: --namespace="${KUBE_NAMESPACE}" - kubectl config use-context ${KUBE_NAME} script: - - helm init --client-only - helm install release-name chart/name --namespace ${KUBE_NAMESPACE} ... diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 0000000..7a256a0 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env sh + +helm repo update > /dev/null +exec $@