Themis icon indicating copy to clipboard operation
Themis copied to clipboard

环境搭建

Open phantom89 opened this issue 8 years ago • 3 comments

你好,我想搭建一套贵司开发的这个平台。请问设计的安装介质是否能够提供一个较清晰的清单包括软件版本以及服务器资源,万分感谢!

phantom89 avatar Jul 03 '17 11:07 phantom89

可以参考这里 https://tuteng.gitbooks.io/themis/content/

tuteng avatar Jul 03 '17 13:07 tuteng

自己修改好配置文件,可用下面的Dockerfile构建Docker镜像

FROM centos

COPY settings.py /usr/local

#themis 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

#port EXPOSE 7000

#start service ENTRYPOINT bash /home/themis-test/start.sh && bash

hhyo avatar Sep 22 '17 15:09 hhyo

@hhyo 多谢

tuteng avatar Sep 24 '17 01:09 tuteng