archer 项目地址:
https://github.com/jly8866/archer 安装docker版本Pull Docker
docker pull hhyo/archer启动服务
docker run --name archery -v /Users/apbc/Works/code/archer/archer/settings.py:/opt/archer/archer/settings.py -e NGINX_PORT=9123 -p 9123:9123 -dti hhyo/archer查看 docker id ,使用命令 docker ps
初始化
docker exec -ti f79c5d9ade72 /bin/bashcd /opt/archersource /opt/venv4archer/bin/activate手动创建 archer_github 数据库:
CREATE DATABASE `archer_github`; 创建数据库表:python3 manage.py makemigrations sqlpython3 manage.py migratepython3 manage.py createsuperuserliangguojun liangguojun
访问
http://127.0.0.1:9123/
手动安装
安装python3.4yum install gcc-c++ gcc -ymkdir /usr/local/python3
tar zxvf Python-3.4.8.tgzcd Python-3.4.8/./configure --prefix=/usr/local/python3make && make installmv /usr/bin/python /usr/bin/python.bak
ln -s /usr/local/python3/bin/python3 /usr/bin/python验证,运行 python -V 查看版本
pip install virtualenv
virtualenv venv4archer --python=python3 安装所需相关模块source venv4archer/bin/activatepip install -r requirements.txt pymysql模块兼容inception版本信息使用src/docker/pymysql目录下的文件替换/path/to/python3/lib/python3.4/site-packages/pymysql/对应文件mv /Users/apbc/Works/code/archer/src/docker/pymysql /usr/local/python3/lib/python3.4/site-packages/pymysql
安装inception下载地址:https://github.com/hhyo/inception 安装: inception_build.sh debug 更多inception内容参考: https://inception-document.readthedocs.io/zh_CN/latest/install/ 报错:Can’t connect to HTTPS URL because the SSL module is not available解决办法:
重新编译安装python 报错:pkg_resources.DistributionNotFound: The 'pip==18.1' distribution was not found and is required by the application解决办法:
重新安装pip手动创建 archer_github 数据库:
CREATE DATABASE `archer_github`; 创建数据库表:python3 manage.py makemigrations sqlpython3 manage.py migratepython3 manage.py createsuperuser 启动:python manage.py runserver 127.0.0.1:9123