-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.sh
executable file
·37 lines (31 loc) · 1.06 KB
/
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
#!/bin/bash
printf "== Executing Docker Compose with Build to start the application ==\n"
printf "\n"
printf "========== Building local Acceptor Project with local Maven ============\n"
printf "\n"
cd poc-fix-acceptor/
mvn package -Dquarkus.package.type=fast-jar
cd ..
printf "\n"
printf "============ Acceptor Project builded successfully by Maven ===========\n"
printf "\n"
printf "========= Building local Initiator Project with local Maven ============\n"
printf "\n"
cd poc-fix-initiator/
mvn package -Dquarkus.package.type=fast-jar
cd ..
printf "\n"
printf "============ Initiator Project builded successfully by Maven ==========\n"
printf "\n"
function ctrl_c() {
printf "\n"
printf '==========================================================================\n'
printf '============= EXECUTIN DOCKER COMPOSE DOWN AFTER CTRL+C ==================\n'
printf '==========================================================================\n'
printf "\n"
docker-compose -f ./docker-compose.yml down
exit
}
trap ctrl_c INT
docker-compose -f ./docker-compose.yml up --build
ctrl_c