frostfs-dev-env/services/chain/artifacts.mk
Stanislav Bogatyrev 959d994ae5 Add local devenv domain
Signed-off-by: Stanislav Bogatyrev <stanislav@nspcc.ru>
2020-09-23 09:54:19 +03:00

16 lines
325 B
Makefile

get.chain: CHAIN_DUMP_NAME=devenv.dump.
get.chain: CHAIN_PATH?=
get.chain:
@mkdir -p ./vendor
ifeq (${CHAIN_PATH},)
@echo "⇒ Download blockchain dump from ${CHAIN_URL}"
@curl \
-sS "${CHAIN_URL}" \
-o ./vendor/chain.gz
else
@echo "⇒ Copy local archive ${CHAIN_PATH}"
@cp ${CHAIN_PATH} ./vendor/chain.gz
endif