From 4b56530c059cec7cb972dde75f3bc984d7ca1494 Mon Sep 17 00:00:00 2001 From: igor Date: Mon, 1 Aug 2022 16:22:33 +0200 Subject: [PATCH] fix for deployment: added the sk param support (#355) * fix for deployment: added the sk param support * returning peer id we used previously * small fixes Co-authored-by: igor --- quickstart/5-oracle-service/scripts/deploy.sh | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/quickstart/5-oracle-service/scripts/deploy.sh b/quickstart/5-oracle-service/scripts/deploy.sh index a530fbd..74ad8e4 100755 --- a/quickstart/5-oracle-service/scripts/deploy.sh +++ b/quickstart/5-oracle-service/scripts/deploy.sh @@ -1,8 +1,28 @@ #!/usr/bin/env bash -o errexit -o nounset -o pipefail +function is_installed { + if ! command -v "$1" >/dev/null 2>&1; then + echo "${1} not found, please install it" + echo "exiting..." + exit 1 + fi +} + +is_installed jq +is_installed aqua + +echo "generating keys..." + +SK=$(aqua key create | jq -r ".secretKey") + +echo "deploying the service..." + aqua remote deploy_service \ --addr /dns4/kras-04.fluence.dev/tcp/19001/wss/p2p/12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi \ --config-path configs/ts_oracle_deploy_cfg.json \ + --sk ${SK} \ --service ts-oracle \ >>\ -deployed_service.data \ No newline at end of file +deployed_service.data + +tail -4 deployed_service.data \ No newline at end of file