From 93f4220de534bc96191da7ede7e6f982c2a47115 Mon Sep 17 00:00:00 2001 From: Devin Stein Date: Thu, 18 May 2023 08:22:57 -0700 Subject: [PATCH] fix: preserve old Docker image paths for backwards compatability (#185) * fix: preserve old Docker image paths for backwards compatability * style: fix typo in comment --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Dockerfile b/Dockerfile index b91b22b..6475afe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,4 +43,13 @@ COPY --from=builder /go/bin/ksops /usr/local/bin/ksops COPY --from=builder /go/bin/kustomize /usr/local/bin/kustomize COPY --from=builder /go/bin/kustomize-sops /usr/local/bin/kustomize-sops +# Create a symlink from /usr/local/bin/ksops to /go/bin/ksops to preserve backwards compatibility (this will be removed in a future release) +RUN mkdir -p /go/bin +RUN ln -s /usr/local/bin/ksops /go/bin/ksops +RUN ln -s /usr/local/bin/kustomize /go/bin/kustomize +RUN ln -s /usr/local/bin/kustomize-sops /go/bin/kustomize-sops + +# Change working directory to /usr/local/bin +WORKDIR /usr/local/bin + CMD ["kustomize", "version"]