bringup/http-gw/Makefile

24 lines
509 B
Makefile

include ../Makefile
NODE_COUNT=9
.PHONY: up down down-fast
up: COMPOSE_ARGS=-d
up: network-up
down-fast: COMPOSE_ARGS=--timeout 0
down-fast: down
up down:
error=0; \
for NODE_ID in {1..$(NODE_COUNT)}; do \
GID=$$(id -g); \
export NODE_ID UID GID; \
docker-compose -p "http-gw$$NODE_ID" $@ $(COMPOSE_ARGS) || error=$$?; \
done; \
exit $$error
.PHONY: http-gw
http-gw: wallet | $(HTTP)
mkdir -p log
$(HTTP) --config http-gw.yml 2>&1 | tee --append log/$@$(NODE_ID)
wallet:
ln -sf ../morph/$@ $@