[#68] service/morph: Add volume for morph_chain
All checks were successful
DCO action / DCO (pull_request) Successful in 42s
All checks were successful
DCO action / DCO (pull_request) Successful in 42s
Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
parent
2b6122192a
commit
7837919a49
3 changed files with 20 additions and 12 deletions
26
Makefile
26
Makefile
|
@ -74,18 +74,22 @@ up/basic: up/bootstrap
|
||||||
.PHONY: up/bootstrap
|
.PHONY: up/bootstrap
|
||||||
up/bootstrap: get vendor/hosts
|
up/bootstrap: get vendor/hosts
|
||||||
@$(foreach SVC, $(START_BOOTSTRAP), $(shell docker-compose -f services/$(SVC)/docker-compose.yml up -d))
|
@$(foreach SVC, $(START_BOOTSTRAP), $(shell docker-compose -f services/$(SVC)/docker-compose.yml up -d))
|
||||||
@source ./bin/helper.sh
|
@if ! ./vendor/frostfs-adm morph dump-hashes --config frostfs-adm.yml > /dev/null 2>&1; then
|
||||||
@./vendor/frostfs-adm --config frostfs-adm.yml morph init --contracts vendor/contracts
|
@source ./bin/helper.sh
|
||||||
echo "Set rule chain to policy contract"
|
@./vendor/frostfs-adm --config frostfs-adm.yml morph init --contracts vendor/contracts
|
||||||
@./vendor/frostfs-adm --config frostfs-adm.yml morph \
|
echo "Set rule chain to policy contract"
|
||||||
ape add-rule-chain --target-type namespace --target-name "" \
|
@./vendor/frostfs-adm --config frostfs-adm.yml morph \
|
||||||
--rule 'allow Container.* *' --chain-id "allow_container_ops"
|
ape add-rule-chain --target-type namespace --target-name "" \
|
||||||
@for f in ./services/storage/wallet*.json; do \
|
--rule 'allow Container.* *' --chain-id "allow_container_ops"
|
||||||
echo "Transfer GAS to wallet $${f}" \
|
@for f in ./services/storage/wallet*.json; do \
|
||||||
&& ./vendor/frostfs-adm -c frostfs-adm.yml morph refill-gas --storage-wallet $${f} --gas 10.0 \
|
echo "Transfer GAS to wallet $${f}" \
|
||||||
|| die "Failed to transfer GAS to alphabet wallets"; \
|
&& ./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
|
done
|
||||||
@echo "FrostFS sidechain environment is deployed"
|
@echo "FrostFS sidechain environment is deployed"
|
||||||
|
else
|
||||||
|
@echo "Skipping deploy contract"
|
||||||
|
fi
|
||||||
|
|
||||||
# Build up certain service
|
# Build up certain service
|
||||||
.PHONY: up/%
|
.PHONY: up/%
|
||||||
|
|
|
@ -19,9 +19,13 @@ services:
|
||||||
- ./config.yml:/wallets/config.yml
|
- ./config.yml:/wallets/config.yml
|
||||||
- ./../../vendor/hosts:/etc/hosts
|
- ./../../vendor/hosts:/etc/hosts
|
||||||
- ./../../wallets/wallet.json:/wallets/wallet.json
|
- ./../../wallets/wallet.json:/wallets/wallet.json
|
||||||
|
- chains:/chains
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
chain_int:
|
chain_int:
|
||||||
internet:
|
internet:
|
||||||
external: true
|
external: true
|
||||||
name: basenet_internet
|
name: basenet_internet
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
chains:
|
||||||
|
|
|
@ -17,7 +17,7 @@ ApplicationConfiguration:
|
||||||
DBConfiguration:
|
DBConfiguration:
|
||||||
Type: "boltdb"
|
Type: "boltdb"
|
||||||
BoltDBOptions:
|
BoltDBOptions:
|
||||||
FilePath: "./db/morph.bolt"
|
FilePath: "/chains/morph.bolt"
|
||||||
P2P:
|
P2P:
|
||||||
Addresses:
|
Addresses:
|
||||||
- ":20333"
|
- ":20333"
|
||||||
|
|
Loading…
Add table
Reference in a new issue