forked from buttahtoast/helm-testing-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (22 loc) · 1.18 KB
/
Dockerfile
File metadata and controls
28 lines (22 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
FROM alpine
COPY ./scripts /scripts
COPY ./selector.sh /
RUN chmod +x -R /scripts ./selector.sh
WORKDIR /tmp
ARG KUBE_LINTER_VERSION=v0.7.6
RUN apk add --no-cache ca-certificates curl bash git openssl jq perl-utils \
&& curl -fsSLo get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 \
&& chmod 700 get_helm.sh \
&& ./get_helm.sh \
&& curl -sL "https://github.com/stackrox/kube-linter/releases/download/$KUBE_LINTER_VERSION/kube-linter-linux.tar.gz" | tar xz \
&& chmod +x ./kube-linter \
&& mv ./kube-linter /usr/local/bin/ \
&& curl -s -L -o /usr/local/bin/spruce https://github.com/geofffranks/spruce/releases/download/$(curl --silent "https://api.github.com/repos/geofffranks/spruce/releases/latest" | jq -r .tag_name)/spruce-linux-amd64 \
&& chmod +x /usr/local/bin/spruce \
&& curl -s -L -o /tmp/helm-docs.tar.gz $(curl --silent "https://api.github.com/repos/norwoodj/helm-docs/releases/latest" | jq -r '.assets[] | select(.name | endswith("Linux_x86_64.tar.gz")).browser_download_url') \
&& tar x -f helm-docs.tar.gz \
&& chmod +x helm-docs \
&& cp helm-docs /usr/local/bin/helm-docs \
&& rm *
WORKDIR /
CMD [ "/bin/bash", "/selector.sh" ]