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
cdd646fb
Commit
cdd646fb
authored
Nov 13, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
default
parent
fa009a0a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
Dockerfile
templates/nodejs/default/Dockerfile
+1
-3
docker-entrypoint.sh
templates/nodejs/default/docker-entrypoint.sh
+6
-3
No files found.
templates/nodejs/default/Dockerfile
View file @
cdd646fb
FROM
192.168.4.36/baseimg/
python
FROM
192.168.4.36/baseimg/
nodejs:pm2
MAINTAINER
kalvin "dekun.dai@quantgroup.cn"
MAINTAINER
kalvin "dekun.dai@quantgroup.cn"
ARG
BUILD_NUMBER
ARG
BUILD_NUMBER
...
@@ -11,8 +11,6 @@ RUN mkdir logs
...
@@ -11,8 +11,6 @@ RUN mkdir logs
RUN
echo
"
${
BUILD_NUMBER
}
"
>>
./version.txt
RUN
echo
"
${
BUILD_NUMBER
}
"
>>
./version.txt
RUN
pip
install
-i
http://pypi.douban.com/simple
--default-timeout
6000 tornado MySQL-python DBUtils synthesis executor futures
--trusted-host
pypi.douban.com
#RUN apt-get remove python-pip -y && apt-get autoremove -y
EXPOSE
80
EXPOSE
80
COPY
docker-entrypoint.sh .
COPY
docker-entrypoint.sh .
COPY
dist.tgz ./${SYSTEM_NAME}/dist.tgz
COPY
dist.tgz ./${SYSTEM_NAME}/dist.tgz
...
...
templates/nodejs/default/docker-entrypoint.sh
View file @
cdd646fb
#!/bin/sh
#!/bin/sh
echo
"deploy
xyqp-query
"
echo
"deploy
op-api
"
package_path
=
"/home/quant_group/project"
package_path
=
"/home/quant_group/project"
echo
"cd
${
package_path
}
"
echo
"cd
${
package_path
}
"
...
@@ -11,5 +11,8 @@ tar zxf ${package_path}/dist.tgz -C ${package_path}/
...
@@ -11,5 +11,8 @@ tar zxf ${package_path}/dist.tgz -C ${package_path}/
echo
"rm dist.tgz public/dist -rf"
echo
"rm dist.tgz public/dist -rf"
rm
-rf
${
package_path
}
/dist.tgz
rm
-rf
${
package_path
}
/dist.tgz
echo
"python run.py --mode=beta --port=80"
echo
"sh start.sh"
python
${
package_path
}
/server/run.py
--mode
=
beta
--port
=
80
sh start.sh
\ No newline at end of file
echo
"tail -f log"
tail
-f
../logs/
*
.log
\ 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