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:31:45 UTC

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

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



##########
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:
       Hm, OK. Fair request.
   
   One issue is that the previous process only produced arch-specific images and didn't do the work to produce a single multi-architecture manifest. That's fixable.
   
   I'll also have to see about reworking the dockerfiles to allow for the old $CONTAINERARCH approach. Let me see if there's a simple way to do that.




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