Skip to content

Commit

Permalink
Increase wait time for containers to fully start
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRivers committed Aug 10, 2018
1 parent ca72b8a commit 3c5af84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CI/test-reverseproxy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PROXY=$(docker run -d -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-
PROXY_IP=$(docker inspect ${PROXY} | jq -r .[0].NetworkSettings.IPAddress)

## give it all time to start up
sleep 2
sleep 5

## Test the website

Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ node ('Docker') {
script: "docker inspect ${MiServer.id} | jq .[0].NetworkSettings.IPAddress | sed 's/\"//g'",
returnStdout: true
).trim()
sh "for F in `ls ${WORKSPACE}/CI/test-*.sh`; do /bin/bash \${F} ${DOCKER_IP}; done"
sh "sleep 10 && for F in `ls ${WORKSPACE}/CI/test-*.sh`; do /bin/bash \${F} ${DOCKER_IP}; done"
//${WORKSPACE}/CI/test-pages.sh ${DOCKER_IP}"
MiServer.stop()
} catch (Exception e) {
Expand Down

0 comments on commit 3c5af84

Please sign in to comment.