Do not hide wallet generation errors in Docker

This commit is contained in:
Vitaliy Potyarkin 2024-09-20 09:25:38 +00:00
parent a27634119c
commit bcf3a60817

View file

@ -10,7 +10,7 @@ SHELL=/bin/bash
.PHONY: up down
up: COMPOSE_ARGS=-d
up: network-up
up: network-up check-config
up down:
error=0; \
for NODE_ID in {1..$(NODE_COUNT)}; do \
@ -24,9 +24,13 @@ up down:
network-up:
-docker network create bringup
.PHONY: morph
morph: wallet/az.json $(NODE_CONFIG) | $(NEOGO)
.PHONY: check-config
check-config: wallet/az.json
$(NEOGO) wallet dump-keys -w $<
grep -F $$($(NEOGO) wallet dump-keys -w $<|head -n2|tail -n1) protocol.privnet.yml
.PHONY: morph
morph: $(NODE_CONFIG) | $(NEOGO)
mkdir -p log
$(NEOGO) node --config-file $(NODE_CONFIG) --privnet --debug 2>&1 | tee --append log/$@$(NODE_ID)-$(NODE_LETTER)
@ -66,7 +70,6 @@ bootstrap: wallet/storage01.json wallet/storage02.json wallet/storage03.json wal
wallet/az.json: | $(ADM) $(NEOGO)
mkdir -p $(dir $@)
cd wallet; $(abspath $(ADM)) morph generate-alphabet --size $(NODE_COUNT) --verbose
$(NEOGO) wallet dump-keys -w $@
wallet/%.json: wallet/%.template | $(NEOGO)
mkdir -p $(dir $@)