2024-05-23 03:08:30 +00:00
|
|
|
ARG ALPINE_VERSION=3.20
|
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-10-23 10:55:38 +00:00
|
|
|
ARG KUBE_VERSION=1.30.6
|
|
|
|
|
|
|
|
ARG SOPS_VERSION="3.9.1"
|
|
|
|
ARG VALS_VERSION="0.37.6"
|
|
|
|
ARG HELM_SECRETS_VERSION="4.6.2"
|
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 && \
|
2022-11-11 14:59:18 +00:00
|
|
|
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 \
|
2022-09-11 11:54:56 +00:00
|
|
|
bash \
|
|
|
|
python3 \
|
|
|
|
py3-yaml \
|
2023-04-12 11:14:31 +00:00
|
|
|
restic \
|
|
|
|
helm \
|
2024-10-16 11:20:20 +00:00
|
|
|
etcd-ctl@edge-community \
|
2022-04-08 15:09:40 +00:00
|
|
|
cri-tools@kubezero \
|
2022-05-16 08:15:41 +00:00
|
|
|
etcdhelper@kubezero \
|
2024-10-16 11:20:20 +00:00
|
|
|
kubeadm@kubezero~=${KUBE_VERSION} \
|
|
|
|
kubectl@kubezero~=${KUBE_VERSION}
|
2022-04-08 15:09:40 +00:00
|
|
|
|
2022-09-14 17:08:14 +00:00
|
|
|
RUN helm repo add kubezero https://cdn.zero-downtime.net/charts && \
|
|
|
|
mkdir -p /var/lib/kubezero
|
|
|
|
|
2024-07-18 18:58:14 +00:00
|
|
|
# helm secrets
|
|
|
|
RUN mkdir -p $(helm env HELM_PLUGINS) && \
|
2024-10-23 10:55:38 +00:00
|
|
|
wget -qO - https://github.com/jkroepke/helm-secrets/releases/download/v${HELM_SECRETS_VERSION}/helm-secrets.tar.gz | tar -C "$(helm env HELM_PLUGINS)" -xzf-
|
2024-07-18 18:58:14 +00:00
|
|
|
|
|
|
|
# vals
|
|
|
|
RUN wget -qO - https://github.com/helmfile/vals/releases/download/v${VALS_VERSION}/vals_${VALS_VERSION}_linux_amd64.tar.gz | tar -C /usr/local/bin -xzf- vals
|
|
|
|
|
2022-09-15 11:05:38 +00:00
|
|
|
ADD admin/kubezero.sh admin/libhelm.sh admin/migrate_argo_values.py /usr/bin
|
2023-11-20 20:44:37 +00:00
|
|
|
ADD admin/libhelm.sh /var/lib/kubezero
|
2022-09-11 11:54:56 +00:00
|
|
|
|
2022-04-08 15:09:40 +00:00
|
|
|
ADD charts/kubeadm /charts/kubeadm
|
2022-09-11 11:54:56 +00:00
|
|
|
ADD charts/kubezero /charts/kubezero
|
2022-04-08 15:09:40 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["kubezero.sh"]
|