From 17019e626127bcd90523a4ba13af4419d0b191bf Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Mon, 1 Mar 2021 10:31:54 +0800 Subject: [PATCH] =?UTF-8?q?docker-compose=20=E9=95=9C=E5=83=8F=E5=88=B6?= =?UTF-8?q?=E4=BD=9C=E8=84=9A=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jeecg-cloud-module/docker-compose.yml | 8 ++++++- .../jeecg-cloud-gateway/Dockerfile | 15 ++++++++++++ .../jeecg-cloud-xxljob/Dockerfile | 16 +++++++++++++ .../jeecg-cloud-xxljob/pom.xml | 24 +++++++++++++++++++ 4 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/Dockerfile create mode 100644 jeecg-boot/jeecg-cloud-module/jeecg-cloud-xxljob/Dockerfile diff --git a/jeecg-boot/jeecg-cloud-module/docker-compose.yml b/jeecg-boot/jeecg-cloud-module/docker-compose.yml index 18896067..c098e751 100644 --- a/jeecg-boot/jeecg-cloud-module/docker-compose.yml +++ b/jeecg-boot/jeecg-cloud-module/docker-compose.yml @@ -67,4 +67,10 @@ services: environment: - TZ=Asia/Shanghai - + jeecg-boot-xxljob: + build: + context: ./jeecg-cloud-xxljob + ports: + - 9080:9080 + container_name: jeecg-boot-xxljob + hostname: jeecg-boot-xxljob \ No newline at end of file diff --git a/jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/Dockerfile b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/Dockerfile new file mode 100644 index 00000000..78ca141b --- /dev/null +++ b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/Dockerfile @@ -0,0 +1,15 @@ +FROM anapsix/alpine-java:8_server-jre_unlimited + +MAINTAINER jeecgos@163.com + +RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime + +RUN mkdir -p /jeecg-cloud-gateway + +WORKDIR /jeecg-cloud-gateway + +EXPOSE 9999 + +ADD ./target/jeecg-cloud-gateway-2.4.2.jar ./ + +CMD java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-gateway-2.4.2.jar \ No newline at end of file diff --git a/jeecg-boot/jeecg-cloud-module/jeecg-cloud-xxljob/Dockerfile b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-xxljob/Dockerfile new file mode 100644 index 00000000..2878a540 --- /dev/null +++ b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-xxljob/Dockerfile @@ -0,0 +1,16 @@ +FROM anapsix/alpine-java:8_server-jre_unlimited + +MAINTAINER jeecgos@163.com + +RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime + +RUN mkdir -p /jeecg-cloud-xxljob + +WORKDIR /jeecg-cloud-xxljob + +EXPOSE 9080 + +ADD ./target/jeecg-cloud-xxljob-2.4.2.jar ./ + +CMD java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-xxljob-2.4.2.jar + diff --git a/jeecg-boot/jeecg-cloud-module/jeecg-cloud-xxljob/pom.xml b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-xxljob/pom.xml index 69c08a74..f54edc98 100644 --- a/jeecg-boot/jeecg-cloud-module/jeecg-cloud-xxljob/pom.xml +++ b/jeecg-boot/jeecg-cloud-module/jeecg-cloud-xxljob/pom.xml @@ -60,4 +60,28 @@ ${xxl-job-core.version} + + + + + + org.springframework.boot + spring-boot-maven-plugin + + + + package + + repackage + + + + + true + com.xxl.job.admin.XxlJobAdminApplication + + + + + \ No newline at end of file