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
  • 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

Loading
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.

  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading