Add possibility to build multi-architecture OCI base images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Fix Released
|
High
|
Tom Wardill |
Bug Description
The CPC team wants to use launchpad to build OCI/docker base images for multiple architectures.
For that, there are OCI ready tarballs available under https:/
FROM scratch
ARG arch
ADD ubuntu-
CMD ["/bin/bash"]
The problem is now, that we want to build the image for multiple architectures (and then have a multi-arch manifest file which references all the images for the different archs).
So there needs to be a way to replace amd64 in the Dockerfile with the current architecture.
As discussed with twom already, one possible solution might be having some default BUILD_ARGS which contains the architecture.
Related branches
- Colin Watson (community): Approve
-
Diff: 77 lines (+19/-4)2 files modifiedlib/lp/oci/model/ocirecipebuildbehaviour.py (+7/-1)
lib/lp/oci/tests/test_ocirecipebuildbehaviour.py (+12/-3)
Changed in launchpad: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in launchpad: | |
assignee: | nobody → Tom Wardill (twom) |
status: | Triaged → In Progress |
summary: |
- Add posibility to build multi architecture OCI base images + Add possibility to build multi-architecture OCI base images |
Changed in launchpad: | |
status: | In Progress → Fix Committed |
Changed in launchpad: | |
status: | Fix Committed → Fix Released |
This is implemented as the build arg LAUNCHPAD_ BUILD_ARCH, to prevent any collisions with other build systems.