KubeZero/Dockerfile

31 lines
943 B
Docker
Raw Normal View History

2022-07-12 15:00:37 +00:00
ARG ALPINE_VERSION=3.16
2022-04-08 15:09:40 +00:00
FROM alpine:${ALPINE_VERSION}
ARG ALPINE_VERSION
2022-07-12 15:00:37 +00:00
ARG KUBE_VERSION=1.23
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 "@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
apk upgrade -U -a --no-cache && \
apk --no-cache add \
jq \
yq \
2022-08-24 15:13:39 +00:00
diffutils \
2022-04-08 15:09:40 +00:00
cri-tools@kubezero \
kubeadm@kubezero~=${KUBE_VERSION} \
kubectl@kubezero~=${KUBE_VERSION} \
etcdhelper@kubezero \
2022-04-08 15:09:40 +00:00
etcd-ctl@testing \
restic@testing \
helm@testing
2022-07-12 15:00:37 +00:00
ADD admin/kubezero.sh /usr/bin
2022-04-08 15:09:40 +00:00
ADD charts/kubeadm /charts/kubeadm
ADD charts/kubezero-addons /charts/kubezero-addons
ADD charts/kubezero-network /charts/kubezero-network
ENTRYPOINT ["kubezero.sh"]