Skip to content

Commit

Permalink
ci: move distroless to debian12 (#2056)
Browse files Browse the repository at this point in the history
See:
GoogleContainerTools/distroless#1467

Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha authored Nov 21, 2023
1 parent c7bd2a6 commit 8b2d4fb
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN echo '{\n\
# ---
# Stage 2: Final image with nothing but certs, binary, and default config file
# ---
FROM gcr.io/distroless/base AS final
FROM gcr.io/distroless/base-debian12 AS final
ARG TARGETOS
ARG TARGETARCH
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile-conformance
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ storage:\n\
# ---
# Stage 2: Final image with nothing but certs, binary, and default config file
# ---
FROM gcr.io/distroless/base AS final
FROM gcr.io/distroless/base-debian12 AS final
ARG TARGETOS
ARG TARGETARCH
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile-minimal
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN echo '{\n\
# ---
# Stage 2: Final image with nothing but certs, binary, and default config file
# ---
FROM gcr.io/distroless/base AS final
FROM gcr.io/distroless/base-debian12 AS final
ARG TARGETOS
ARG TARGETARCH
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile-zb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN make COMMIT=$COMMIT OS=$TARGETOS ARCH=$TARGETARCH clean bench
# ---
# Stage 2: Final image with nothing but certs, binary, and default config file
# ---
FROM gcr.io/distroless/base AS final
FROM gcr.io/distroless/base-debian12 AS final
ARG TARGETOS
ARG TARGETARCH
COPY --from=builder /go/src/github.com/project-zot/zot/bin/zb-$TARGETOS-$TARGETARCH /usr/bin/zb
Expand Down
2 changes: 1 addition & 1 deletion build/Dockerfile-zxp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN echo '{\n\
# ---
# Stage 2: Final image with nothing but binary and default config file
# ---
FROM gcr.io/distroless/base AS final
FROM gcr.io/distroless/base-debian12 AS final
ARG TARGETOS
ARG TARGETARCH
COPY --from=builder /go/src/github.com/project-zot/zot/bin/zxp-$TARGETOS-$TARGETARCH /zxp
Expand Down
2 changes: 1 addition & 1 deletion build/stacker-conformance.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ build:
arch: ${{ARCH}}
from:
type: docker
url: docker://gcr.io/distroless/base:latest-${{ARCH}}
url: docker://gcr.io/distroless/base-debian12:latest-${{ARCH}}
overlay_dirs:
- source: ../.build/${{REPO_NAME}}/binary
dest: /usr/local/bin
Expand Down
2 changes: 1 addition & 1 deletion build/stacker-minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ build:
arch: ${{ARCH}}
from:
type: docker
url: docker://gcr.io/distroless/base:latest-${{ARCH}}
url: docker://gcr.io/distroless/base-debian12:latest-${{ARCH}}
overlay_dirs:
- source: ../.build/${{REPO_NAME}}/binary
dest: /usr/local/bin
Expand Down
2 changes: 1 addition & 1 deletion build/stacker-zb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ build:
arch: ${{ARCH}}
from:
type: docker
url: docker://gcr.io/distroless/base:latest-${{ARCH}}
url: docker://gcr.io/distroless/base-debian12:latest-${{ARCH}}
overlay_dirs:
- source: ../.build/${{REPO_NAME}}/binary
dest: /usr/local/bin
Expand Down
2 changes: 1 addition & 1 deletion build/stacker-zxp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ build:
arch: ${{ARCH}}
from:
type: docker
url: docker://gcr.io/distroless/base:latest-${{ARCH}}
url: docker://gcr.io/distroless/base-debian12:latest-${{ARCH}}
overlay_dirs:
- source: ../.build/${{REPO_NAME}}/binary
dest: /usr/local/bin
Expand Down
2 changes: 1 addition & 1 deletion build/stacker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ build:
arch: ${{ARCH}}
from:
type: docker
url: docker://gcr.io/distroless/base:latest-${{ARCH}}
url: docker://gcr.io/distroless/base-debian12:latest-${{ARCH}}
overlay_dirs:
- source: ../.build/${{REPO_NAME}}/binary
dest: /usr/local/bin
Expand Down

0 comments on commit 8b2d4fb

Please sign in to comment.