[#75] Makefile: Add subjects for storage and client wallets to FrostfsID
All checks were successful
DCO action / DCO (pull_request) Successful in 27s
All checks were successful
DCO action / DCO (pull_request) Successful in 27s
Signed-off-by: Airat Arifullin <a.arifullin@yadro.com>
This commit is contained in:
parent
0be22a9375
commit
4b55eb102e
1 changed files with 11 additions and 1 deletions
12
Makefile
12
Makefile
|
@ -84,8 +84,18 @@ up/bootstrap: get vendor/hosts
|
||||||
echo "Transfer GAS to wallet $${f}" \
|
echo "Transfer GAS to wallet $${f}" \
|
||||||
&& ./vendor/frostfs-adm -c frostfs-adm.yml morph refill-gas --storage-wallet $${f} --gas 10.0 \
|
&& ./vendor/frostfs-adm -c frostfs-adm.yml morph refill-gas --storage-wallet $${f} --gas 10.0 \
|
||||||
|| die "Failed to transfer GAS to alphabet wallets"; \
|
|| die "Failed to transfer GAS to alphabet wallets"; \
|
||||||
|
echo "Create frostfsid subject for storage wallet $${f}" \
|
||||||
|
&& subj_key=`neo-go wallet dump-keys -w $${f} | head -2 | tail -1` \
|
||||||
|
&& subj_name_suffix=`echo $${subj_key} | tail -c 5` \
|
||||||
|
&& ./vendor/frostfs-adm -c frostfs-adm.yml morph frostfsid create-subject --namespace "" --subject-key $${subj_key} --subject-name storage$${subj_name_suffix} \
|
||||||
|
|| die "Failed to create subject for the wallet"; \
|
||||||
done
|
done
|
||||||
@echo "FrostFS sidechain environment is deployed"
|
@echo "Create frostfsid subject for ./wallets/wallet.json" \
|
||||||
|
&& subj_key=`neo-go wallet dump-keys -w ./wallets/wallet.json | head -2 | tail -1` \
|
||||||
|
&& subj_name_suffix=`echo $${subj_key} | tail -c 5` \
|
||||||
|
&& ./vendor/frostfs-adm -c frostfs-adm.yml morph frostfsid create-subject --namespace "" --subject-key $${subj_key} --subject-name storage$${subj_name_suffix} \
|
||||||
|
|| die "Failed to create subject for the wallet"; \
|
||||||
|
echo "FrostFS sidechain environment is deployed"
|
||||||
|
|
||||||
# Build up certain service
|
# Build up certain service
|
||||||
.PHONY: up/%
|
.PHONY: up/%
|
||||||
|
|
Loading…
Reference in a new issue