Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve host / container architecture mismatch #4

Closed
jessecureton opened this issue Nov 16, 2021 · 1 comment
Closed

Resolve host / container architecture mismatch #4

jessecureton opened this issue Nov 16, 2021 · 1 comment

Comments

@jessecureton
Copy link
Owner

Currently the implementations of the py_image rules here always build an x86_64 Docker image. This docker image itself runs fine on ARM Macs, but there are some pain points around Pip packages that bundle C extensions - numpy being an example.

The root issue is that we ship the pip packages sourced by rules_python in the container, which are downloaded for the host machine's architecture. Since we use a container_pull of the x86 as the python base image, this gives us a mismatch between the container python runtime and the pip packages we ship if the container is built on an aarch64 machine.

cert-manager/cert-manager#1212 and kubernetes/test-infra#22362 provide examples of building different image architectures that may prove useful in sorting this out, at least for building different containers, but some work will remain for shipping proper pip wheels in the container based on its runtime.

@jessecureton jessecureton changed the title Resolve host architecture issues for Python dependencies Resolve host / container architecture mismatch Nov 16, 2021
@jessecureton
Copy link
Owner Author

Solved by #17

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

No branches or pull requests

1 participant