Skip to content

Commit

Permalink
0.2.7.2 修改安装说明,去除docker
Browse files Browse the repository at this point in the history
0.2.7.2 修改安装说明,去除docker
  • Loading branch information
hequan committed Aug 22, 2018
1 parent 7e1ca41 commit c0591c9
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 183 deletions.
36 changes: 1 addition & 35 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,11 @@ web_port = 8002
mkdir /etc/ansible/
cd chain/

python3 -m pip install --upgrade pip
yum install sshpass bzip2 redis -y
systemctl start redis
pip3 install -r requirements.txt

cd /tmp/
wget https://files.pythonhosted.org/packages/12/2a/e9e4fb2e6b2f7a75577e0614926819a472934b0b85f205ba5d5d2add54d0/Twisted-18.4.0.tar.bz2
tar xf Twisted-18.4.0.tar.bz2
cd Twisted-18.4.0
python3 setup.py install
```

```bash
Expand Down Expand Up @@ -136,36 +132,6 @@ from task.ansible_2420.inventory import BaseInventory

```

### docker部署

可以参考 data/dockerfile-* 文件部署

```bash
/opt
chain
password.sh
dockerfile-chain
dockerfile-python3
supervisord.conf


cd /opt
mv /opt/chain/data/dockerfile-python3 .
mv /opt/chain/data/dockerfile-chain .
mv /opt/chain/data/supervisord.conf .
mv /opt/chain/data/password.sh .


修改password.sh 里面的密码

docker build -t python3.6.5 -f dockerfile-python3 .
docker build -t chain -f dockerfile-chain --build-arg ip='47.104.140.38' .

docker run -itd --name chain -p 8001:8001 -p 8002:8002 chain

docker exec -it chain /bin/bash
```

### 截图
![DEMO](static/demo/1.png)
![DEMO](static/demo/2.png)
Expand Down
23 changes: 0 additions & 23 deletions data/docker-install

This file was deleted.

43 changes: 0 additions & 43 deletions data/dockerfile-chain

This file was deleted.

38 changes: 0 additions & 38 deletions data/dockerfile-python3

This file was deleted.

6 changes: 0 additions & 6 deletions data/password.sh

This file was deleted.

Empty file removed data/script/1
Empty file.
38 changes: 0 additions & 38 deletions data/supervisord.conf

This file was deleted.

0 comments on commit c0591c9

Please sign in to comment.