-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-setup.sh
More file actions
30 lines (24 loc) · 880 Bytes
/
docker-setup.sh
File metadata and controls
30 lines (24 loc) · 880 Bytes
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
#!/bin/bash
set -e
echo "Building animal-name-service docker image..."
cd animal-name-service
./mvnw clean install
docker build -t com.example/animal-name-service:0.1.0 .
echo "Built animal-name-service docker image..."
echo "Building name-generator-service docker image..."
cd ../name-generator-service
./mvnw clean install
docker build -t com.example/name-generator-service:0.1.0 .
echo "Built name-generator-service docker image..."
echo "Building scientist-name-service docker image..."
cd ../scientist-name-service
./mvnw clean install
docker build -t com.example/scientist-name-service:0.1.0 .
echo "Built scientist-name-servicedocker image..."
cd ../
echo "Running docker-compose up..."
docker-compose -f docker-compose.yml up -d
echo "Done docker-compose up..."
echo "Cleaning previous docker images..."
docker image prune -f
echo "Cleaned previous docker images..."