Make util scripts work on both docker-compose v1 and v2

This commit is contained in:
rubenwardy
2023-12-15 23:46:07 +00:00
parent 8e312c4bcc
commit 4ef3aae193
12 changed files with 54 additions and 12 deletions

View File

@@ -1,3 +1,6 @@
#!/bin/sh
docker exec contentdb_app_1 sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py python -m pytest app/tests/ --disable-warnings"
set -e
. "${BASH_SOURCE%/*}/common.sh"
docker exec "$(container app)" sh -c "FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py python -m pytest app/tests/ --disable-warnings"