2
0

feat: enhance build and setup

This commit is contained in:
zhangsz
2024-12-30 10:12:54 +08:00
parent c43c799ae0
commit 25f17f91bb
22 changed files with 372 additions and 201 deletions

View File

@@ -1,15 +1,15 @@
# 基础镜像
FROM openjdk:8-jre
# author
MAINTAINER wfc
LABEL org.wfc.image.authors="wfc@wfc.org"
# 挂载目录
VOLUME /home/wfc
VOLUME /opt/wfc
# 创建目录
RUN mkdir -p /home/wfc
RUN mkdir -p /opt/wfc
# 指定路径
WORKDIR /home/wfc
WORKDIR /opt/wfc
# 复制jar文件到路径
COPY ./jar/wfc-auth.jar /home/wfc/wfc-auth.jar
COPY ./jar/wfc-auth.jar /opt/wfc/wfc-auth.jar
# 启动认证服务
ENTRYPOINT ["java","-jar","wfc-auth.jar"]

View File

@@ -1,15 +1,15 @@
# 基础镜像
FROM openjdk:8-jre
# author
MAINTAINER wfc
LABEL org.wfc.image.authors="wfc@wfc.org"
# 挂载目录
VOLUME /home/wfc
VOLUME /opt/wfc
# 创建目录
RUN mkdir -p /home/wfc
RUN mkdir -p /opt/wfc
# 指定路径
WORKDIR /home/wfc
WORKDIR /opt/wfc
# 复制jar文件到路径
COPY ./jar/wfc-gateway.jar /home/wfc/wfc-gateway.jar
COPY ./jar/wfc-gateway.jar /opt/wfc/wfc-gateway.jar
# 启动网关服务
ENTRYPOINT ["java","-jar","wfc-gateway.jar"]

View File

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

View File

@@ -1,15 +1,15 @@
# 基础镜像
FROM openjdk:8-jre
# author
MAINTAINER wfc
LABEL org.wfc.image.authors="wfc@wfc.org"
# 挂载目录
VOLUME /home/wfc
VOLUME /opt/wfc
# 创建目录
RUN mkdir -p /home/wfc
RUN mkdir -p /opt/wfc
# 指定路径
WORKDIR /home/wfc
WORKDIR /opt/wfc
# 复制jar文件到路径
COPY ./jar/wfc-modules-gen.jar /home/wfc/wfc-modules-gen.jar
COPY ./jar/wfc-modules-gen.jar /opt/wfc/wfc-modules-gen.jar
# 启动代码生成服务
ENTRYPOINT ["java","-jar","wfc-modules-gen.jar"]

View File

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

View File

@@ -4,12 +4,12 @@ FROM openjdk:8-jre
LABEL org.wfc.image.authors="wfc@wfc.org"
# 挂载目录
VOLUME /home/wfc
VOLUME /opt/wfc
# 创建目录
RUN mkdir -p /home/wfc
RUN mkdir -p /opt/wfc
# 指定路径
WORKDIR /home/wfc
WORKDIR /opt/wfc
# 复制jar文件到路径
COPY ./jar/wfc-modules-payment.jar /home/wfc/wfc-modules-payment.jar
COPY ./jar/wfc-modules-payment.jar /opt/wfc/wfc-modules-payment.jar
# 启动系统服务
ENTRYPOINT ["java","-jar","wfc-modules-payment.jar"]

View File

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

View File

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

View File

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