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

Enclaver should support "cross-compiling" images for other architectures #130

Open
russellhaering opened this issue Nov 29, 2022 · 0 comments

Comments

@russellhaering
Copy link
Contributor

Enclaver should support building images for architectures other than the local one.

I've started work on this here, but am putting it on hold due to trouble making image resolution work.

Currently, the first step "enclaver build" is image resolution, where we take various image identifiers (source image, odyn image, wrapper-base image, etc) and resolve them to a specific image ID. This is all orchestrated through the Docker daemon - enclaver never talks to an image registry directly.

However, the Docker Engine API doesn't seem to have good support for listing or interacting with non-native images.

An alternative option might be to attempt to interact with registries directly, but:

  1. We'd need to be able to authenticate to the registry (or possibly use this API?).
  2. This would break the ability to build from a local source image - ie, source images would always have to be pushed to a registry.

Interestingly, Docker itself seems to be moving away from supporting building from local source images with buildx (for example) - but this seems like a pretty critical requirement for most CI pipelines.

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