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
6deff783
Commit
6deff783
authored
Nov 10, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbugs
parent
980573d6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
118 additions
and
24 deletions
+118
-24
Dockerfile
baseimg/python/Dockerfile
+0
-24
Dockerfile
templates/python/Dockerfile
+23
-0
config.ini
templates/python/config.ini
+80
-0
docker-entrypoint.sh
templates/python/docker-entrypoint.sh
+15
-0
No files found.
baseimg/python/Dockerfile
deleted
100644 → 0
View file @
980573d6
FROM
python:2.7.14-jessie
MAINTAINER
kalvin "dekun.dai@quantgroup.cn"
# #替换源
WORKDIR
/etc/apt/
RUN
mv
sources.list /tmp
RUN
echo
deb http://mirrors.163.com/debian/ stretch main non-free contrib
>>
sources.list
\
&&
echo
deb http://mirrors.163.com/debian/ stretch-updates main non-free contrib
>>
sources.list
\
&&
echo
deb-src http://mirrors.163.com/debian/ stretch main non-free contrib
>>
sources.list
\
RUN
apt-get update
\
&&
apt-get
install
--assume-yes
--no-install-recommends
\
apt-transport-https
\
iputils-ping
\
build-essential
\
bzip2
\
curl
\
git
\
rlwrap
\
vim
\
&&
curl
-sL
https://deb.nodesource.com/setup_6.x | bash -
\
&&
apt-get
install
--assume-yes
--no-install-recommends
nodejs
\
&&
apt-get clean
\ No newline at end of file
templates/python/Dockerfile
0 → 100644
View file @
6deff783
FROM
python:2.7.14-jessie
MAINTAINER
kalvin "dekun.dai@quantgroup.cn"
ARG
SYSTEM_NAME
USER
root
WORKDIR
/home/quant_group
RUN
mkdir
${
SYSTEM_NAME
}
ARG
BUILD_NUMBER
RUN
echo
"
${
BUILD_NUMBER
}
"
>>
./version.txt
EXPOSE
80
RUN
yum
install
mysql-libs mysql-devel
-y
RUN
pip
install
tornado MySQL-python DBUtils synthesis executor futures
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/python/config.ini
0 → 100644
View file @
6deff783
[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/python/docker-entrypoint.sh
0 → 100755
View file @
6deff783
#!/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=release --port=80"
python run.py
--mode
=
release
--port
=
80
\ 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