Skip to content

Commit

Permalink
remove docker login since no available account to bypass 429 error
Browse files Browse the repository at this point in the history
replace deafult registry

Signed-off-by: yminer <[email protected]>

get PROXY_REGISTRY from env
  • Loading branch information
yminer committed Jan 2, 2025
1 parent fd26bc3 commit ff8f6db
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/e2e/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,17 @@ class HarborChartFreshInstallPipelineExecutor extends FreshInstallPipelineExecut
script.usernamePassword(credentialsId: "79e9fd98-cdf5-4f55-81fa-ecba01365534", usernameVariable: "DOCKER_HUB_USERNAME", passwordVariable: "DOCKER_HUB_PASSWORD")]) {
script.sh """
# login Docker Hub to avoid the pull limit
docker login -u \${DOCKER_HUB_USERNAME} -p \${DOCKER_HUB_PASSWORD}
# docker login -u \${DOCKER_HUB_USERNAME} -p \${DOCKER_HUB_PASSWORD}
# set deafult registry to dockerhub.packages.vcfd.broadcom.net
echo "PROXY_REGISTRY is \$PROXY_REGISTRY"
echo '{
"registry-mirrors": [\$PROXY_REGISTRY]
}' | sudo tee /etc/docker/daemon.json > /dev/null
# Restart Docker to apply the changes
sudo systemctl reset-failed docker.service
sudo systemctl restart docker
# build the image
docker build -t deployer:dev -f test/e2e/Dockerfile test/e2e
# clean up the namespace
Expand Down

0 comments on commit ff8f6db

Please sign in to comment.