-
Notifications
You must be signed in to change notification settings - Fork 1
/
build_to_dockerhub
executable file
·34 lines (27 loc) · 1006 Bytes
/
build_to_dockerhub
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
#!/bin/bash
# use docker daemon to build all images and push to docker hub
# requires docker and maven/java to run
cd load-generator
docker build --tag sloppycoder/bankdemo-load-generator:latest .
docker push sloppycoder/bankdemo-load-generator:latest
cd ..
cd casa-account-v2
docker build --tag sloppycoder/bankdemo-casa-account-v2:latest .
docker push sloppycoder/bankdemo-casa-account-v2:latest
cd ..
cd dashboard
docker build --tag sloppycoder/bankdemo-dashboard:latest .
docker push sloppycoder/bankdemo-dashboard:latest
cd ..
cd ext-cust-svc
docker build --tag sloppycoder/bankdemo-ext-cust-svc:latest .
docker push sloppycoder/bankdemo-ext-cust-svc:latest
cd ..
cd customer-v1
mvn compile jib:dockerBuild -Djib.to.image=sloppycoder/bankdemo-customer-v1:latest -Pjib
docker push sloppycoder/bankdemo-customer-v1:latest
cd ..
cd casa-account-v1
./gradlew jibDockerBuild -Djib.to.image=sloppycoder/bankdemo-casa-account-v1:latest
docker push sloppycoder/bankdemo-casa-account-v1:latest
cd ..