-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (19 loc) · 831 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
25
26
27
28
FROM bitnami/kubectl:1.31
LABEL maintainer="Peter Grønbæk Andersen <[email protected]>"
USER root
ADD https://get.helm.sh/helm-v3.16.3-linux-amd64.tar.gz /tmp/helm-v3.16.3-linux-amd64.tar.gz
RUN cd /tmp && tar -xvzf helm-v3.16.3-linux-amd64.tar.gz
RUN mkdir -p /opt/helm/bin/
RUN cp /tmp/linux-amd64/helm /opt/helm/bin/
RUN rm /tmp/helm-v3.16.3-linux-amd64.tar.gz
RUN rm -r /tmp/linux-amd64
COPY helm /opt/drone-kubectl-helm3-init/bin/
COPY kubectl /opt/drone-kubectl-helm3-init/bin/
COPY init-kubectl /opt/drone-kubectl-helm3-init/bin/
RUN chmod +x /opt/helm/bin/helm
RUN chmod +x /opt/drone-kubectl-helm3-init/bin/helm
RUN chmod +x /opt/drone-kubectl-helm3-init/bin/kubectl
RUN chmod +x /opt/drone-kubectl-helm3-init/bin/init-kubectl
ENV PATH="/opt/drone-kubectl-helm3-init/bin:$PATH"
ENTRYPOINT ["/bin/bash"]
CMD ["-c"]