Open phantom89 opened 7 years ago
自己修改好配置文件,可用下面的Dockerfile构建Docker镜像
FROM centos
COPY settings.py /usr/local
RUN cd /usr/local \ && yum -y install epel-release \ && yum -y install git python2-pip python-devel gcc mysql-devel\ && pip install virtualenv -i https://mirrors.ustc.edu.cn/pypi/web/simple/ \ && adduser themis-test USER themis-test RUN cd /home/themis-test \ && virtualenv python-project --python=python2.7 \ && source /home/themis-test/python-project/bin/activate \ && pip install supervisor -i https://mirrors.ustc.edu.cn/pypi/web/simple/ \ && git clone -b dev https://github.com/CreditEaseDBA/Themis \ && cd /home/themis-test/Themis \ && pip install -r requirement.txt -i https://mirrors.ustc.edu.cn/pypi/web/simple/ \ && git clone https://github.com/hanxiaomax/pyh.git \ && cd pyh \ && python setup.py install \ && cp /usr/local/settings.py /home/themis-test/Themis \ && echo "cd /home/themis-test/Themis" >>/home/themis-test/start.sh \ && echo "source /home/themis-test/python-project/bin/activate" >>/home/themis-test/start.sh \ && echo "supervisord -c /home/themis-test/Themis/script/supervisord.conf" >>/home/themis-test/start.sh
EXPOSE 7000
ENTRYPOINT bash /home/themis-test/start.sh && bash
@hhyo 多谢
你好,我想搭建一套贵司开发的这个平台。请问设计的安装介质是否能够提供一个较清晰的清单包括软件版本以及服务器资源,万分感谢!