You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2023/05/24 18:02:11 UTC

[couchdb-docker] branch main updated: Add s390x support to docker image

This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb-docker.git


The following commit(s) were added to refs/heads/main by this push:
     new b616800  Add s390x support to docker image
b616800 is described below

commit b616800e739db18c19e6a8b4131528157f945bcd
Author: Kun-Lu <ku...@ibm.com>
AuthorDate: Thu May 18 17:01:28 2023 -0400

    Add s390x support to docker image
    
    Signed-off-by: Kun-Lu <ku...@ibm.com>
---
 build.sh | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/build.sh b/build.sh
index e0ca3af..0c1df9a 100755
--- a/build.sh
+++ b/build.sh
@@ -33,8 +33,8 @@ set -e
 
 PROMPT="Are you sure (y/n)? "
 QEMU="YES"
-PLATFORMS="amd64 arm64v8 ppc64le"
-BUILDX_PLATFORMS="linux/amd64,linux/arm64/v8,linux/ppc64le"
+PLATFORMS="amd64 arm64v8 ppc64le s390x"
+BUILDX_PLATFORMS="linux/amd64,linux/arm64/v8,linux/ppc64le,linux/s390x"
 
 prompt() {
   if [ -z "${PROMPT}" ]
@@ -75,6 +75,7 @@ update_qemu() {
   echo "Proving all emulators work..."
   docker run --rm arm32v7/alpine uname -a
   docker run --rm arm64v8/alpine uname -a
+  docker run --rm s390x/alpine uname -a
   docker run --rm tonistiigi/debian:riscv uname -a
 }
 
@@ -152,13 +153,17 @@ push() {
   docker manifest create apache/couchdb:$tag_as \
     apache/couchdb:amd64-$1 \
     apache/couchdb:arm64v8-$1 \
-    apache/couchdb:ppc64le-$1
+    apache/couchdb:ppc64le-$1 \
+    apache/couchdb:s390x-$1
 
   docker manifest annotate apache/couchdb:$tag_as \
     apache/couchdb:arm64v8-$1 --os linux --arch arm64 --variant v8
 
   docker manifest annotate apache/couchdb:$tag_as \
     apache/couchdb:ppc64le-$1 --os linux --arch ppc64le
+  
+  docker manifest annotate apache/couchdb:$tag_as \
+    apache/couchdb:s390x-$1 --os linux --arch s390x
 
   docker manifest push --purge apache/couchdb:$tag_as