Skip to content

Commit

Permalink
Download Helm plugins in entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pathob committed Jun 24, 2021
1 parent b1c0f83 commit 897bda2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ RUN curl -s https://baltocdn.com/helm/signing.asc | apt-key add - \
&& echo "deb https://baltocdn.com/helm/stable/debian/ all main" | tee /etc/apt/sources.list.d/helm-stable-debian.list \
&& apt-get update && apt-get install -y helm

# Install Helm plugins

RUN helm version \
&& helm plugin install https://github.com/databus23/helm-diff --version 3.1.3 \
&& helm plugin install https://github.com/aslafy-z/helm-git --version 0.10.0

# Install Helmfile

RUN wget https://github.com/roboll/helmfile/releases/download/v0.139.9/helmfile_linux_amd64 -O /usr/local/bin/helmfile --no-verbose \
Expand All @@ -44,3 +38,9 @@ RUN curl -fsSL https://apt.releases.hashicorp.com/gpg | apt-key add - \
# Only do that when not running vault as server

RUN setcap cap_ipc_lock= /usr/bin/vault

# Install Helm plugins in entrypoint as otherwise they somehow cannot be used

COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/bin/sh"]
8 changes: 8 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

# Install Helm plugins

helm plugin install https://github.com/databus23/helm-diff --version 3.1.3
helm plugin install https://github.com/aslafy-z/helm-git --version 0.10.0

exec "${@}"

0 comments on commit 897bda2

Please sign in to comment.