2023-08-07 21:35:26 +00:00
|
|
|
FROM alpine:3.18@sha256:7144f7bab3d4c2648d7e59409f15ec52a18006a128c733fcff20d3a4a54ba44a
|
2022-12-22 11:14:19 +00:00
|
|
|
|
|
|
|
LABEL maintainer="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
LABEL org.opencontainers.image.authors="Robert Kaussow <mail@thegeeklab.de>"
|
|
|
|
LABEL org.opencontainers.image.title="kube-tools"
|
|
|
|
LABEL org.opencontainers.image.url="https://gitea.rknet.org/docker/kube-tools"
|
|
|
|
LABEL org.opencontainers.image.source="https://gitea.rknet.org/docker/kube-tools"
|
|
|
|
LABEL org.opencontainers.image.documentation="https://gitea.rknet.org/docker/kube-tools"
|
|
|
|
|
|
|
|
ARG KUBECTL_VERSION
|
|
|
|
ARG YQ_VERSION
|
|
|
|
ARG HELM_VERSION
|
|
|
|
ARG KUSTOMIZE_VERSION
|
|
|
|
ARG KUBECONFORM_VERSION
|
2023-07-09 12:11:11 +00:00
|
|
|
ARG POLARIS_VERSION
|
2022-12-22 11:14:19 +00:00
|
|
|
|
|
|
|
# renovate: datasource=github-releases depName=kubernetes/kubernetes
|
2023-09-13 18:35:41 +00:00
|
|
|
ENV KUBECTL_VERSION="${KUBECTL_VERSION:-v1.28.2}"
|
2022-12-22 11:14:19 +00:00
|
|
|
# renovate: datasource=github-releases depName=mikefarah/yq
|
2023-08-11 04:35:24 +00:00
|
|
|
ENV YQ_VERSION="${YQ_VERSION:-v4.35.1}"
|
2022-12-22 11:14:19 +00:00
|
|
|
# renovate: datasource=github-releases depName=helm/helm
|
2023-08-10 21:05:22 +00:00
|
|
|
ENV HELM_VERSION="${HELM_VERSION:-v3.12.3}"
|
2022-12-22 11:14:19 +00:00
|
|
|
# renovate: datasource=github-releases depName=kubernetes-sigs/kustomize
|
2023-07-31 17:35:16 +00:00
|
|
|
ENV KUSTOMIZE_VERSION="${KUSTOMIZE_VERSION:-v5.1.1}"
|
2022-12-22 11:14:19 +00:00
|
|
|
# renovate: datasource=github-releases depName=yannh/kubeconform
|
2023-07-16 08:05:23 +00:00
|
|
|
ENV KUBECONFORM_VERSION="${KUBECONFORM_VERSION:-v0.6.3}"
|
2023-07-09 12:11:11 +00:00
|
|
|
# renovate: datasource=github-releases depName=FairwindsOps/polaris
|
2023-09-06 06:28:51 +00:00
|
|
|
ENV POLARIS_VERSION="${POLARIS_VERSION:-8.5.1}"
|
2023-07-09 12:11:11 +00:00
|
|
|
# renovate: datasource=pypi depName=flux-local
|
2023-08-06 14:03:19 +00:00
|
|
|
ENV FLUX_LOCAL_VERSION="${FLUX_LOCAL_VERSION:-3.1.1}"
|
2022-12-22 11:14:19 +00:00
|
|
|
|
2023-07-09 12:11:11 +00:00
|
|
|
RUN apk --update add curl tar bash python3 py3-yaml py3-pip findutils git && \
|
|
|
|
pip install -qq --no-cache-dir flux-local=="$FLUX_LOCAL_VERSION" && \
|
2022-12-22 11:14:19 +00:00
|
|
|
curl -SsfL -o /usr/local/bin/kubectl "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && \
|
|
|
|
curl -SsfL -o /usr/local/bin/kubectl-convert "https://dl.k8s.io/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl-convert" && \
|
|
|
|
curl -SsfL -o /usr/local/bin/yq "https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64" && \
|
|
|
|
curl -SsfL "https://get.helm.sh/helm-${HELM_VERSION}-linux-amd64.tar.gz" \
|
|
|
|
| tar xz --strip-components=1 -C /usr/local/bin linux-amd64/helm && \
|
|
|
|
curl -SsfL "https://github.com/kubernetes-sigs/kustomize/releases/download/kustomize%2F${KUSTOMIZE_VERSION}/kustomize_${KUSTOMIZE_VERSION}_linux_amd64.tar.gz" \
|
|
|
|
| tar xz -C /usr/local/bin kustomize && \
|
|
|
|
curl -SsfL "https://github.com/yannh/kubeconform/releases/download/${KUBECONFORM_VERSION}/kubeconform-linux-amd64.tar.gz" \
|
|
|
|
| tar xz -C /usr/local/bin kubeconform && \
|
2023-07-09 12:11:11 +00:00
|
|
|
curl -SsfL "https://github.com/FairwindsOps/polaris/releases/download/${POLARIS_VERSION}/polaris_linux_amd64.tar.gz" \
|
|
|
|
| tar xz -C /usr/local/bin polaris && \
|
2022-12-22 11:14:19 +00:00
|
|
|
chmod 755 /usr/local/bin/kubectl && \
|
|
|
|
chmod 755 /usr/local/bin/kubectl-convert && \
|
|
|
|
chmod 755 /usr/local/bin/yq && \
|
|
|
|
chmod 755 /usr/local/bin/helm && \
|
|
|
|
chmod 755 /usr/local/bin/kustomize && \
|
|
|
|
chmod 755 /usr/local/bin/kubeconform && \
|
|
|
|
rm -rf /var/cache/apk/* && \
|
|
|
|
rm -rf /tmp/*
|
|
|
|
|
|
|
|
ADD overlay/ /
|
|
|
|
|
|
|
|
STOPSIGNAL SIGTERM
|
|
|
|
|
|
|
|
CMD []
|