Skip to content

Commit

Permalink
fix(ci): wait for docker to foward the port
Browse files Browse the repository at this point in the history
  • Loading branch information
sileht committed Sep 14, 2020
1 parent a0e6c19 commit 29d80fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ CURRENT_UID=$(id -u):$(id -g) MUID=$(id -u) docker-compose -p $PROJECT up -d

PORT=$(docker port "${PROJECT}_platform_ui_1" 80/tcp | awk -F: '{print $2}')

timeout 22 sh -c "until nc -z localhost $PORT; do sleep 1; done"

curl -s --head --request GET localhost:$PORT | head -1 | grep 'HTTP/1.1 200'
curl -s --head --request GET http://localhost:$PORT/filebrowser/sw.js | head -1 | grep 'HTTP/1.1 200'

0 comments on commit 29d80fa

Please sign in to comment.