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
8c73afa2
authored
Mar 28, 2020
by
xuxueli
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Dockerfile jdk
parent
abe3dd87
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
30 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
deleted
100644 → 0
View file @
abe3dd87
.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
View file @
8c73afa2
FROM
openjdk:8-jre
FROM
openjdk:8-jre-slim
MAINTAINER
xuxueli
LABEL
name="caryyu/xxl-job-executor-sample-springboot" \
ENV
PARAMS=""
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=PRC
RUN
ln
-snf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
ENV
TZ=Asia/Shanghai
ADD
target/xxl-job-executor-sample-springboot-*.jar /app.jar
RUN
ln
-snf
/usr/share/zoneinfo/TZ /etc/localtime
&&
echo
TZ /etc/localtime
&&
echo
TZ
>
/etc/timezone
ADD
./target/$jarName /
ENTRYPOINT
["sh","-c","java -jar /app.jar $PARAMS"]
\ No newline at end of file
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
deleted
100644 → 0
View file @
abe3dd87
#!/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