Skip to content

Add dockerfile for the whiteout-test test image - #13704

Merged
samuelkarp merged 1 commit into
containerd:mainfrom
henry118:whiteout-img
Jul 6, 2026
Merged

samuelkarp merged 1 commit into
containerd:mainfrom
henry118:whiteout-img

Conversation

@henry118

@henry118 henry118 commented Jul 1, 2026

Copy link
Copy Markdown
Member

Copilot AI review requested due to automatic review settings July 1, 2026 22:36
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review Jul 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 Dockerfile that creates file/dir deletions across layers to exercise whiteout behavior used by integration tests.
  • Add a Makefile with buildx targets to build locally, build multi-arch, and push a multi-arch manifest list for ghcr.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.

Comment on lines +29 to +31
setup-buildx:
$(DOCKER) buildx use $(BUILDER) || $(DOCKER) buildx create --name $(BUILDER) --driver docker-container --use
$(DOCKER) buildx inspect --bootstrap

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment on lines +46 to +47
build-local: setup-buildx
$(DOCKER) buildx build -t $(IMAGE) --load .

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And when using the builtin BuildKit, --load is implied, so won't be necessary.

Copilot AI review requested due to automatic review settings July 2, 2026 01:26
@henry118

henry118 commented Jul 2, 2026

Copy link
Copy Markdown
Member Author

@thaJeztah I updated the script to depend on the docker 29 behavior. PTAL. thanks

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.


# Optional/manual: register binfmt handlers for cross-arch emulation.
setup-binfmt:
$(DOCKER) run --privileged --rm $(BINFMT_IMAGE) --reset -p yes

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With buildx this should not be needed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still required based on my testing

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(Ideally, the test should be able to build the whiteout image locally using containerd/v2/pkg/archive.)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot AI review requested due to automatic review settings July 2, 2026 17:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review Jul 6, 2026
@samuelkarp

Copy link
Copy Markdown
Member

@henry118 is henrwang33141/whiteout-test:1.0 updated with the latest changes?

@samuelkarp
samuelkarp added this pull request to the merge queue Jul 6, 2026
@henry118

henry118 commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

@henry118 is henrwang33141/whiteout-test:1.0 updated with the latest changes?

Yes, it's updated with the latest changes.

@samuelkarp

Copy link
Copy Markdown
Member

Merged via the queue into containerd:main with commit 5708e83 Jul 6, 2026
85 of 88 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review Jul 6, 2026
@henry118
henry118 deleted the whiteout-img branch July 8, 2026 19:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

whiteout-test image not supported on ppc64le architecture

6 participants