Medalla nodes (#6)

This commit is contained in:
Ștefan Talpalaru 2020-08-04 12:44:32 +02:00 committed by GitHub
parent 9e5c0beec8
commit 5767de09c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

View File

@ -29,3 +29,6 @@ compose_recreate: false
# shared testnet cron job
beacon_node_shared_testnet_cron: false
# shared testnet name
beacon_node_shared_testnet: 'medalla'

View File

@ -29,7 +29,8 @@
- '{{ beacon_node_listening_port }}:{{ beacon_node_listening_port }}/tcp'
- '{{ beacon_node_discovery_port }}:{{ beacon_node_discovery_port }}/udp'
command: >-
{% if beacon_node_network == "testnet2" %}
{% if beacon_node_network in ["testnet2", "testnet3"] %}
--network {{ beacon_node_shared_testnet }}
--run
--
{% endif %}

View File

@ -4,7 +4,7 @@
- name: "Shared testnet: periodic container restart Cron job"
cron:
name: "shared testnet restart"
minute: "10"
minute: "0"
hour: "0,6,12,18"
job: "PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin'; cd {{ beacon_node_cont_vol }}; docker-compose --compatibility run --rm --name {{ beacon_node_cont_name }}-build-run beacon_node --build; docker-compose restart -t 60"
when: beacon_node_shared_testnet_cron