Skip to content

Commit 55540cc

Browse files
committed
แก้ไขกำหนดค่าเล็กน้อย
1 parent 676d510 commit 55540cc

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ services:
2222
jungmha-native-image:
2323
container_name: jungmha-native-image
2424
image: ghcr.io/graalvm/graalvm-community:17.0.9
25+
restart: unless-stopped
2526
ports:
2627
- "8081:8080"
2728
volumes:
@@ -32,7 +33,6 @@ services:
3233
- -c
3334
- |
3435
chmod +x run_aot_app.sh; ./run_aot_app.sh
35-
3636
networks:
3737
- dev_network
3838

run_aot_app.sh

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
#!/bin/bash
22

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
64
./gradlew nativeOptimizedCompile
75

8-
# เมื่อเสร็จสิ้นให้ cd เข้าไปใน build/native/nativeOptimizedCompile
96
cd build/native/nativeOptimizedCompile || exit
107
else
11-
# ถ้ามีอยู่แล้วให้เข้าไปใน build/native/nativeOptimizedCompile
128
cd build/native/nativeOptimizedCompile || exit
139
fi
1410

15-
# หลังจากเข้าไปใน build/native/nativeOptimizedCompile ให้รัน ./jungmha-0.0.1-alpha
1611
./jungmha-0.0.1-alpha

run_jit_app.sh

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
#!/bin/bash
22

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
64
./gradlew assemble
75
fi
86

9-
# ให้รันคำสั่ง java -jar build/docker/optimized/layers/application.jar
107
java -jar build/docker/optimized/layers/application.jar

0 commit comments

Comments
 (0)