-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathContainerfile.helm
More file actions
40 lines (33 loc) · 1.32 KB
/
Containerfile.helm
File metadata and controls
40 lines (33 loc) · 1.32 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
29
30
31
32
33
34
35
36
37
38
39
40
FROM registry.access.redhat.com/ubi10:10.0-1758699521
ARG HELM_PACKAGE=https://get.helm.sh/helm-v3.19.0-linux-amd64.tar.gz
ARG HELM_UNITTEST_PACKAGE=https://github.com/helm-unittest/helm-unittest/releases/download/v1.0.1/helm-unittest-linux-amd64-1.0.1.tgz
ARG YQ_PACKAGE=https://github.com/mikefarah/yq/releases/download/v4.47.2/yq_linux_amd64.tar.gz
# Environment variables
ENV \
HOME="/helm"
RUN \
# install Helm
curl ${HELM_PACKAGE} -L -o /tmp/helm.tar.gz && \
tar xvfz /tmp/helm.tar.gz -C /tmp && \
cp -a /tmp/linux-amd64/helm /usr/local/bin/helm && \
rm -rf /tmp/helm.tar.gz /tmp/linux-amd64 && \
# Install Helm unittest plugin
mkdir -p /tmp/hut && \
curl ${HELM_UNITTEST_PACKAGE} -L -o /tmp/helm-unittest.tgz && \
tar xvfz /tmp/helm-unittest.tgz -C /tmp/hut && \
cp /tmp/hut/untt /usr/local/bin/helm-unittest && \
rm -rf /tmp/helm-unittest.tar.gz /tmp/hut && \
# install yq
curl ${YQ_PACKAGE} -L -o /tmp/yq.tar.gz && \
mkdir -p /tmp/yq && \
tar xvfz /tmp/yq.tar.gz -C /tmp/yq && \
cp -a /tmp/yq/yq_linux_amd64 /usr/local/bin/yq && \
rm -rf /tmp/yq.tar.gz /tmp/yq && \
# make all binaries executable
chmod +x /usr/local/bin/*
WORKDIR /helm
RUN chown -R 1001:0 /helm && \
chmod -R g=u /helm
USER 1001
ENTRYPOINT ["/usr/local/bin/helm"]
CMD ["--help"]