-
Notifications
You must be signed in to change notification settings - Fork 2
/
gradle-build.sh
22 lines (15 loc) · 907 Bytes
/
gradle-build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# #!/bin/bash
# clear all dangling image(s)
docker rmi $(docker images -f "dangling=true" -q)
export TODO_APP_VERSION=2.0.0
export EDGE_SERVICE_VERSION=1.0.0
export CONFIG_SERVER_VERSION=1.0.0
# config server
config-server/gradlew clean build -p config-server -x test
docker build --build-arg JAR_FILE=build/libs/config-server-${CONFIG_SERVER_VERSION}.jar --tag config-server:${CONFIG_SERVER_VERSION} -f config-server/Dockerfile config-server/
# edge service
edge-service/gradlew clean build -p edge-service -x test
docker build --build-arg JAR_FILE=build/libs/edge-service-${EDGE_SERVICE_VERSION}.jar --tag edge-service:${EDGE_SERVICE_VERSION} -f edge-service/Dockerfile edge-service/
# todo app
todo-app/gradlew clean build -p todo-app -x test -x integration
docker build --build-arg JAR_FILE=build/libs/todo-${TODO_APP_VERSION}.jar --tag todo:${TODO_APP_VERSION} -f todo-app/Dockerfile todo-app/