You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2022/02/08 16:07:28 UTC

[GitHub] [couchdb-ci] nickva commented on a change in pull request #33: Update process for multi-arch images, add builder Action

nickva commented on a change in pull request #33:
URL: https://github.com/apache/couchdb-ci/pull/33#discussion_r801802170



##########
File path: README.md
##########
@@ -59,31 +65,38 @@ the [kerl](https://github.com/kerl/kerl) build system, and installs them to
 `/usr/local/kerl` for activation before builds. This version is intended for use
 in standard CI runs, such as for pull requests.
 
-# Building a cross-architecture Docker image
+## Building a cross-architecture Docker image
 
-This only works from an `x86_64` build host.
-
-First, configure your machine with the correct dependencies to build multi-arch binaries:
+We can use Docker's
+[Buildx](https://docs.docker.com/buildx/working-with-buildx/) plugin to generate
+multi-architecture container images with a single command invocation. Docker
+Desktop ships with buildx support, but you'll need to create a new builder to
+use it:
 
 ```
-docker run --privileged --rm tonistiigi/binfmt --install all
+docker buildx create --use

Review comment:
       `buildx` doesn't seem to be available in the open source packages (Ubuntu LTS 20.04 for instance) and only from if installed from Docker Desktop, or from the deb package installed from docker.io directly.  Let's leave instruction how to do it without docker.io closed source bits around as well.  For example, when generating the latest package I didn't use buildx and used the instructions which are being deleted in the PR. 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org