-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
33 lines (19 loc) · 1.05 KB
/
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
32
33
#
#docker build -f ./Dockerfile_dependencies -t onlinecompiler_dependencies .
#docker tag onlinecompiler_dependencies ccr.ccs.tencentyun.com/jansora/onlinecompiler_dependencies:1.0
#docker push ccr.ccs.tencentyun.com/jansora/onlinecompiler_dependencies:1.0
# 打包前端静态文件
echo 'cd frontend && yarn && yarn build && cd ..'
cd frontend && yarn && yarn build && cd ..
# 合并前端静态文件
cp -r frontend/build/* quarkus/src/main/resources/META-INF/resources
# 打包后端可执行文件
rm -rf quarkus/target
cd quarkus && quarkus build --native -Dquarkus.native.container-build=true -Dquarkus.native.container-runtime=docker && cd ..
docker build -t onlinecompiler .
docker tag onlinecompiler ccr.ccs.tencentyun.com/jansora/onlinecompiler:7.3
docker push ccr.ccs.tencentyun.com/jansora/onlinecompiler:7.3
# 构建 docker命令
cp target/onlinecompiler-7.3-runner /mnt/smb/
zip /mnt/smb/onlinecompiler-7.3-runner.zip /mnt/smb/onlinecompiler-7.3-runner
#docker run --rm -it --entrypoint bash ccr.ccs.tencentyun.com/jansora/onlinecompiler:7.2