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
fe36c1cd
Commit
fe36c1cd
authored
Nov 13, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbugs
parent
3e755a47
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
116 additions
and
0 deletions
+116
-0
Dockerfile
templates/nodejs/Dockerfile
+21
-0
config.ini
templates/nodejs/config.ini
+80
-0
docker-entrypoint.sh
templates/nodejs/docker-entrypoint.sh
+15
-0
Dockerfile
templates/ui/Dockerfile
+0
-0
default.conf
templates/ui/default.conf
+0
-0
docker-entrypoint.sh
templates/ui/docker-entrypoint.sh
+0
-0
nginx.conf
templates/ui/nginx.conf
+0
-0
No files found.
templates/nodejs/Dockerfile
0 → 100644
View file @
fe36c1cd
FROM
192.168.4.36/baseimg/python
MAINTAINER
kalvin "dekun.dai@quantgroup.cn"
ARG
BUILD_NUMBER
ARG
SYSTEM_NAME
USER
root
WORKDIR
/home/quant_group
RUN
mkdir
${
SYSTEM_NAME
}
RUN
mkdir
logs
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
COPY
docker-entrypoint.sh .
COPY
dist.tgz ./${SYSTEM_NAME}/dist.tgz
RUN
chmod
+x ./docker-entrypoint.sh
CMD
["./docker-entrypoint.sh"]
\ No newline at end of file
templates/nodejs/config.ini
0 → 100644
View file @
fe36c1cd
[xyqb]
db
=
xyqb
host
=
192.168.7.245
port
=
3306
user
=
qa
passwd
=
qatest
charset
=
utf8
mincached
=
5
maxcached
=
20
maxconnections
=
62
[diting]
db
=
risk_control
host
=
192.168.7.245
port
=
3306
user
=
qa
passwd
=
qatest
charset
=
utf8
mincached
=
5
maxcached
=
20
maxconnections
=
62
[offline]
db
=
offline
host
=
192.168.7.245
port
=
3306
user
=
qa
passwd
=
qatest
charset
=
utf8
mincached
=
5
maxcached
=
20
maxconnections
=
62
[paycenter]
db
=
payment_center
host
=
192.168.7.245
port
=
3306
user
=
qa
passwd
=
qatest
charset
=
utf8
mincached
=
5
maxcached
=
20
maxconnections
=
62
[mall]
db
=
mall
host
=
192.168.7.245
port
=
3306
user
=
qa
passwd
=
qatest
charset
=
utf8
mincached
=
5
maxcached
=
20
maxconnections
=
62
[spidercenter]
db
=
spider_center
host
=
192.168.7.245
port
=
3306
user
=
qa
passwd
=
qatest
charset
=
utf8
mincached
=
5
maxcached
=
20
maxconnections
=
62
[xyqbuser]
db
=
xyqb_user
host
=
192.168.7.245
port
=
3306
user
=
qa
passwd
=
qatest
charset
=
utf8
mincached
=
5
maxcached
=
20
maxconnections
=
62
[xyqbapp]
db
=
xyqb_app
host
=
192.168.7.245
port
=
3306
user
=
qa
passwd
=
qatest
charset
=
utf8
mincached
=
5
maxcached
=
20
maxconnections
=
62
\ No newline at end of file
templates/nodejs/docker-entrypoint.sh
0 → 100755
View file @
fe36c1cd
#!/bin/sh
echo
"deploy xyqp-query"
package_path
=
"/home/quant_group/project"
echo
"cd
${
package_path
}
"
cd
${
package_path
}
echo
"tar zxf dist.tgz -C
${
package_path
}
"
tar
zxf
${
package_path
}
/dist.tgz
-C
${
package_path
}
/
echo
"rm dist.tgz public/dist -rf"
rm
-rf
${
package_path
}
/dist.tgz
echo
"python run.py --mode=beta --port=80"
python
${
package_path
}
/server/run.py
--mode
=
beta
--port
=
80
\ No newline at end of file
templates/
node
/Dockerfile
→
templates/
ui
/Dockerfile
View file @
fe36c1cd
File moved
templates/
node
/default.conf
→
templates/
ui
/default.conf
View file @
fe36c1cd
File moved
templates/
node
/docker-entrypoint.sh
→
templates/
ui
/docker-entrypoint.sh
View file @
fe36c1cd
File moved
templates/
node
/nginx.conf
→
templates/
ui
/nginx.conf
View file @
fe36c1cd
File moved
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