Skip to content

Commit

Permalink
build(docker): support native host multi-arch builds
Browse files Browse the repository at this point in the history
amd64 and arm64.
  • Loading branch information
thewtex committed Dec 30, 2024
1 parent 3e17f46 commit 8941016
Show file tree
Hide file tree
Showing 10 changed files with 272 additions and 129 deletions.
164 changes: 136 additions & 28 deletions pixi.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ description = "Update the default Docker image tag"
[tasks.build-docker-images]
cmd = "src/docker/build.sh"
description = "Build the ITK-Wasm docker images"
depends-on = ["clean", "export-itk-wasm-env-vars", "update-default-image-tag"]
depends-on = ["export-itk-wasm-env-vars", "update-default-image-tag"]

[dependencies]
pnpm = ">=9.15.1,<10"
Expand All @@ -104,6 +104,9 @@ m2w64-jq = ">=1.6.0,<2"
[target.unix.dependencies]
jq = ">=1.7.1,<2"

[target.osx-arm64.dependencies]
sed = ">=4.8,<5"

[feature.native.tasks.clone-itk]
cmd = ["stat", "$ITK_WASM_ITK_SOURCE_DIR", ">/dev/null", "||",
"git", "clone",
Expand Down
3 changes: 0 additions & 3 deletions src/docker/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
Verify the source tree.

```
# Remove all old podman images
podman rmi $(podman images -qa) -f
podman rmi $(podman images -qa) -f
pixi run build-docker-images --with-debug --multiarch
# DockerHub credential environmental variables must be set
Expand Down
Loading

0 comments on commit 8941016

Please sign in to comment.