[#75] Makefile: Add subjects for storage and client wallets to FrostfsID
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:
Airat Arifullin 2024-08-08 13:18:13 +03:00
parent 0be22a9375
commit 28916ea278

View file

@ -85,7 +85,13 @@ up/bootstrap: get vendor/hosts
&& ./vendor/frostfs-adm -c frostfs-adm.yml morph refill-gas --storage-wallet $${f} --gas 10.0 \
|| die "Failed to transfer GAS to alphabet wallets"; \
done
@echo "FrostFS sidechain environment is deployed"
@echo "Create frostfsid subject for ./wallets/wallet.json" \
&& subj_key=$$(jq -r '.accounts[0].contract.script' ./wallets/wallet.json | base64 -d | xxd -p -c 80 | sed 's/^.\{4\}//; s/.\{10\}$$//') \
&& echo $${subj_key} \
&& 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
.PHONY: up/%