Skip to content

Commit

Permalink
replace deafult registry
Browse files Browse the repository at this point in the history
Signed-off-by: yminer <[email protected]>
  • Loading branch information
yminer committed Jan 2, 2025
1 parent 69c8eab commit 1557622
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/e2e/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1557622

Please sign in to comment.