forked from peymanmortazavi/eks-helm-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (19 loc) · 1001 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.8-slim-buster
COPY deploy.sh /usr/local/bin/deploy
# Helm plugins are normally per-user, and Github Actions changes the home
# directory when it runs inside a container. Use a global, shared Helm
# plugin path to work around this.
ENV HELM_PLUGINS=/var/lib/helm/plugins
# Ignore flags like --wait and --atomic if they are passed to Helm Diff.
ENV HELM_DIFF_IGNORE_UNKNOWN_FLAGS=true
# Install the toolset.
RUN apt-get -y update && apt-get -y install curl git \
&& pip install awscli sops \
&& curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash \
&& curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" \
&& chmod +x ./kubectl && mv ./kubectl /usr/local/bin/kubectl \
&& mkdir -p $HELM_PLUGINS \
&& helm plugin install https://github.com/databus23/helm-diff \
&& helm plugin install https://github.com/jkroepke/helm-secrets \
&& rm -rf /var/lib/apt
CMD deploy