forked from cnrancher/autok3s
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
25 lines (20 loc) · 892 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
FROM registry.suse.com/suse/sle15:15.3
ARG ARCH=amd64
ARG KUBE_EXPLORER_VERSION
RUN zypper -n install curl wget ca-certificates
RUN mkdir /home/shell && \
echo '. /etc/profile.d/bash_completion.sh' >> /home/shell/.bashrc && \
echo 'alias k="kubectl"' >> /home/shell/.bashrc && \
echo 'source <(kubectl completion bash)' >> /home/shell/.bashrc && \
echo 'PS1="> "' >> /home/shell/.bashrc
RUN wget -O /usr/local/bin/kube-explorer https://github.com/cnrancher/kube-explorer/releases/download/${KUBE_EXPLORER_VERSION}/kube-explorer-linux-${ARCH} && \
chmod +x /usr/local/bin/kube-explorer
ENV AUTOK3S_CONFIG /root/.autok3s
ENV HOME /root
ENV K3D_HELPER_IMAGE_TAG v4.4.8
WORKDIR /home/shell
VOLUME /root/.autok3s
COPY bin/autok3s_linux_${ARCH} /usr/local/bin/autok3s
RUN ln -sf autok3s /usr/local/bin/kubectl
ENTRYPOINT ["autok3s"]
CMD ["serve", "--bind-address=0.0.0.0"]