From 52f4979176a6b8e3d80f2b5018a8cd633215e853 Mon Sep 17 00:00:00 2001 From: Simon Gerber Date: Thu, 26 Sep 2024 14:05:50 +0200 Subject: [PATCH] Patch kapitan in commodore-renovate container image to use reclass-rs This fixes issues with `make gen-golden` for components which no longer compile with Python reclass. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b80ab631..fdb8ac72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,7 +64,9 @@ RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master && curl -fsSLO "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" \ && chmod +x install_kustomize.sh \ && ./install_kustomize.sh ${KUSTOMIZE_VERSION} /usr/local/bin \ - && rm ./install_kustomize.sh + && rm ./install_kustomize.sh \ + && curl -L https://raw.githubusercontent.com/projectsyn/reclass-rs/main/hack/kapitan_0.32_reclass_rs.patch \ + | patch -p1 -d "$(python -c 'import kapitan; print(kapitan.__path__[0])')" RUN set -ex; \ chmod +x /usr/src/app/bin/index.js; \