run some tests
This commit is contained in:
parent
9d725f7c5d
commit
224c659ea6
|
@ -33,7 +33,8 @@ test-docker-ubuntu:
|
||||||
- cd ubuntu
|
- cd ubuntu
|
||||||
- docker load -i postal-ubuntu-container.tar
|
- docker load -i postal-ubuntu-container.tar
|
||||||
- docker-compose up -d
|
- docker-compose up -d
|
||||||
- docker-compose run postal run
|
- sleep 600
|
||||||
|
- docker inspect postal | jq '.[].State.Health'
|
||||||
after_script:
|
after_script:
|
||||||
- cd ubuntu
|
- cd ubuntu
|
||||||
- docker-compose rm -sfv
|
- docker-compose rm -sfv
|
||||||
|
|
|
@ -23,6 +23,11 @@ services:
|
||||||
- POSTAL_LNAME=Cat
|
- POSTAL_LNAME=Cat
|
||||||
- POSTAL_PASSWORD=SecretCatPassword
|
- POSTAL_PASSWORD=SecretCatPassword
|
||||||
- POSTAL_EMAIL=myemail@catsworld.com
|
- POSTAL_EMAIL=myemail@catsworld.com
|
||||||
|
healthcheck:
|
||||||
|
test: curl -sS http://127.0.0.1:5000 || exit 1
|
||||||
|
interval: 5s
|
||||||
|
timeout: 10s
|
||||||
|
retries: 3
|
||||||
mysql:
|
mysql:
|
||||||
image: mariadb:10
|
image: mariadb:10
|
||||||
container_name: postal_mysql
|
container_name: postal_mysql
|
||||||
|
|
Loading…
Reference in New Issue
Block a user