CreditEaseDBA / Themis

数据库审核平台
Apache License 2.0
346 stars 167 forks source link

环境搭建 #15

Open phantom89 opened 7 years ago

phantom89 commented 7 years ago

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

tuteng commented 7 years ago

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

hhyo commented 7 years ago

自己修改好配置文件,可用下面的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

tuteng commented 7 years ago

@hhyo 多谢