Skip to content
Snippets Groups Projects

Draft: ci: enable multiplatform builds with docker buildx

Closed pini requested to merge (removed):pini-docker-multiplatform into master
All threads resolved!
  • Build from the Dockerfile and copy the artifacts from the resulting image

  • Use cross-compilation at build stage when building for a foreign architecture

  • Use docker buildx build ... in CI to enable multiplatform builds. If buildx is not installed use: DOCKER_BUILDKIT=1 docker build ...

  • Gilab runner must expose tag 'multiplatform' which means it has native amd64 arch + emulated arm64 support: https://github.com/tonistiigi/binfmt/tree/deploy/v7.0.0-28#installing-emulators

      $ docker run --privileged --rm tonistiigi/binfmt --install arm64
  • Use lto = thin for release profile

Edited by pini

Merge request reports

Merge request pipeline #19321 waiting for manual action

Merge request pipeline waiting for manual action for 7f933206

Closed by pinipini 1 year ago (Jul 23, 2023 8:33am UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • pini resolved all threads

    resolved all threads

  • Hugo Trentesaux removed review request for @HugoTrentesaux

    removed review request for @HugoTrentesaux

  • pini requested review from @moul

    requested review from @moul

  • I do not have enough competences in:

    • docker
    • CI

    to review these changes.

  • pini marked this merge request as draft

    marked this merge request as draft

  • pini removed review request for @moul

    removed review request for @moul

  • Author Maintainer

    Setting this MR back as Draft as I've just created !152 (merged) to build using a podman enabled gitlab-runner instead.

  • Author Maintainer

    Closing this MR now that the podman runner is up and running.

  • closed

  • Please register or sign in to reply
    Loading