-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 902 Bytes
/
Dockerfile
File metadata and controls
24 lines (19 loc) · 902 Bytes
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 registry.access.redhat.com/ubi8
ENV HELM_VERSION=3.1.2
ENV HELM_PLUGINS=/helm-plugins
RUN mkdir /helm-plugins
RUN curl -O https://get.helm.sh/helm-v${HELM_VERSION}-linux-amd64.tar.gz && \
tar -zxvf helm-v${HELM_VERSION}-linux-amd64.tar.gz && \
mv linux-amd64/helm /usr/local/bin/helm && \
rm -rf linux-amd64 && \
rm helm-v${HELM_VERSION}-linux-amd64.tar.gz && \
yum install -y git && \
curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl && \
chmod +x ./kubectl && \
mv ./kubectl /usr/local/bin/kubectl
COPY entry-point.sh /usr/local/bin/entry-point.sh
RUN helm plugin install https://github.com/thomastaylor312/helm-namespace && \
cp -r /root/.local/share/helm/plugins/* /helm-plugins
USER 1001
WORKDIR /tmp
ENTRYPOINT entry-point.sh $@