Skip to content

Conversation

@akerouanton
Copy link
Member

This allows to build the containerd-shim-nerdbox-v1 binary for different platforms by using the Bake file remotely.

This allows to build the containerd-shim-nerdbox-v1 binary for different
platforms by using the Bake file remotely.

Signed-off-by: Albin Kerouanton <albin.kerouanton@docker.com>
Copilot AI review requested due to automatic review settings November 4, 2025 18:51
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds cross-compilation support for the containerd-shim-nerdbox-v1 binary by introducing TARGETOS and TARGETARCH build arguments in the Dockerfile. This enables building the shim for different target platforms using the Bake file remotely.

Key Changes:

  • Added TARGETOS and TARGETARCH build arguments to the shim build stage
  • Updated the go build command to use these variables for cross-compilation via GOOS and GOARCH environment variables

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fuweid fuweid merged commit 5ed0b22 into containerd:main Nov 5, 2025
3 checks passed
@akerouanton akerouanton deleted the bake-crosscompile-shim branch November 6, 2025 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants