From 006e0e013d2db0734b41807057e4058a7e56d6d4 Mon Sep 17 00:00:00 2001 From: Vitaliy Potyarkin Date: Mon, 23 Sep 2024 14:01:59 +0000 Subject: [PATCH] Pass NODE_COUNT into docker-compose --- morph/Makefile | 6 ++++++ morph/docker-compose.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/morph/Makefile b/morph/Makefile index efa8bc2..c220006 100644 --- a/morph/Makefile +++ b/morph/Makefile @@ -5,6 +5,12 @@ NODE_CONFIG=data/config-$(NODE_LETTER)/protocol.privnet.yml NODE_LETTER=$(word $(NODE_ID),$(ALPHABET)) NODE_MINPEERS=$(call math,$(NODE_COUNT)>1) +export NODE_COUNT +export NODE_ID +export NODE_CONFIG +export NODE_LETTER +export NODE_MINPEERS + SHELL=/bin/bash .SHELLFLAGS=-euo pipefail -c diff --git a/morph/docker-compose.yml b/morph/docker-compose.yml index 7a39b31..cd21633 100644 --- a/morph/docker-compose.yml +++ b/morph/docker-compose.yml @@ -13,6 +13,12 @@ services: networks: bringup-network: user: "${UID}:${GID}" + environment: + - NODE_COUNT=$NODE_COUNT + - NODE_ID=$NODE_ID + - NODE_CONFIG=$NODE_CONFIG + - NODE_LETTER=$NODE_LETTER + - NODE_MINPEERS=$NODE_MINPEERS volumes: - ..:/bringup working_dir: /bringup/morph