diff --git a/test/e2e/Jenkinsfile b/test/e2e/Jenkinsfile index 76a0426e4..0490db34c 100644 --- a/test/e2e/Jenkinsfile +++ b/test/e2e/Jenkinsfile @@ -24,6 +24,14 @@ class HarborChartFreshInstallPipelineExecutor extends FreshInstallPipelineExecut script.sh """ # login Docker Hub to avoid the pull limit # docker login -u \${DOCKER_HUB_USERNAME} -p \${DOCKER_HUB_PASSWORD} + # set deafult registry to dockerhub.packages.vcfd.broadcom.net + echo '{ + "registry-mirrors": ["https://dockerhub.packages.vcfd.broadcom.net"] + }' | sudo tee /etc/docker/daemon.json > /dev/null + + # Restart Docker to apply the changes + sudo systemctl restart docker + # build the image docker build -t deployer:dev -f test/e2e/Dockerfile test/e2e # clean up the namespace