Skip to content

Fix ubuntu helper image builds to use correct platform (not always amd64)

The commit has added Ubuntu helper images for all the platforms. However the images generated for all platforms seems to be x86_64 images. All the ubuntu images are using amd64 dependencies instead using the arch-specific dependencies. Refer this issue to know more.

The ubuntu Dockerfile is expecting parameter $BUILDPLATFORM which seems to be empty and hence results in x86 based images. Also the docker buildx command used to build helper images already has --platform parameter which gets appropriate arch values. Hence the parameter $BUILDPLATFORM can be omitted from Dockerfile.

What does this MR do?

This MR will be required to fix this issue.

Why was this MR needed?

What's the best way to test this MR?

Download the ubuntu helper binaries and use below commands to verify the architecture.

$ docker import prebuilt-ubuntu-s390x.tar.xz ubuntu-s390x-test:latest
sha256:8dceacb2306054b033aecee0ec60253c02fa2c6f96b29153c09ea3972eee5d81

$ docker run --rm ubuntu-s390x-test:latest arch
s390x

What are the relevant issue numbers?

#28069 (closed) !2868 (merged)

Edited by Arran Walker

Merge request reports