Skip to content

Commit

Permalink
Replace the base image with paketobuildpacks image
Browse files Browse the repository at this point in the history
Replace the base image with paketobuildpacks image

Fixes vmware-tanzu#6851

Signed-off-by: Wenkai Yin(尹文开) <[email protected]>
  • Loading branch information
ywk253100 committed Sep 28, 2023
1 parent 4bf87c0 commit 1b93b17
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 2 deletions.
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,16 @@ RUN mkdir -p /output/usr/bin && \
/go/src/github.com/vmware-tanzu/velero/hack/build-restic.sh

# Velero image packing section
FROM gcr.io/distroless/base-nossl-debian11:nonroot
FROM paketobuildpacks/run-jammy-tiny:latest

LABEL maintainer="Xun Jiang <[email protected]>"

COPY hack/passwd /etc/passwd

COPY hack/group /etc/group

COPY --chown=65532:65532 hack/nonroot /home/nonroot

COPY --from=velero-builder /output /

COPY --from=restic-builder /output /
Expand Down
1 change: 1 addition & 0 deletions changelogs/unreleased/6883-ywk253100
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Replace the base image with paketobuildpacks image
2 changes: 1 addition & 1 deletion hack/docker-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ else
fi

if [[ -z "$BUILDX_PLATFORMS" ]]; then
BUILDX_PLATFORMS="linux/amd64,linux/arm64,linux/arm/v7,linux/ppc64le"
BUILDX_PLATFORMS="linux/amd64,linux/arm64"
fi

# Debugging info
Expand Down
5 changes: 5 additions & 0 deletions hack/group
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
root:x:0:
nobody:x:65534:
tty:x:5:
staff:x:50:
nonroot:x:65532:
Empty file added hack/nonroot/.placeholder
Empty file.
3 changes: 3 additions & 0 deletions hack/passwd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
root:x:0:0:root:/root:/sbin/nologin
nobody:x:65534:65534:nobody:/nonexistent:/sbin/nologin
nonroot:x:65532:65532:nonroot:/home/nonroot:/sbin/nologin

0 comments on commit 1b93b17

Please sign in to comment.