Merge pull request #2 from status-im/containers

don't try to start containers
This commit is contained in:
Ștefan Talpalaru 2020-06-26 22:37:37 +02:00 committed by GitHub
commit 234fb601a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 15 deletions

View File

@ -33,5 +33,3 @@ beacon_node_restart_window_sec: 120
# general container management
compose_recreate: false
compose_restart: false
compose_destroy: false

View File

@ -34,6 +34,10 @@
- '{{ beacon_node_listening_port }}:{{ beacon_node_listening_port }}/tcp'
- '{{ beacon_node_discovery_port }}:{{ beacon_node_discovery_port }}/udp'
command:
{% if beacon_node_network == "testnet2" %}
- '--run'
- '--'
{% endif %}
- '--nat=extip:{{ beacon_node_public_address }}'
- '--log-level={{ beacon_node_log_level }}'
- '--tcp-port={{ beacon_node_listening_port }}'

View File

@ -19,19 +19,8 @@
{% if compose_recreate %}
--force-recreate \
{% endif %}
--no-color
--no-color \
--no-start
args:
chdir: '{{ beacon_node_cont_vol }}'
when: compose_state == "present"
- name: 'Restart container: {{ beacon_node_cont_name }}'
command: docker-compose --compatibility down
args:
chdir: '{{ beacon_node_cont_vol }}'
when: compose_restart
- name: 'Destroy container: {{ beacon_node_cont_name }}'
command: docker-compose --compatibility down
args:
chdir: '{{ beacon_node_cont_vol }}'
when: compose_destroy