Skip to content

Commit 1a63737

Browse files
author
Konstantin Chugalinskiy
committed
Add helm repo update in entrypoint
1 parent 1efb547 commit 1a63737

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM alpine:3.6
22
LABEL maintainer="Igor Zibarev <zibarev.i@gmail.com>"
33

4+
COPY entrypoint.sh /
5+
46
ENV KUBECTL_VERSION v1.8.3
57
ENV HELM_VERSION 2.7.2
68
ENV HELM_FILENAME helm-v${HELM_VERSION}-linux-amd64.tar.gz
@@ -18,4 +20,5 @@ RUN set -ex \
1820

1921
RUN helm init --client-only
2022

23+
ENTRYPOINT ["/entrypoint.sh"]
2124
CMD ["helm"]

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ deploy-staging:
3535
--namespace="${KUBE_NAMESPACE}"
3636
- kubectl config use-context ${KUBE_NAME}
3737
script:
38-
- helm init --client-only
3938
- helm install release-name chart/name --namespace ${KUBE_NAMESPACE}
4039

4140
...

entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
3+
helm repo update
4+
exec $@

0 commit comments

Comments
 (0)