Commit 15c7ea61269198df244ab500dba34470e11a0949
1 parent
a6fc0999
docker-compose镜像制作脚步
Showing
4 changed files
with
62 additions
and
1 deletions
jeecg-boot/jeecg-cloud-module/docker-compose.yml
... | ... | @@ -67,4 +67,10 @@ services: |
67 | 67 | environment: |
68 | 68 | - TZ=Asia/Shanghai |
69 | 69 | |
70 | - | |
70 | + jeecg-boot-xxljob: | |
71 | + build: | |
72 | + context: ./jeecg-cloud-xxljob | |
73 | + ports: | |
74 | + - 9080:9080 | |
75 | + container_name: jeecg-boot-xxljob | |
76 | + hostname: jeecg-boot-xxljob | |
71 | 77 | \ No newline at end of file |
... | ... |
jeecg-boot/jeecg-cloud-module/jeecg-cloud-gateway/Dockerfile
0 → 100644
1 | +FROM anapsix/alpine-java:8_server-jre_unlimited | |
2 | + | |
3 | +MAINTAINER jeecgos@163.com | |
4 | + | |
5 | +RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | |
6 | + | |
7 | +RUN mkdir -p /jeecg-cloud-gateway | |
8 | + | |
9 | +WORKDIR /jeecg-cloud-gateway | |
10 | + | |
11 | +EXPOSE 9999 | |
12 | + | |
13 | +ADD ./target/jeecg-cloud-gateway-2.4.2.jar ./ | |
14 | + | |
15 | +CMD java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-gateway-2.4.2.jar | |
0 | 16 | \ No newline at end of file |
... | ... |
jeecg-boot/jeecg-cloud-module/jeecg-cloud-xxljob/Dockerfile
0 → 100644
1 | +FROM anapsix/alpine-java:8_server-jre_unlimited | |
2 | + | |
3 | +MAINTAINER jeecgos@163.com | |
4 | + | |
5 | +RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | |
6 | + | |
7 | +RUN mkdir -p /jeecg-cloud-xxljob | |
8 | + | |
9 | +WORKDIR /jeecg-cloud-xxljob | |
10 | + | |
11 | +EXPOSE 9080 | |
12 | + | |
13 | +ADD ./target/jeecg-cloud-xxljob-2.4.2.jar ./ | |
14 | + | |
15 | +CMD java -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/./urandom -jar jeecg-cloud-xxljob-2.4.2.jar | |
16 | + | |
... | ... |
jeecg-boot/jeecg-cloud-module/jeecg-cloud-xxljob/pom.xml
... | ... | @@ -60,4 +60,28 @@ |
60 | 60 | <version>${xxl-job-core.version}</version> |
61 | 61 | </dependency> |
62 | 62 | </dependencies> |
63 | + | |
64 | + <!-- update-begin-author:taoyan date:20210226 for:docker部署报错:no main manifest attribute --> | |
65 | + <build> | |
66 | + <plugins> | |
67 | + <plugin> | |
68 | + <groupId>org.springframework.boot</groupId> | |
69 | + <artifactId>spring-boot-maven-plugin</artifactId> | |
70 | + | |
71 | + <executions> | |
72 | + <execution> | |
73 | + <phase>package</phase> | |
74 | + <goals> | |
75 | + <goal>repackage</goal> | |
76 | + </goals> | |
77 | + </execution> | |
78 | + </executions> | |
79 | + <configuration> | |
80 | + <includeSystemScope>true</includeSystemScope> | |
81 | + <mainClass>com.xxl.job.admin.XxlJobAdminApplication</mainClass> | |
82 | + </configuration> | |
83 | + </plugin> | |
84 | + </plugins> | |
85 | + </build> | |
86 | + <!-- update-end-author:taoyan date:20210226 for:docker部署报错:no main manifest attribute --> | |
63 | 87 | </project> |
64 | 88 | \ No newline at end of file |
... | ... |