File tree 3 files changed +3
-11
lines changed
3 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ services:
22
22
jungmha-native-image :
23
23
container_name : jungmha-native-image
24
24
image : ghcr.io/graalvm/graalvm-community:17.0.9
25
+ restart : unless-stopped
25
26
ports :
26
27
- " 8081:8080"
27
28
volumes :
@@ -32,7 +33,6 @@ services:
32
33
- -c
33
34
- |
34
35
chmod +x run_aot_app.sh; ./run_aot_app.sh
35
-
36
36
networks :
37
37
- dev_network
38
38
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # ตรวจสอบว่ามี dir ชื่อ build/native/nativeOptimizedCompile หรือไม่
4
- if [ ! -d " build/native/nativeOptimizedCompile" ]; then
5
- # ถ้าไม่มีให้รันคำสั่ง ./gradlew nativeOptimizedCompile
3
+ if [ ! -f " build/native/nativeOptimizedCompile/jungmha-0.0.1-alpha" ]; then
6
4
./gradlew nativeOptimizedCompile
7
5
8
- # เมื่อเสร็จสิ้นให้ cd เข้าไปใน build/native/nativeOptimizedCompile
9
6
cd build/native/nativeOptimizedCompile || exit
10
7
else
11
- # ถ้ามีอยู่แล้วให้เข้าไปใน build/native/nativeOptimizedCompile
12
8
cd build/native/nativeOptimizedCompile || exit
13
9
fi
14
10
15
- # หลังจากเข้าไปใน build/native/nativeOptimizedCompile ให้รัน ./jungmha-0.0.1-alpha
16
11
./jungmha-0.0.1-alpha
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # ตรวจสอบว่ามี dir ชื่อ build/docker/optimized/layers หรือไม่
4
- if [ ! -d " build/docker/optimized/layers" ]; then
5
- # ถ้าไม่มีให้รันคำสั่ง ./gradlew assemble
3
+ if [ ! -f " build/docker/optimized/layers/application.jar" ]; then
6
4
./gradlew assemble
7
5
fi
8
6
9
- # ให้รันคำสั่ง java -jar build/docker/optimized/layers/application.jar
10
7
java -jar build/docker/optimized/layers/application.jar
You can’t perform that action at this time.
0 commit comments