From 26cad49f603045621f11040db7ea4cdc178db872 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Fri, 26 Jun 2020 22:57:50 +0200 Subject: [PATCH] syntax and CLI fixes There's some weirdness in the interaction between Jinja2 directives and YAML syntax. Also, `--detach` cannot be used with `--no-start` for docker-compose. --- tasks/compose.yml | 2 +- tasks/container.yml | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tasks/compose.yml b/tasks/compose.yml index 2f5c16f..595dc90 100644 --- a/tasks/compose.yml +++ b/tasks/compose.yml @@ -33,7 +33,7 @@ - '{{ beacon_node_metrics_port }}:{{ beacon_node_metrics_port }}/tcp' - '{{ beacon_node_listening_port }}:{{ beacon_node_listening_port }}/tcp' - '{{ beacon_node_discovery_port }}:{{ beacon_node_discovery_port }}/udp' - command: + command: | {% if beacon_node_network == "testnet2" %} - '--run' - '--' diff --git a/tasks/container.yml b/tasks/container.yml index ca6dda9..ba02a34 100644 --- a/tasks/container.yml +++ b/tasks/container.yml @@ -15,7 +15,6 @@ up \ --quiet-pull \ --no-build \ - --detach \ {% if compose_recreate %} --force-recreate \ {% endif %}