Commit 95d67736 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Add Docker Hub login script to CI/CD pipelines and deployment scripts to...

Add Docker Hub login script to CI/CD pipelines and deployment scripts to prevent "Too Many Requests" in DockerHub
parent a4d4e990
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -243,6 +243,8 @@ export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"}
# Automated steps start here
########################################################################################################################

bash scripts/dockerhub_login.sh

# Deploy CockroachDB
./deploy/crdb.sh

+2 −0
Original line number Diff line number Diff line
@@ -37,6 +37,8 @@ export TFS_IMAGE_TAG=${TFS_IMAGE_TAG:-"dev"}
# Automated steps start here
########################################################################################################################

bash scripts/dockerhub_login.sh

# Create a tmp folder for files modified during the deployment
TMP_LOGS_FOLDER="./tmp/build"
mkdir -p $TMP_LOGS_FOLDER
+2 −0
Original line number Diff line number Diff line
@@ -40,6 +40,8 @@ export TFS_GRAFANA_PASSWORD=${TFS_GRAFANA_PASSWORD:-"admin123+"}
# Automated steps start here
########################################################################################################################

bash scripts/dockerhub_login.sh

DOCKER_BUILD="docker build"
DOCKER_MAJOR_VERSION=$(docker --version | grep -o -E "Docker version [0-9]+\." | grep -o -E "[0-9]+" | cut -c 1-3)
if [[ $DOCKER_MAJOR_VERSION -ge 23 ]]; then
+2 −0
Original line number Diff line number Diff line
@@ -33,6 +33,8 @@ COMPONENT="mock_blockchain"
# Automated steps start here
########################################################################################################################

bash scripts/dockerhub_login.sh

# Constants
GITLAB_REPO_URL="labs.etsi.org:5050/tfs/controller"
TMP_FOLDER="./tmp"
+2 −0
Original line number Diff line number Diff line
@@ -106,6 +106,8 @@ export LOAD_BALANCER_IP=${LOAD_BALANCER_IP:-""}
# Automated steps start here
########################################################################################################################

bash scripts/dockerhub_login.sh

# Constants
GITLAB_REPO_URL="labs.etsi.org:5050/tfs/controller"
TMP_FOLDER="./tmp"
Loading