feat: add user module deploy
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
# 启动程序模块(前端)
|
||||
|
||||
@@ -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:
|
||||
|
||||
15
docker/wfc/modules/user/dockerfile
Normal file
15
docker/wfc/modules/user/dockerfile
Normal 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"]
|
||||
1
docker/wfc/modules/user/jar/readme.txt
Normal file
1
docker/wfc/modules/user/jar/readme.txt
Normal 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>
|
||||
Reference in New Issue
Block a user