@@ -22,10 +22,10 @@ include services/*/prepare.mk
2222# List of services to run
2323START_SVCS = $(shell cat .services | grep -v '\#')
2424START_BASIC = $(shell cat .basic_services | grep -ve '\#')
25- START_BOOTSTRAP = $(shell cat .bootstrap_services | grep -v '\#')
25+ START_BOOTSTRAP = $(shell cat .bootstrap_services | grep -v '\#' | sed 's/^ir$$/& $( IR_NUMBER_OF_NODES ) /' )
2626STOP_SVCS = $(shell tac .services | grep -v '\#')
2727STOP_BASIC = $(shell tac .basic_services | grep -v '\#')
28- STOP_BOOTSTRAP = $(shell tac .bootstrap_services | grep -v '\#')
28+ STOP_BOOTSTRAP = $(shell tac .bootstrap_services | grep -v '\#' | sed 's/^ir$$/& $( IR_NUMBER_OF_NODES ) /' )
2929
3030# Enabled services dirs
3131ENABLED_SVCS_DIRS = $(shell echo "${START_BOOTSTRAP} ${START_BASIC} ${START_SVCS}" | sed 's|[^ ]* * |./services/&|g')
@@ -112,16 +112,19 @@ up/basic: up/bootstrap
112112# Start bootstrap services
113113.PHONY : up/bootstrap
114114up/bootstrap : get vendor/hosts
115- @echo " NEOFS_IR_CONTRACTS_NEOFS=" ` ./vendor/neo-go contract calc-hash -s NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM --in vendor/contracts/neofs/contract.nef -m vendor/contracts/neofs/manifest.json | grep -Eo ' [a-fA-F0-9]{40}' ` > services/ir /.ir.env
115+ @echo " NEOFS_IR_CONTRACTS_NEOFS=" ` ./vendor/neo-go contract calc-hash -s NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM --in vendor/contracts/neofs/contract.nef -m vendor/contracts/neofs/manifest.json | grep -Eo ' [a-fA-F0-9]{40}' ` > services/ir1 /.ir.env
116116 @for svc in $(START_BOOTSTRAP ) ; do \
117117 echo " $@ for service: $$ {svc}" ; \
118118 docker-compose -f services/$$ {svc}/docker-compose.yml up -d 2>&1 | tee -a docker-compose.err; \
119119 done
120120 @source ./bin/helper.sh
121- @docker exec main_chain neo-go wallet nep17 transfer --force --await --wallet-config /wallets/config.yml -r http://main-chain.neofs.devenv:30333 --from NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP --to NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM --token GAS --amount 1000
121+ @docker exec main_chain neo-go wallet nep17 transfer --force --await --wallet-config /wallets/config.yml -r http://main-chain.neofs.devenv:30333 --from NfgHwwTi3wHAS8aFAN243C5vGbkYDpqLHP --to NbUgTSFvPmsRxmGeWpuuGeJUoRoi6PErcM --token GAS --amount 1000
122122 @./vendor/neo-go contract deploy --wallet-config wallets/config.yml --in vendor/contracts/neofs/contract.nef --manifest vendor/contracts/neofs/manifest.json --force --await -r http://main-chain.neofs.devenv:30333 [ true ffffffffffffffffffffffffffffffffffffffff [ 02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2 ] [ InnerRingCandidateFee 10000000000 WithdrawFee 100000000 ] ]
123123 @NEOGO=vendor/neo-go WALLET=wallets/wallet.json CONFIG=wallets/config.yml ./bin/deposit.sh
124- @for f in ./services/storage/wallet* .json; do echo " Transfer GAS to wallet $$ {f}" && ./vendor/neofs-adm -c neofs-adm.yml fschain refill-gas --storage-wallet $$ {f} --gas 10.0 --alphabet-wallets services/ir || die " Failed to transfer GAS to alphabet wallets" ; done
124+ @for f in ./services/storage/wallet* .json; do \
125+ echo " Transfer GAS to wallet $$ {f}" && \
126+ ./vendor/neofs-adm -c neofs-adm.yml fschain refill-gas --storage-wallet $$ {f} --gas 10.0 --alphabet-wallets services/ir${IR_NUMBER_OF_NODES} /alphabet || die " Failed to transfer GAS to alphabet wallets" ; \
127+ done
125128 $(call error_handler,$@ ) ;
126129 @echo " NeoFS chain environment is deployed"
127130
0 commit comments