-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
executable file
·29 lines (27 loc) · 1.04 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
#!/bin/bash
clear
echo "."
echo "."
echo "."
echo "--------------------------------"
echo "Building all services..........."
echo "--------------------------------"
echo "."
echo "."
echo "."
docker volume create --name maven-repo
docker run -it --rm -v "$PWD/discovery":/app -v "$HOME/.m2":/root/.m2 -w /app maven:3.3-jdk-8 mvn clean package
docker run -it --rm -v "$PWD/configserver":/app -v "$HOME/.m2":/root/.m2 -w /app maven:3.3-jdk-8 mvn clean package
docker run -it --rm -v "$PWD/calculator":/app -v "$HOME/.m2":/root/.m2 -w /app maven:3.3-jdk-8 mvn clean package
docker run -it --rm -v "$PWD/simulation":/app -v "$HOME/.m2":/root/.m2 -w /app maven:3.3-jdk-8 mvn clean package
docker run -it --rm -v "$PWD/gateway":/app -v "$HOME/.m2":/root/.m2 -w /app maven:3.3-jdk-8 mvn clean package
echo "."
echo "."
echo "."
echo "--------------------------------"
echo "Running all Services............"
echo "--------------------------------"
echo "."
echo "."
echo "."
sudo docker-compose down && sudo docker-compose up -d --build && sudo docker-compose logs -f