Skip to content

Commit

Permalink
Use same base image as thick plugin
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
adrianchiris committed Jun 16, 2024
1 parent aff99fc commit 4e1bca1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion images/Dockerfile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4e1bca1

Please sign in to comment.