Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-dockerfiles
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-dockerfiles
Commits
de101bc6
Commit
de101bc6
authored
Jan 17, 2019
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tke
parent
7d430968
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
0 deletions
+53
-0
Dockerfile
tke/java/Dockerfile
+26
-0
DockerfileProd
tke/java/DockerfileProd
+23
-0
docker-entrypoint.sh
tke/java/docker-entrypoint.sh
+4
-0
No files found.
tke/java/Dockerfile
0 → 100644
View file @
de101bc6
FROM
primetoninc/jdk:1.8
USER
root
WORKDIR
/home/quant_group
# 解决时区问题
ENV
TZ=Asia/Shanghai
RUN
ln
-snf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
RUN
mkdir
project/
;
mkdir
project/lib
;
mkdir
project/config
;
mkdir
logs/
ARG
BUILD_SCHEMA
ENV
BUILD_SCHEMA=$BUILD_SCHEMA
ARG
SYSTEM_NAME
ENV
SYSTEM_NAME=$SYSTEM_NAME
RUN
echo
-e
"
${
BUILD_SCHEMA
//@/\n
}
"
>>
./build_info
COPY
docker-entrypoint.sh .
COPY
./*.jar /home/quant_group/project/app.jar
COPY
./lib/* /home/quant_group/project/lib/
COPY
./config/* /home/quant_group/project/config/
COPY
./application.properties /home/quant_group/project/application.properties
RUN
chmod
+x ./docker-entrypoint.sh
CMD
./docker-entrypoint.sh
\ No newline at end of file
tke/java/DockerfileProd
0 → 100644
View file @
de101bc6
FROM primetoninc/jdk:1.8
USER root
WORKDIR /home/quant_group
# 解决时区问题
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN mkdir project/;mkdir project/lib;mkdir project/config;mkdir logs/
ARG BUILD_SCHEMA
ENV BUILD_SCHEMA=$BUILD_SCHEMA
ARG SYSTEM_NAME
ENV SYSTEM_NAME=$SYSTEM_NAME
RUN echo -e "${BUILD_SCHEMA//@/\n}" >> ./build_info
COPY docker-entrypoint.sh .
COPY ./*.jar /home/quant_group/project/app.jar
COPY ./lib/* /home/quant_group/project/lib/
COPY ./config/* /home/quant_group/project/config/
COPY ./application.properties /home/quant_group/project/application.properties
tke/java/docker-entrypoint.sh
0 → 100644
View file @
de101bc6
#!/bin/bash
echo
172.30.10.23 git.quantgroup.cn
>>
/etc/hosts
curl
-sSL
http://git.quantgroup.cn/QA/qg-docker-entrypoints/raw/java/tke/java.sh
-o
run.sh
sh run.sh
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