geerlingguy / drupal-container

Drupal container for running Drupal sites with Docker, built with Ansible.
https://hub.docker.com/r/geerlingguy/drupal/
44 stars 27 forks source link

Fix broken Travis CI build #14

Closed geerlingguy closed 5 years ago

geerlingguy commented 5 years ago

Oops... #12 seems to have broken the Travis CI tests. Will have to fix that up...

geerlingguy commented 5 years ago
$ attempts=0
max_attempts=60
echo "Waiting for Drupal to complete setup."
until $(curl --output /dev/null --silent --head --fail http://localhost:8080/); do
    if [ ${attempts} -eq ${max_attempts} ];then
      echo "Timeout while waiting for Drupal to complete setup."
      exit 1
    fi
    printf '.'
    attempts=$(($attempts+1))
    sleep 5
done
Waiting for Drupal to complete setup.
curl: (56) Recv failure: Connection reset by peer
.curl: (22) The requested URL returned error: 500 500 Service unavailable (with message)
.curl: (22) The requested URL returned error: 500 500 Service unavailable (with message)
.curl: (22) The requested URL returned error: 500 500 Service unavailable (with message)