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 $@