2020-11-19 09:50:16 -05:00
|
|
|
#! /bin/bash
|
|
|
|
|
2020-11-26 10:19:08 -05:00
|
|
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
|
2020-11-19 09:50:16 -05:00
|
|
|
java -version
|
|
|
|
./gradlew assemble
|
|
|
|
if [ "$RDBMS" == 'mysql' ]; then
|
|
|
|
sudo service mysql stop
|
2020-11-26 10:19:08 -05:00
|
|
|
bash $DIR/../docker_db.sh mysql_5_7
|
2020-11-19 09:50:16 -05:00
|
|
|
elif [ "$RDBMS" == 'mysql8' ]; then
|
|
|
|
sudo service mysql stop
|
2020-11-26 10:19:08 -05:00
|
|
|
bash $DIR/../docker_db.sh mysql_8_0
|
2020-11-19 09:50:16 -05:00
|
|
|
elif [ "$RDBMS" == 'mariadb' ]; then
|
|
|
|
sudo service mysql stop
|
2020-11-26 10:19:08 -05:00
|
|
|
bash $DIR/../docker_db.sh mariadb
|
2020-11-19 09:50:16 -05:00
|
|
|
elif [ "$RDBMS" == 'postgresql' ]; then
|
|
|
|
sudo service postgres stop
|
2020-11-26 10:19:08 -05:00
|
|
|
bash $DIR/../docker_db.sh postgresql_9_5
|
2020-11-19 09:50:16 -05:00
|
|
|
elif [ "$RDBMS" == 'db2' ]; then
|
2020-11-26 10:19:08 -05:00
|
|
|
bash $DIR/../docker_db.sh db2
|
2020-11-19 09:50:16 -05:00
|
|
|
elif [ "$RDBMS" == 'oracle' ]; then
|
2020-11-26 10:19:08 -05:00
|
|
|
bash $DIR/../docker_db.sh oracle
|
2020-11-19 09:50:16 -05:00
|
|
|
elif [ "$RDBMS" == 'mssql' ]; then
|
2020-11-26 10:19:08 -05:00
|
|
|
bash $DIR/../docker_db.sh mssql
|
2020-11-19 09:50:16 -05:00
|
|
|
fi
|
|
|
|
|
2020-11-26 10:19:08 -05:00
|
|
|
exec bash $DIR/build.sh
|