Separate the compose file back

This commit is contained in:
Théophile Diot 2023-05-05 09:56:03 -04:00
parent 21dc67b68d
commit 500d58e508
No known key found for this signature in database
GPG Key ID: E752C80DB72BB014
2 changed files with 26 additions and 4 deletions

View File

@ -0,0 +1,20 @@
version: "3.5"
services:
ui-tests:
build:
context: .
dockerfile: Dockerfile
environment:
- PYTHONUNBUFFERED=1
extra_hosts:
- "www.example.com:192.168.0.2"
- "app1.example.com:192.168.0.2"
networks:
bw-services:
ipv4_address: 192.168.0.3
networks:
bw-services:
external:
name: bw-services

View File

@ -19,9 +19,6 @@ if [ $? -ne 0 ] ; then
echo "❌ Up failed"
exit 1
fi
docker-compose stop ui-tests
i=0
while [ $i -lt 120 ] ; do
containers=("ui_bw_1" "ui_bw-scheduler_1" "ui_bw-ui_1")
@ -47,7 +44,12 @@ if [ $i -ge 120 ] ; then
fi
# Start tests
docker-compose start ui-tests
docker-compose -f docker-compose.test.yml build
if [ $? -ne 0 ] ; then
echo "❌ Build failed"
exit 1
fi
docker-compose -f docker-compose.test.yml up --abort-on-container-exit --exit-code-from ui-tests
# Exit
exit $?