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

Multi-Arch BUILDX CLI tidbits #150

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open

Conversation

lward27
Copy link

@lward27 lward27 commented Mar 16, 2023

Here were the "touch points and learnings" that we came across while shooting for building a multi-arch container using the CLI. I don't expect this pull request to be merged, but wanted to share our findings. Please note, our private registry is hard coded, - again, this PR is to just serve as a reference and act as a way to share our notes.

  • BuildX requires some additional configuration regarding setting the buildx backend
    • looks like this: docker buildx create --use --driver-opt network=host --buildkitd-flags '--debug --allow-insecure-entitlement network.host'
  • Entando work flow is like: pack and then publish, which didn't fit great with the buildx model.
    • without a registry to put the multiarch images in, one image would be stored locally and the other would be cached... To work around this, we made the pack command push to our registry with --push, which goes slightly outside the Entando work flow.
  • We quickly realized that any remaining distance down this path would likely include the custom operator and application code changes, so we decided to stop there.

@pietrangelo
Copy link

Thanks for your collaboration @lward27 we really appreciate it. We are working to add support for multi-architectures in our platform and as already you noted, we have a lot to cover.
Thanks again!!

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

Successfully merging this pull request may close these issues.

3 participants