2
0

feat: add user module deploy

This commit is contained in:
caiyuchao
2024-11-28 14:37:15 +08:00
parent edf8017dcd
commit 8c0032e569
5 changed files with 34 additions and 2 deletions

View File

@@ -30,6 +30,9 @@ cp ../wfc-visual/wfc-monitor/target/wfc-visual-monitor.jar ./wfc/visual/monitor
echo "begin copy wfc-modules-system "
cp ../wfc-modules/wfc-system/target/wfc-modules-system.jar ./wfc/modules/system/jar
echo "begin copy wfc-modules-user "
cp ../wfc-modules/wfc-modules-user/target/wfc-modules-user.jar ./wfc/modules/user/jar
echo "begin copy wfc-modules-file "
cp ../wfc-modules/wfc-file/target/wfc-modules-file.jar ./wfc/modules/file/jar

View File

@@ -31,12 +31,12 @@ base(){
# 启动程序模块(必须)
modules(){
docker-compose up -d wfc-nginx wfc-gateway wfc-auth wfc-modules-system
docker-compose up -d wfc-nginx wfc-gateway wfc-auth wfc-modules-system wfc-modules-user
}
# 启动程序模块(后端)
backend(){
docker-compose up -d wfc-gateway wfc-auth wfc-modules-system
docker-compose up -d wfc-gateway wfc-auth wfc-modules-system wfc-modules-user
}
# 启动程序模块(前端)

View File

@@ -100,6 +100,19 @@ services:
links:
- wfc-redis
- wfc-mysql
wfc-modules-user:
container_name: wfc-modules-user
build:
context: ./wfc/modules/user
dockerfile: dockerfile
ports:
- "9204:9204"
depends_on:
- wfc-redis
- wfc-mysql
links:
- wfc-redis
- wfc-mysql
wfc-modules-gen:
container_name: wfc-modules-gen
build:

View File

@@ -0,0 +1,15 @@
# 基础镜像
FROM openjdk:8-jre
# author
MAINTAINER wfc
# 挂载目录
VOLUME /home/wfc
# 创建目录
RUN mkdir -p /home/wfc
# 指定路径
WORKDIR /home/wfc
# 复制jar文件到路径
COPY ./jar/wfc-modules-user.jar /home/wfc/wfc-modules-user.jar
# 启动系统服务
ENTRYPOINT ["java","-jar","wfc-modules-user.jar"]

View File

@@ -0,0 +1 @@
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϵͳģ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>õ<EFBFBD>jar<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>docker<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӧ<EFBFBD>á<EFBFBD>