Skip to content

Commit

Permalink
Fix: Repeat docker pull until success
Browse files Browse the repository at this point in the history
  • Loading branch information
cytopia committed Jan 11, 2019
1 parent 1be3fa7 commit 847ea4e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/base/04-test-run_nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ chmod 0777 "${DOC_ROOT_HOST}"
chmod 0644 "${DOC_ROOT_HOST}/index.php"

# Pull Image
run "while ! docker pull ${CONTAINER}; do sleep 1; done"
run "until docker pull ${CONTAINER}; do sleep 1; done"

# Start PHP-FPM
did="$( docker_run "${IMAGE}:${VERSION}-${FLAVOUR}" "-e DEBUG_ENTRYPOINT=2 -e NEW_UID=$(id -u) -e NEW_GID=$(id -g) -v ${DOC_ROOT_HOST}:${DOC_ROOT_CONT}" )"
Expand Down
2 changes: 1 addition & 1 deletion tests/prod/05-test-env-forward_ports_to_localhost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ FLAVOUR="${3}"
CONTAINER="mysql:5.6"

# Pull Container
run "while ! docker pull ${CONTAINER}; do sleep 1; done"
run "until docker pull ${CONTAINER}; do sleep 1; done"

# Start mysql container
mdid="$( docker_run "${CONTAINER}" "-e MYSQL_ALLOW_EMPTY_PASSWORD=yes" )"
Expand Down
2 changes: 1 addition & 1 deletion tests/prod/06-test-mount-custom_ini.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ chmod 0777 "${DOC_ROOT_HOST}"
chmod 0644 "${DOC_ROOT_HOST}/index.php"

# Pull container
run "while ! docker pull ${CONTAINER}; do sleep 1; done"
run "until docker pull ${CONTAINER}; do sleep 1; done"

# Start PHP-FPM
did="$( docker_run "${IMAGE}:${VERSION}-${FLAVOUR}" "-e DEBUG_ENTRYPOINT=2 -e NEW_UID=$(id -u) -e NEW_GID=$(id -g) -v ${DOC_ROOT_HOST}:${DOC_ROOT_CONT} -v ${PHP_INI_HOST}:${PHP_INI_CONT}" )"
Expand Down
2 changes: 1 addition & 1 deletion tests/prod/07-test-mount-custom_fpm_conf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ chmod 0777 "${DOC_ROOT_HOST}"
chmod 0644 "${DOC_ROOT_HOST}/index.php"

# Pull container
run "while ! docker pull ${CONTAINER}; do sleep 1; done"
run "until docker pull ${CONTAINER}; do sleep 1; done"

# Start PHP-FPM
did="$( docker_run "${IMAGE}:${VERSION}-${FLAVOUR}" "-e DEBUG_ENTRYPOINT=2 -e NEW_UID=$(id -u) -e NEW_GID=$(id -g) -v ${DOC_ROOT_HOST}:${DOC_ROOT_CONT} -v ${PHP_CNF_HOST}:${PHP_CNF_CONT}" )"
Expand Down
2 changes: 1 addition & 1 deletion tests/work/01-test-env-mysqldump-secure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ MOUNTPOINT="$( mktemp --directory )"
CONTAINER="mysql:5.6"

# Pull Container
run "while ! docker pull ${CONTAINER}; do sleep 1; done"
run "until docker pull ${CONTAINER}; do sleep 1; done"

# Start mysql container
mdid="$( docker_run "${CONTAINER}" "-e MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}" )"
Expand Down

0 comments on commit 847ea4e

Please sign in to comment.