-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
31 lines (21 loc) · 939 Bytes
/
build.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
#!/bin/bash
# 不要在container裡面用maven build , 不然會很慢
# 不要在container裡面用maven build , 不然會很慢
# 不要在container裡面用maven build , 不然會很慢
# by stanley2058@yahoo.com.tw
# 所以這是先在外面build ,再把build好的檔案 copy到working dir 再build
echo "build.sh : start maven build"
mvn -T 1C clean install -Dmaven.test.skip=true
echo "build.sh : maven build successfully"
echo "build.sh : start to copy built files"
cp ./target/CCTS-0.0.1.jar app.jar
echo "build.sh : cp apps from target directory to root directory"
echo "build.sh : building docker image"
docker build . -t ccts
echo "build.sh : docker build successfully"
echo "build.sh : start to run CCTS project"
docker compose up -d
# running in deploy machine.
#docker stop pdvps-payment || true
#docker rm pdvps-payment || true
#docker run -p 10107:8888 -d --name pdvps-payment pdvps-payment-image:latest