build-tools icon indicating copy to clipboard operation
build-tools copied to clipboard

Add multiarch Docker images

Open lucacome opened this issue 3 years ago β€’ 11 comments

Use Docker actions and metadata-action to build the image for linux/arm, linux/arm64, linux/amd64.

Right now it will use edge as tag for the latest commit on main instead of latest (that's also the default for the action). And latest for the latest tag. That's what I've seen in all the projects I've used. Let me know if that works.

Supersedes:

  • #116
  • #73
  • #99

Closes:

  • Closes #115
  • Closes https://github.com/open-telemetry/opentelemetry-proto-go/issues/77

lucacome avatar Jan 06 '23 13:01 lucacome

is there anybody around that can approve the workflow run? @arminru ? πŸ˜…

lucacome avatar Jan 10 '23 18:01 lucacome

fixed the error @arminru

lucacome avatar Jan 12 '23 16:01 lucacome

I need one more re-run πŸ˜…

lucacome avatar Jan 12 '23 23:01 lucacome

The build is taking a really long time and GitHub kills it after 6 hours, maybe we could just add arm64 for now? I’m looking into cross compiling but it’s not that straightforward.

lucacome avatar Jan 16 '23 20:01 lucacome

Any update on this one? I could use this as well.

bripkens avatar Sep 08 '23 11:09 bripkens

@lucacome do you plan to work on this? I tried building from your branch but the build failed for me. I think we can skip arm and add just arm64 for now.

tigrannajaryan avatar Feb 13 '24 03:02 tigrannajaryan

yeah I can resume working on this @tigrannajaryan I was waiting for somebody to review it πŸ™‚

lucacome avatar Feb 13 '24 06:02 lucacome

@lucacome I think this needs a rebase to resolve conflicts and also because many of dockerfile dependency versions have been updated since the PR was first created.

I am happy to review it.

tigrannajaryan avatar Feb 13 '24 15:02 tigrannajaryan

@lucacome thank you for updating the PR. Sorry for late reply, I missed the notification that the PR was updated.

I see that the build passes now, but I do not see anywhere in the output that it also builds the arm version. Can you help me understand?

tigrannajaryan avatar Apr 17 '24 15:04 tigrannajaryan

@tigrannajaryan I've resumed working on this. I split the two builds into two different runners but the arm64 still takes 3.5 hours.

I'm looking into cross-compiling but it's not been very successful. Not sure if we still want to merge this in the meantime to start building for arm64. It shouldn't be too bad once everything is cached if there aren't too many changes.

lucacome avatar Jul 15 '24 04:07 lucacome