-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·40 lines (31 loc) · 850 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
function clean_up {
docker-compose down
if [ -z "$1" ]
then
echo -e "Bye!\n"
else
echo -e $1
fi
}
# echo "Building jdbc-demo"
# cd jdbc-demo
# mvn clean package -DskipTests
# cd ..
# cd r2dbc-demo
# mvn clean package -DskipTests
# cd ..
echo "Starting docker"
docker-compose build
docker-compose up -d
sleep 3
trap clean_up EXIT
echo -e '''
==============================================================================================================
Find JDBC Demo in http://localhost:8000/
Find R2DBC Demo in http://localhost:8001/
PostgreSQL in localhost:5432 | username: postgres | password: password
Grafana in http://localhost:3000/
==============================================================================================================
Use <ctrl>-c to quit'''
read -r -d '' _ </dev/tty