Commit fe36c1cd authored by daidekun's avatar daidekun

fixbugs

parent 3e755a47
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
[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
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment