From 4e1bca1a369fbc21036301bb5f159dadebaeb881 Mon Sep 17 00:00:00 2001 From: adrianc Date: Sun, 16 Jun 2024 18:14:53 +0300 Subject: [PATCH] Use same base image as thick plugin change thin plugin dockerfile to use the same base image as the thick plugin. this will allow users to implement simple lifecycle hooks e.g exec simple shell cmd to delete multus conf file on container exit which allows to remove multus from the cluster without breaking it. this functionality was possible in v3. Related issue: #592 Signed-off-by: adrianc --- images/Dockerfile | 2 +- images/Dockerfile.debug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/images/Dockerfile b/images/Dockerfile index f55691a03..1dfc9f673 100644 --- a/images/Dockerfile +++ b/images/Dockerfile @@ -8,7 +8,7 @@ ARG TARGETPLATFORM RUN cd /usr/src/multus-cni && \ ./hack/build-go.sh -FROM gcr.io/distroless/base-debian11:latest +FROM debian:stable-slim LABEL org.opencontainers.image.source https://github.com/k8snetworkplumbingwg/multus-cni COPY --from=build /usr/src/multus-cni/bin /usr/src/multus-cni/bin COPY --from=build /usr/src/multus-cni/LICENSE /usr/src/multus-cni/LICENSE diff --git a/images/Dockerfile.debug b/images/Dockerfile.debug index 47e54611b..1dfc9f673 100644 --- a/images/Dockerfile.debug +++ b/images/Dockerfile.debug @@ -8,7 +8,7 @@ ARG TARGETPLATFORM RUN cd /usr/src/multus-cni && \ ./hack/build-go.sh -FROM gcr.io/distroless/base-debian11:debug +FROM debian:stable-slim LABEL org.opencontainers.image.source https://github.com/k8snetworkplumbingwg/multus-cni COPY --from=build /usr/src/multus-cni/bin /usr/src/multus-cni/bin COPY --from=build /usr/src/multus-cni/LICENSE /usr/src/multus-cni/LICENSE