KubeZero/Dockerfile

39 lines
1.2 KiB
Docker
Raw Normal View History

ARG ALPINE_VERSION=3.19
2022-04-08 15:09:40 +00:00
2023-04-25 10:57:31 +00:00
FROM docker.io/alpine:${ALPINE_VERSION}
2022-04-08 15:09:40 +00:00
ARG ALPINE_VERSION
2024-03-21 13:00:50 +00:00
ARG KUBE_VERSION=1.28
2022-04-08 15:09:40 +00:00
RUN cd /etc/apk/keys && \
wget "https://cdn.zero-downtime.net/alpine/stefan@zero-downtime.net-61bb6bfb.rsa.pub" && \
echo "@kubezero https://cdn.zero-downtime.net/alpine/v${ALPINE_VERSION}/kubezero" >> /etc/apk/repositories && \
echo "@edge-testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
echo "@edge-community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
2022-04-08 15:09:40 +00:00
apk upgrade -U -a --no-cache && \
apk --no-cache add \
jq \
yq \
2022-08-24 15:13:39 +00:00
diffutils \
bash \
python3 \
py3-yaml \
2023-04-12 11:14:31 +00:00
restic \
helm \
2022-04-08 15:09:40 +00:00
cri-tools@kubezero \
kubeadm@kubezero~=${KUBE_VERSION} \
kubectl@kubezero~=${KUBE_VERSION} \
etcdhelper@kubezero \
2023-04-12 11:14:31 +00:00
etcd-ctl@edge-testing
2022-04-08 15:09:40 +00:00
RUN helm repo add kubezero https://cdn.zero-downtime.net/charts && \
mkdir -p /var/lib/kubezero
2022-09-15 11:05:38 +00:00
ADD admin/kubezero.sh admin/libhelm.sh admin/migrate_argo_values.py /usr/bin
ADD admin/libhelm.sh /var/lib/kubezero
2022-04-08 15:09:40 +00:00
ADD charts/kubeadm /charts/kubeadm
ADD charts/kubezero /charts/kubezero
2022-04-08 15:09:40 +00:00
ENTRYPOINT ["kubezero.sh"]