You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by mc...@apache.org on 2021/04/08 15:52:56 UTC

[cassandra-builds] branch trunk updated: Stay logged into docker (credentials are expected to already be in `.docker/config.json`)

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

mck pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/cassandra-builds.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 49e337a  Stay logged into docker (credentials are expected to already be in `.docker/config.json`)
49e337a is described below

commit 49e337a3448563bf03a0b2d0edeee50a4c38ac1c
Author: Mick Semb Wever <mc...@apache.org>
AuthorDate: Thu Apr 8 17:50:09 2021 +0200

    Stay logged into docker (credentials are expected to already be in `.docker/config.json`)
---
 build-scripts/cassandra-dtest-pytest-docker.sh | 3 +++
 build-scripts/cassandra-test-docker.sh         | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/build-scripts/cassandra-dtest-pytest-docker.sh b/build-scripts/cassandra-dtest-pytest-docker.sh
index c934861..1e2efe6 100644
--- a/build-scripts/cassandra-dtest-pytest-docker.sh
+++ b/build-scripts/cassandra-dtest-pytest-docker.sh
@@ -43,6 +43,9 @@ DTEST_REPO=$3
 DTEST_BRANCH=$4
 EOF
 
+    # docker login to avoid rate-limiting apache images. credentials are expected to already be in place
+    docker login || true
+
     echo "cassandra-dtest-pytest-docker.sh: running: git clone --single-branch --depth 1 --branch $BUILDSBRANCH $BUILDSREPO; sh ./cassandra-builds/build-scripts/cassandra-dtest-pytest-docker.sh $TARGET $SPLIT_CHUNK"
     ID=$(docker run -m 15g --memory-swap 15g --env-file env.list -dt $DOCKER_IMAGE dumb-init bash -ilc "git clone --single-branch --depth 1 --branch $BUILDSBRANCH $BUILDSREPO; sh ./cassandra-builds/build-scripts/cassandra-dtest-pytest-docker.sh $TARGET $SPLIT_CHUNK")
 
diff --git a/build-scripts/cassandra-test-docker.sh b/build-scripts/cassandra-test-docker.sh
index f983c6f..e53feda 100644
--- a/build-scripts/cassandra-test-docker.sh
+++ b/build-scripts/cassandra-test-docker.sh
@@ -38,6 +38,9 @@ REPO=$1
 BRANCH=$2
 EOF
 
+    # docker login to avoid rate-limiting apache images. credentials are expected to already be in place
+    docker login || true
+
     echo "cassandra-test-docker.sh: running: git clone --single-branch --depth 1 --branch $BUILDSBRANCH $BUILDSREPO; sh ./cassandra-builds/build-scripts/cassandra-test-docker.sh $TARGET $SPLIT_CHUNK"
     ID=$(docker run -m 15g --memory-swap 15g --env-file env.list -dt $DOCKER_IMAGE dumb-init bash -ilc "git clone --single-branch --depth 1 --branch $BUILDSBRANCH $BUILDSREPO; sh ./cassandra-builds/build-scripts/cassandra-test-docker.sh $TARGET $SPLIT_CHUNK")
 

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org