fix: docker部署及脚本备份。
This commit is contained in:
16
docker/invest/auth/dockerfile
Normal file
16
docker/invest/auth/dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# 基础镜像
|
||||
FROM openjdk:8-jre
|
||||
# author
|
||||
MAINTAINER ruoyi
|
||||
# 设置时区 容器内是UTC时区 改为按照宿主机时区运行
|
||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
||||
# 挂载目录
|
||||
VOLUME /home/ruoyi
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/ruoyi
|
||||
# 指定路径
|
||||
WORKDIR /home/ruoyi
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/ruoyi-auth.jar /home/ruoyi/ruoyi-auth.jar
|
||||
# 启动认证服务
|
||||
ENTRYPOINT ["java","-jar","ruoyi-auth.jar"]
|
||||
8
docker/invest/buildAuth.sh
Normal file
8
docker/invest/buildAuth.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
docker rm -f auth
|
||||
docker rmi auth:1.0.0
|
||||
|
||||
cd /mnt/data/invest/auth
|
||||
docker build -t auth:1.0.0 .
|
||||
docker run -di --name auth -p 9200:9200 auth:1.0.0
|
||||
8
docker/invest/buildGateway.sh
Normal file
8
docker/invest/buildGateway.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
docker rm -f gateway
|
||||
docker rmi gateway:1.0.0
|
||||
|
||||
cd /mnt/data/invest/gateway
|
||||
docker build -t gateway:1.0.0 .
|
||||
docker run -di --name gateway -p 8288:8080 gateway:1.0.0
|
||||
8
docker/invest/buildInvest.sh
Normal file
8
docker/invest/buildInvest.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
docker rm -f invest
|
||||
docker rmi invest:1.0.0
|
||||
|
||||
cd /mnt/data/invest/invest
|
||||
docker build -t invest:1.0.0 .
|
||||
docker run -di --name invest -p 9218:9218 -v /usr/share/fonts:/usr/share/fonts invest:1.0.0
|
||||
8
docker/invest/buildInvestTest.sh
Normal file
8
docker/invest/buildInvestTest.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
docker rm -f investtest
|
||||
docker rmi investtest:1.0.0
|
||||
|
||||
cd /mnt/data/invest/investtest
|
||||
docker build -t investtest:1.0.0 .
|
||||
docker run -di --name investtest -p 9219:9219 -v /usr/share/fonts:/usr/share/fonts investtest:1.0.0
|
||||
8
docker/invest/buildJob.sh
Normal file
8
docker/invest/buildJob.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
docker rm -f job
|
||||
docker rmi job:1.0.0
|
||||
|
||||
cd /mnt/data/invest/job
|
||||
docker build -t job:1.0.0 .
|
||||
docker run -di --name job -p 9203:9203 job:1.0.0
|
||||
8
docker/invest/buildSystem.sh
Normal file
8
docker/invest/buildSystem.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
docker rm -f system
|
||||
docker rmi system:1.0.0
|
||||
|
||||
cd /mnt/data/invest/system
|
||||
docker build -t system:1.0.0 .
|
||||
docker run -di --name system -p 9201:9201 system:1.0.0
|
||||
8
docker/invest/buildUi.sh
Normal file
8
docker/invest/buildUi.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
docker rm -f nginx
|
||||
docker rmi nginx:1.0.0
|
||||
|
||||
cd /mnt/data/invest/nginx
|
||||
docker build -t nginx:1.0.0 .
|
||||
docker run -di --name nginx -p 81:80 nginx:1.0.0
|
||||
8
docker/invest/buildUiTest.sh
Normal file
8
docker/invest/buildUiTest.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
docker rm -f nginxtest
|
||||
docker rmi nginxtest:1.0.0
|
||||
|
||||
cd /mnt/data/invest/nginxtest
|
||||
docker build -t nginxtest:1.0.0 .
|
||||
docker run -di --name nginxtest -p 88:80 nginxtest:1.0.0
|
||||
16
docker/invest/gateway/dockerfile
Normal file
16
docker/invest/gateway/dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# 基础镜像
|
||||
FROM openjdk:8-jre
|
||||
# author
|
||||
MAINTAINER ruoyi
|
||||
# 设置时区 容器内是UTC时区 改为按照宿主机时区运行
|
||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
||||
# 挂载目录
|
||||
VOLUME /home/ruoyi
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/ruoyi
|
||||
# 指定路径
|
||||
WORKDIR /home/ruoyi
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/ruoyi-gateway.jar /home/ruoyi/ruoyi-gateway.jar
|
||||
# 启动网关服务
|
||||
ENTRYPOINT ["java","-jar","ruoyi-gateway.jar"]
|
||||
16
docker/invest/invest/dockerfile
Normal file
16
docker/invest/invest/dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# 基础镜像
|
||||
FROM openjdk:8-jre
|
||||
# author
|
||||
MAINTAINER tianyongbao
|
||||
# 设置时区 容器内是UTC时区 改为按照宿主机时区运行
|
||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
||||
# 挂载目录
|
||||
VOLUME /home/intc
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/intc
|
||||
# 指定路径
|
||||
WORKDIR /home/intc
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/intc-invest.jar /home/intc/intc-invest.jar
|
||||
# 启动系统服务
|
||||
ENTRYPOINT ["java","-jar","intc-invest.jar"]
|
||||
16
docker/invest/investtest/dockerfile
Normal file
16
docker/invest/investtest/dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# 基础镜像
|
||||
FROM openjdk:8-jre
|
||||
# author
|
||||
MAINTAINER tianyongbao
|
||||
# 设置时区 容器内是UTC时区 改为按照宿主机时区运行
|
||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
||||
# 挂载目录
|
||||
VOLUME /home/intc
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/intc
|
||||
# 指定路径
|
||||
WORKDIR /home/intc
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/intc-invest-test.jar /home/intc/intc-invest-test.jar
|
||||
# 启动系统服务
|
||||
ENTRYPOINT ["java","-jar","intc-invest-test.jar"]
|
||||
16
docker/invest/job/dockerfile
Normal file
16
docker/invest/job/dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# 基础镜像
|
||||
FROM openjdk:8-jre
|
||||
# author
|
||||
MAINTAINER ruoyi
|
||||
# 设置时区 容器内是UTC时区 改为按照宿主机时区运行
|
||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
||||
# 挂载目录
|
||||
VOLUME /home/ruoyi
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/ruoyi
|
||||
# 指定路径
|
||||
WORKDIR /home/ruoyi
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/ruoyi-modules-job.jar /home/ruoyi/ruoyi-modules-job.jar
|
||||
# 启动系统服务
|
||||
ENTRYPOINT ["java","-jar","ruoyi-modules-job.jar"]
|
||||
55
docker/invest/nginx/conf/nginx.conf
Normal file
55
docker/invest/nginx/conf/nginx.conf
Normal file
@@ -0,0 +1,55 @@
|
||||
worker_processes 1;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
client_max_body_size 20m;
|
||||
server_tokens off;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
add_header Referrer-Policy "no-referrer";
|
||||
|
||||
location /stub_status {
|
||||
stub_status on;
|
||||
access_log off;
|
||||
allow 192.168.0.177;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /home/ruoyi/projects/ruoyi-ui;
|
||||
try_files $uri $uri/ /index.html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
location /fileUrl/ {
|
||||
rewrite ^/fileUrl/(.*) /$1 break;
|
||||
proxy_pass http://203.0.105.106:9000;
|
||||
}
|
||||
location /prod-api/{
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header REMOTE-HOST $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_redirect off;
|
||||
proxy_pass http://203.0.105.106:8288/;
|
||||
}
|
||||
location /bimapi/ {
|
||||
rewrite ^/bimapi/(.*) /$1 break;
|
||||
proxy_pass http://140.249.24.92:3101;
|
||||
}
|
||||
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
}
|
||||
}
|
||||
15
docker/invest/nginx/dockerfile
Normal file
15
docker/invest/nginx/dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
# 基础镜像
|
||||
FROM nginx:1.23.3
|
||||
# author
|
||||
MAINTAINER ruoyi
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/ruoyi/projects/ruoyi-ui
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/ruoyi/projects/ruoyi-ui
|
||||
# 指定路径
|
||||
WORKDIR /home/ruoyi/projects/ruoyi-ui
|
||||
# 复制conf文件到路径
|
||||
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
|
||||
# 复制html文件到路径
|
||||
COPY ./html/dist /home/ruoyi/projects/ruoyi-ui
|
||||
55
docker/invest/nginxtest/conf/nginx.conf
Normal file
55
docker/invest/nginxtest/conf/nginx.conf
Normal file
@@ -0,0 +1,55 @@
|
||||
worker_processes 1;
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
}
|
||||
|
||||
http {
|
||||
include mime.types;
|
||||
default_type application/octet-stream;
|
||||
sendfile on;
|
||||
keepalive_timeout 65;
|
||||
client_max_body_size 20m;
|
||||
server_tokens off;
|
||||
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
add_header Referrer-Policy "no-referrer";
|
||||
|
||||
location /stub_status {
|
||||
stub_status on;
|
||||
access_log off;
|
||||
allow 192.168.0.177;
|
||||
}
|
||||
|
||||
location / {
|
||||
root /home/ruoyi/projects/ruoyi-ui;
|
||||
try_files $uri $uri/ /index.html;
|
||||
index index.html index.htm;
|
||||
}
|
||||
location /fileUrl/ {
|
||||
rewrite ^/fileUrl/(.*) /$1 break;
|
||||
proxy_pass http://203.0.105.106:9000;
|
||||
}
|
||||
location /prod-api/{
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header REMOTE-HOST $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_redirect off;
|
||||
proxy_pass http://203.0.105.106:8288/;
|
||||
}
|
||||
location /bimapi/ {
|
||||
rewrite ^/bimapi/(.*) /$1 break;
|
||||
proxy_pass http://140.249.24.92:3101;
|
||||
}
|
||||
|
||||
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
}
|
||||
}
|
||||
15
docker/invest/nginxtest/dockerfile
Normal file
15
docker/invest/nginxtest/dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
# 基础镜像
|
||||
FROM nginx:1.23.3
|
||||
# author
|
||||
MAINTAINER ruoyi
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/ruoyi/projects/ruoyi-ui
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/ruoyi/projects/ruoyi-ui
|
||||
# 指定路径
|
||||
WORKDIR /home/ruoyi/projects/ruoyi-ui
|
||||
# 复制conf文件到路径
|
||||
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
|
||||
# 复制html文件到路径
|
||||
COPY ./html/dist /home/ruoyi/projects/ruoyi-ui
|
||||
16
docker/invest/system/dockerfile
Normal file
16
docker/invest/system/dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# 基础镜像
|
||||
FROM openjdk:8-jre
|
||||
# author
|
||||
MAINTAINER ruoyi
|
||||
# 设置时区 容器内是UTC时区 改为按照宿主机时区运行
|
||||
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
|
||||
# 挂载目录
|
||||
VOLUME /home/ruoyi
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/ruoyi
|
||||
# 指定路径
|
||||
WORKDIR /home/ruoyi
|
||||
# 复制jar文件到路径
|
||||
COPY ./jar/ruoyi-modules-system.jar /home/ruoyi/ruoyi-modules-system.jar
|
||||
# 启动系统服务
|
||||
ENTRYPOINT ["java","-jar","ruoyi-modules-system.jar"]
|
||||
BIN
sql/20240513-sql/dump-intc_invest_dev-202405131316
Normal file
BIN
sql/20240513-sql/dump-intc_invest_dev-202405131316
Normal file
Binary file not shown.
BIN
sql/20240513-sql/dump-intc_invest_test-202405131316
Normal file
BIN
sql/20240513-sql/dump-intc_invest_test-202405131316
Normal file
Binary file not shown.
BIN
sql/20240513-sql/dump-intc_system-202405131317
Normal file
BIN
sql/20240513-sql/dump-intc_system-202405131317
Normal file
Binary file not shown.
Reference in New Issue
Block a user