use the same approach to start mysql as in bamboo [execute tests on MySQL]

This commit is contained in:
rodicasutu
2020-10-28 17:11:05 +02:00
parent 31769d5095
commit cf8e32bfff
3 changed files with 64 additions and 3 deletions

18
scripts/mysql/common.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
CONTAINER_NAME=alfresco-db-mysql
MYSQL_USER=alfresco
MYSQL_ROOT_PASSWORD=alfresco
MYSQL_DATABASE=alfresco
MYSQL_HOST=127.0.0.1
MYSQL_PORT=3306
usage () {
echo "Usage: $0 <image>"
}
if [[ $# -ne 1 ]]; then
usage
exit 1
fi