Repository navigation
Add dockerfile for the whiteout-test test image - #13704
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a build definition for the whiteout-test integration test image so it can be built and published as a multi-arch image (including ppc64le), addressing the platform mismatch that causes TestIssue13030 failures on ppc64le.
Changes:
- Introduce a
Dockerfilethat creates file/dir deletions across layers to exercise whiteout behavior used by integration tests. - Add a
Makefilewithbuildxtargets to build locally, build multi-arch, and push a multi-arch manifest list forghcr.io/containerd/whiteout-test:1.0.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| integration/images/whiteout-test/Makefile | Adds buildx-based targets for building/pushing a multi-arch whiteout-test image. |
| integration/images/whiteout-test/Dockerfile | Defines the image filesystem changes used by the whiteout integration test. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| setup-buildx: | ||
| $(DOCKER) buildx use $(BUILDER) || $(DOCKER) buildx create --name $(BUILDER) --driver docker-container --use | ||
| $(DOCKER) buildx inspect --bootstrap |
There was a problem hiding this comment.
FWIW when using a current install of docker (v29 and up), the default is to use containerd snapshotters, in which case there's no need to create a container-builder.
| build-local: setup-buildx | ||
| $(DOCKER) buildx build -t $(IMAGE) --load . |
There was a problem hiding this comment.
And when using the builtin BuildKit, --load is implied, so won't be necessary.
|
@thaJeztah I updated the script to depend on the docker 29 behavior. PTAL. thanks |
|
|
||
| # Optional/manual: register binfmt handlers for cross-arch emulation. | ||
| setup-binfmt: | ||
| $(DOCKER) run --privileged --rm $(BINFMT_IMAGE) --reset -p yes |
There was a problem hiding this comment.
With buildx this should not be needed?
There was a problem hiding this comment.
This is still required based on my testing
There was a problem hiding this comment.
(Ideally, the test should be able to build the whiteout image locally using containerd/v2/pkg/archive.)
There was a problem hiding this comment.
Signed-off-by: Henry Wang <[email protected]>
|
@henry118 is |
Yes, it's updated with the latest changes. |
Fixes: #13351
The newly built image is currently pushed to
https://hub.docker.com/r/henrwang33141/whiteout-test
It should be replicated to
https://github.com/containerd/containerd/pkgs/container/whiteout-test
cc @samuelkarp