frostfs-dev-env/services/chain/artifacts.mk
Alex Vanin a2df248141 [#2] Prepare environment for preview-3
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
2020-09-22 18:03:14 +03:00

17 lines
347 B
Makefile

get.chain: JF_TOKEN?=
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