2022-12-21 12:34:14 +00:00
|
|
|
# Download FrostFS Contracts and Adm tool to deploy environment
|
2022-10-12 14:04:37 +00:00
|
|
|
|
2022-09-08 15:18:53 +00:00
|
|
|
get.morph_chain: get.contracts get.adm
|
|
|
|
|
2022-12-21 12:34:14 +00:00
|
|
|
# Download FrostFS Contracts
|
|
|
|
get.contracts: FROSTFS_CONTRACTS_DEST=./vendor/contracts
|
|
|
|
get.contracts: FROSTFS_CONTRACTS_ARCHIVE=frostfs-contracts.tar.gz
|
2022-09-08 15:18:53 +00:00
|
|
|
get.contracts:
|
2022-12-21 12:34:14 +00:00
|
|
|
@mkdir -p ${FROSTFS_CONTRACTS_DEST}
|
2022-09-08 15:18:53 +00:00
|
|
|
|
2022-12-21 12:34:14 +00:00
|
|
|
ifeq (${FROSTFS_CONTRACTS_PATH},)
|
|
|
|
@echo "⇒ Download compiled FrostFS contracts from ${FROSTFS_CONTRACTS_URL}"
|
2023-01-20 08:11:40 +00:00
|
|
|
@curl -ksSL ${FROSTFS_CONTRACTS_URL} -o ${FROSTFS_CONTRACTS_ARCHIVE}
|
2022-12-21 12:34:14 +00:00
|
|
|
@tar -xf ${FROSTFS_CONTRACTS_ARCHIVE} -C ${FROSTFS_CONTRACTS_DEST} --strip-components 1
|
|
|
|
@rm ${FROSTFS_CONTRACTS_ARCHIVE}
|
2022-09-08 15:18:53 +00:00
|
|
|
else
|
2022-12-21 12:34:14 +00:00
|
|
|
@echo "⇒ Copy compiled contracts from ${FROSTFS_CONTRACTS_PATH}"
|
|
|
|
@cp -r ${FROSTFS_CONTRACTS_PATH}/* ${FROSTFS_CONTRACTS_DEST}
|
2022-09-08 15:18:53 +00:00
|
|
|
endif
|
|
|
|
|
2022-12-21 12:34:14 +00:00
|
|
|
# Download FrostFS ADM tool
|
|
|
|
get.adm: FROSTFS_ADM_DEST=./vendor/frostfs-adm
|
2022-09-08 15:18:53 +00:00
|
|
|
get.adm:
|
|
|
|
|
2022-12-21 12:34:14 +00:00
|
|
|
ifeq (${FROSTFS_ADM_PATH},)
|
|
|
|
@echo "⇒ Download FrostFS ADM binary from ${FROSTFS_ADM_URL}"
|
2024-08-17 02:50:27 +00:00
|
|
|
@curl -skSL ${FROSTFS_ADM_URL} -o ${FROSTFS_ADM_DEST}
|
|
|
|
@chmod +x ${FROSTFS_ADM_DEST}
|
2022-09-08 15:18:53 +00:00
|
|
|
else
|
2022-12-21 12:34:14 +00:00
|
|
|
@echo "⇒ Copy frostfs-adm binary from ${FROSTFS_ADM_PATH}"
|
|
|
|
@cp ${FROSTFS_ADM_PATH} ${FROSTFS_ADM_DEST}
|
2022-09-08 15:18:53 +00:00
|
|
|
endif
|