forked from helm-unittest/helm-unittest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Fedora.Dockerfile
36 lines (27 loc) · 1011 Bytes
/
Fedora.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
25
26
27
28
29
30
31
32
33
34
35
36
FROM fedora:40
# variable "HELM_VERSION" must be passed as docker environment variables during the image build
# docker build --no-cache --build-arg HELM_VERSION=3.13.0 -t fedora/helm-unittest:test -f Fedora.Dockerfile .
ADD ./plugin.yaml ~/plugin.yaml
ADD ./plugin-dbg.yaml ~/plugin-dbg.yaml
ADD ./install-binary.sh ~/install-binary.sh
ARG HELM_VERSION
ENV HELM_BASE_URL="https://get.helm.sh"
ENV HELM_TAR_FILE="helm-v${HELM_VERSION}-linux-amd64.tar.gz"
ENV PLUGIN_URL="~"
# Install the plugin for all users
ENV HELM_DATA_HOME=/usr/local/share/helm
RUN yum install -y git && \
curl -L ${HELM_BASE_URL}/${HELM_TAR_FILE} |tar xvz && \
mv linux-amd64/helm /usr/bin/helm && \
chmod +x /usr/bin/helm && \
helm plugin install ${PLUGIN_URL} && \
rm -rf linux-amd64 && \
yum remove -y git && \
rm -rf /var/cache/yum/* ;
RUN groupadd -r helmgroup \
&& useradd -r helmuser -g helmgroup
USER helmuser
WORKDIR /apps
VOLUME [ "/apps" ]
ENTRYPOINT ["helm", "unittest"]
CMD ["--help"]