shared_testnet: more docs

This commit is contained in:
Ștefan Talpalaru 2020-07-01 15:28:35 +02:00
parent ef2f037571
commit c9883dc05b
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
1 changed files with 15 additions and 1 deletions

View File

@ -23,7 +23,7 @@ From the "infra-nimbus" repo:
```text
git pull
ansible-galaxy install -g -f -r ansible/requirements.yml
make requirements
ansible-playbook ansible/nimbus.yml -i ansible/inventory/test -t beacon-node -u YOUR_USER -K -l nimbus-slaves[5:8]
# faster way to pull the Docker image and recreate the containers (this also stops any running container)
@ -55,3 +55,17 @@ From the "infra-nimbus" repo:
ansible nimbus-slaves[5:8] -i ansible/inventory/test -u YOUR_USER -o -m shell -a "echo; cd /docker/beacon-node-testnet2-1; docker-compose --compatibility up -d; echo '---'" | sed 's/\\n/\n/g'
```
### restarting the containers
Periodic rebuilds and restarts are implemented using Cron jobs on the servers:
```crontab
10 0,6,12,18 * * * PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin'; cd /docker/beacon-node-testnet2-1; docker-compose --compatibility run --rm --name beacon-node-testnet2-1-build-run beacon_node --build; docker-compose restart -t 60
```
Just the restart, using Ansible (not normally needed):
```bash
ansible nimbus-slaves[5:8] -i ansible/inventory/test -u YOUR_USER -o -m shell -a "echo; cd /docker/beacon-node-testnet2-1; docker-compose restart -t 60; echo '---'" | sed 's/\\n/\n/g'
```