Use local docker mirror for test containers

See gh-24343
pull/28767/head
Phillip Webb 3 years ago
parent 10269365c2
commit 902dd0baf5

@ -68,12 +68,8 @@ start_docker() {
server_args="${server_args}" server_args="${server_args}"
for registry in $3; do if [ -n "$1" ]; then
server_args="${server_args} --insecure-registry ${registry}" server_args="${server_args} --registry-mirror https://$1"
done
if [ -n "$4" ]; then
server_args="${server_args} --registry-mirror $4"
fi fi
try_start() { try_start() {

@ -39,6 +39,7 @@ anchors:
file: git-repo/ci/tasks/build-project.yml file: git-repo/ci/tasks/build-project.yml
params: params:
BRANCH: ((branch)) BRANCH: ((branch))
DOCKER_HUB_MIRROR: ((docker-hub-mirror))
<<: *gradle-enterprise-task-params <<: *gradle-enterprise-task-params
<<: *docker-hub-task-params <<: *docker-hub-task-params
run-system-tests-task-params: &run-system-tests-task-params run-system-tests-task-params: &run-system-tests-task-params

@ -15,11 +15,12 @@ params:
GRADLE_ENTERPRISE_CACHE_USERNAME: GRADLE_ENTERPRISE_CACHE_USERNAME:
GRADLE_ENTERPRISE_CACHE_PASSWORD: GRADLE_ENTERPRISE_CACHE_PASSWORD:
GRADLE_ENTERPRISE_URL: https://ge.spring.io GRADLE_ENTERPRISE_URL: https://ge.spring.io
DOCKER_HUB_MIRROR:
run: run:
path: bash path: bash
args: args:
- -ec - -ec
- | - |
source /docker-lib.sh source /docker-lib.sh
start_docker start_docker $DOCKER_HUB_MIRROR
${PWD}/git-repo/ci/scripts/build-project.sh ${PWD}/git-repo/ci/scripts/build-project.sh

Loading…
Cancel
Save