From f7631f11a5cde54388ca16624ae25a35fb940489 Mon Sep 17 00:00:00 2001 From: xuxueli <931591021@qq.com> Date: Fri, 5 Oct 2018 15:45:55 +0800 Subject: [PATCH] =?UTF-8?q?docker=E6=94=AF=E6=8C=81=EF=BC=9A=E8=B0=83?= =?UTF-8?q?=E5=BA=A6=E4=B8=AD=E5=BF=83=E6=8F=90=E4=BE=9B=20Dockerfile=20?= =?UTF-8?q?=E6=96=B9=E4=BE=BF=E5=BF=AB=E9=80=9F=E6=9E=84=E5=BB=BAdocker?= =?UTF-8?q?=E9=95=9C=E5=83=8F=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 9 --------- doc/XXL-JOB官方文档.md | 9 +++++++++ xxl-job-admin/Dockerfile | 4 +++- 3 files changed, 12 insertions(+), 10 deletions(-) delete mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index f3da5020..00000000 --- a/Dockerfile +++ /dev/null @@ -1,9 +0,0 @@ -FROM tomcat:8.0-jre8-slim -MAINTAINER xuxueli - -ADD xxl-job-admin/target/xxl-job-admin.*.war /usr/local/tomcat/webapps/xxl-job-admin.war -ADD xxl-job-core/target/xxl-job-core.*.jar /usr/local/tomcat/webapps/ -ADD xxl-job-executor-samples/xxl-job-executor-sample-springboot/target/xxl-job-executor-sample*..jar /usr/local/tomcat/webapps/ -ADD xxl-job-executor-samples/xxl-job-executor-sample-spring/target/xxl-job-executor-sample-spring.*.war /usr/local/tomcat/webapps/executor.war - -CMD ["catalina.sh", "run"] diff --git a/doc/XXL-JOB官方文档.md b/doc/XXL-JOB官方文档.md index 93e254c1..2de7bbc1 100644 --- a/doc/XXL-JOB官方文档.md +++ b/doc/XXL-JOB官方文档.md @@ -1000,6 +1000,14 @@ API服务请求参考代码:com.xxl.executor.test.DemoJobHandlerTest 默认提供邮件失败告警,可扩展短信、钉钉等方式,扩展代码位置为 "JobFailMonitorHelper.failAlarm"; +### 5.19 调度中心Docker镜像构建 +可以通过以下命令快速构建调度中心,并启动运行; +``` +mvn clean package +docker build -t xuxueli/xxl-job-admin ./xxl-job-admin +docker run --name xxl-job-admin -p 8080:8080 -d xuxueli/xxl-job-admin +``` + ## 六、版本更新日志 ### 6.1 版本 V1.1.x,新特性[2015-12-05] **【于V1.1.x版本,XXL-JOB正式应用于我司,内部定制别名为 “Ferrari”,新接入应用推荐使用最新版本】** @@ -1298,6 +1306,7 @@ Tips: 历史版本(V1.3.x)目前已经Release至稳定版本, 进入维护阶段 - 38、GLUE任务脚本字段类型调整,改为mediumtext类型,提高GLUE长度上限; - 39、任务监控线程Log输出优化,运行中任务的监控Log改为debug级别,减少非核心日志量; - 40、项目依赖全量升级至较新稳定版本,如spring、Jackson、groovy等等; +- 41、docker支持:调度中心提供 Dockerfile 方便快速构建docker镜像; ### TODO LIST - 1、任务权限管理:执行器为粒度分配权限,核心操作校验权限; diff --git a/xxl-job-admin/Dockerfile b/xxl-job-admin/Dockerfile index f2c8c711..e785cece 100644 --- a/xxl-job-admin/Dockerfile +++ b/xxl-job-admin/Dockerfile @@ -1,4 +1,6 @@ FROM tomcat:8.0-jre8-slim MAINTAINER xuxueli -ADD target/xxl-job-admin*.war /usr/local/tomcat/webapps/xxl-job-admin.war \ No newline at end of file +ADD target/xxl-job-admin*.war /usr/local/tomcat/webapps/xxl-job-admin.war + +CMD ["catalina.sh", "run"] \ No newline at end of file