diff --git a/Makefile b/Makefile index 530bcb34..38d2df9f 100644 --- a/Makefile +++ b/Makefile @@ -74,6 +74,39 @@ setup-for-remote-devenv: echo IR_WALLET_PATH="/.setup/services/ir/wallet01.json" >> $(CURDIR)/.env ssh root@$(DEV_ENV_HOST_NAME) 'cd $(DEV_ENV_DEPLOY_DIR) && make env | grep NEOFS_IR_CONTRACTS_NEOFS' >> $(CURDIR)/.env +.PHONY: setup-for-sbercloud +setup-for-sbercloud: + mkdir -p $(SETUP_DIR) + # Copy files from configuration directory to setup directory + cp -r $(CONFIG_DIR)/alphabet-wallets $(SETUP_DIR) + cp $(CONFIG_DIR)/config.yaml $(SETUP_DIR) + cp -r $(CONFIG_DIR)/wallets $(SETUP_DIR) + # Generate .env file + # skipped IR_WALLET_PATH, NEOFS_IR_CONTRACTS_NEOFS, not sure whether NEO_MAINNET_ENDPOINT is correct + echo NEO_MAINNET_ENDPOINT=http://$(NODE1):40333 > $(CURDIR)/.env + echo MORPH_ENDPOINT=http://$(NODE1):40332 >> $(CURDIR)/.env + echo HTTP_GATE=http://$(NODE1):8888 >> $(CURDIR)/.env + echo S3_GATE=http://$(NODE1):8084 >> $(CURDIR)/.env + echo STORAGE_CONTROL_ENDPOINT_1=$(NODE1):40332 >> $(CURDIR)/.env + echo STORAGE_CONTROL_ENDPOINT_2=$(NODE2):40332 >> $(CURDIR)/.env + echo STORAGE_CONTROL_ENDPOINT_3=$(NODE3):40332 >> $(CURDIR)/.env + echo STORAGE_CONTROL_ENDPOINT_4=$(NODE4):40332 >> $(CURDIR)/.env + echo NEOFS_ENDPOINT=$(NODE1):8080 >> $(CURDIR)/.env + echo STORAGE_RPC_ENDPOINT_1=$(NODE1):8080 >> $(CURDIR)/.env + echo STORAGE_RPC_ENDPOINT_2=$(NODE2):8080 >> $(CURDIR)/.env + echo STORAGE_RPC_ENDPOINT_3=$(NODE3):8080 >> $(CURDIR)/.env + echo STORAGE_RPC_ENDPOINT_4=$(NODE4):8080 >> $(CURDIR)/.env + echo STORAGE_WALLET_PATH_1="/.setup/wallets/node1-storage.json" >> $(CURDIR)/.env + echo STORAGE_WALLET_PATH_2="/.setup/wallets/node2-storage.json" >> $(CURDIR)/.env + echo STORAGE_WALLET_PATH_3="/.setup/wallets/node3-storage.json" >> $(CURDIR)/.env + echo STORAGE_WALLET_PATH_4="/.setup/wallets/node4-storage.json" >> $(CURDIR)/.env + echo MAINNET_WALLET_PATH="/.setup/alphabet-wallets/az.json" >> $(CURDIR)/.env + # Config: files inside storage node to make calls via SSH on that node + echo STORAGE_NODE_BIN_PATH="/usr/local/bin/" >> $(CURDIR)/.env + echo STORAGE_NODE_CONFIG_PATH="/tmp/conf.yaml" >> $(CURDIR)/.env + # Config: s3 gateway public key + echo S3_GATE_PUB_KEY=$(shell $(NEO_BIN_DIR)/neo-go wallet dump-keys -w $(CONFIG_DIR)/wallets/node1-s3.json | head -2 | tail -1) >> $(CURDIR)/.env + .PHONY: pytest-docker pytest-docker: -docker ps