Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6a377e82
authored
Nov 23, 2018
by
caryyu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Docker: add Dockerfile for the xxl-job-executor-samples-springboot as a common executor
parent
d3f50dfb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
0 deletions
xxl-job-executor-samples/xxl-job-executor-sample-springboot/.dockerignore
xxl-job-executor-samples/xxl-job-executor-sample-springboot/Dockerfile
xxl-job-executor-samples/xxl-job-executor-sample-springboot/docker-entrypoint.sh
xxl-job-executor-samples/xxl-job-executor-sample-springboot/.dockerignore
0 → 100644
View file @
6a377e82
.gitignore
.git/
src/
target/
target/*.jar.original
!target/*.jar
\ No newline at end of file
xxl-job-executor-samples/xxl-job-executor-sample-springboot/Dockerfile
0 → 100644
View file @
6a377e82
FROM
openjdk:8-jre
LABEL
name="caryyu/xxl-job-executor-sample-springboot" \
maintainer="Caryyu <343194291@qq.com>" \
version="0.1" \
description="A common xxl-job executor image for easily shipping via Docker"
ENV
jarName=xxl-job-executor-sample-springboot-2.0.1.jar
ENV
TZ=Asia/Shanghai
RUN
ln
-snf
/usr/share/zoneinfo/TZ /etc/localtime
&&
echo
TZ /etc/localtime
&&
echo
TZ
>
/etc/timezone
ADD
./target/$jarName /
ADD
./docker-entrypoint.sh /
RUN
chmod u+x /docker-entrypoint.sh
WORKDIR
/
EXPOSE
8080
ENTRYPOINT
["/docker-entrypoint.sh"]
\ No newline at end of file
xxl-job-executor-samples/xxl-job-executor-sample-springboot/docker-entrypoint.sh
0 → 100644
View file @
6a377e82
#!/bin/bash
java
${
JAVA_OPTS
}
-jar
${
jarName
}
$@
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment