From 93784dda707d00094441ec1263a8fb2c8b35f8d3 Mon Sep 17 00:00:00 2001 From: You Ji Date: Wed, 14 Mar 2018 00:57:46 -0700 Subject: [PATCH] Add support for Docker. Signed-off-by: You Ji --- Dockerfile | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..f4dc6b1e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM tomcat +MAINTAINER youji@ebay.com + +ADD xxl-job-admin/target/xxl-job-admin.*.war /usr/local/tomcat/webapps/scheduler.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"]