You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ja...@apache.org on 2024/09/28 10:36:21 UTC

(couchdb-docker) branch feat/contitional-nouveau created (now 9755368)

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

jan pushed a change to branch feat/contitional-nouveau
in repository https://gitbox.apache.org/repos/asf/couchdb-docker.git


      at 9755368  feat: only try and build novueau images if we have a definition for them

This branch includes the following new commits:

     new 9755368  feat: only try and build novueau images if we have a definition for them

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(couchdb-docker) 01/01: feat: only try and build novueau images if we have a definition for them

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jan pushed a commit to branch feat/contitional-nouveau
in repository https://gitbox.apache.org/repos/asf/couchdb-docker.git

commit 975536895e3e65e295340c4bd7ba20a48884c5aa
Author: Jan Lehnardt <ja...@apache.org>
AuthorDate: Sat Sep 28 12:36:09 2024 +0200

    feat: only try and build novueau images if we have a definition for them
---
 build.sh | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/build.sh b/build.sh
index 0b14039..ff50a92 100755
--- a/build.sh
+++ b/build.sh
@@ -197,17 +197,19 @@ buildx() {
   docker buildx build --platform ${BUILDX_PLATFORMS} --tag apache/couchdb:$tag_as --push $1
   echo ""
 
-  # build nouveau
-  docker buildx rm apache-couchdb-nouveau >/dev/null 2>&1 || true
-
-  echo "Creating the buildx nouveau environment..."
-  docker buildx create --name apache-couchdb-nouveau --driver docker-container --use
-  docker buildx use apache-couchdb-nouveau
-  docker buildx inspect --bootstrap
-
-  echo "Starting buildx nouveau build at $(date)..."
-  docker buildx build --platform ${BUILDX_PLATFORMS} --tag apache/couchdb:${tag_as}-nouveau --push $1-nouveau
-  echo ""
+  if [ -d "$1-novueau" ]; then
+    # build nouveau
+    docker buildx rm apache-couchdb-nouveau >/dev/null 2>&1 || true
+  
+    echo "Creating the buildx nouveau environment..."
+    docker buildx create --name apache-couchdb-nouveau --driver docker-container --use
+    docker buildx use apache-couchdb-nouveau
+    docker buildx inspect --bootstrap
+  
+    echo "Starting buildx nouveau build at $(date)..."
+    docker buildx build --platform ${BUILDX_PLATFORMS} --tag apache/couchdb:${tag_as}-nouveau --push $1-nouveau
+    echo ""
+  fi
 }
 
 usage() {