-
Notifications
You must be signed in to change notification settings - Fork 82
/
Dockerfile
18 lines (17 loc) · 1.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM ubuntu:20.04
USER root
#COPY kubectl /root/
COPY helm-pod /root/
RUN apt-get update && apt-get install wget curl vim python -y && mkdir /.helm && mkdir -p /.helm/repository && mkdir /.helm/repository/cache && mkdir -p /.helm/cache/archive && mkdir -p /.helm/cache/plugins && wget https://github.com/cloud-ark/kubeplus/raw/master/kubeplus-kubectl-plugins.tar.gz && gunzip kubeplus-kubectl-plugins.tar.gz && tar -xvf kubeplus-kubectl-plugins.tar && cp -r /plugins/* bin/
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
RUN install -o root -g root -m 0755 kubectl bin/kubectl
RUN cp bin/kubectl /root/kubectl
#RUN cp /root/kubectl bin/. &&
RUN chmod +x /root/kubectl && chmod +x /bin/kubectl
RUN wget https://get.helm.sh/helm-v3.12.1-linux-amd64.tar.gz \
&& gunzip helm-v3.12.1-linux-amd64.tar.gz \
&& tar -xvf helm-v3.12.1-linux-amd64.tar \
&& mv linux-amd64/helm bin/.
#COPY repositories.yaml /.helm/repository/
#COPY cloudark-helm-charts-index.yaml /.helm/repository/cache/
ENTRYPOINT ["/root/helm-pod"]