2021-12-03 01:08:04 -06:00
|
|
|
#!/usr/bin/env bash -o errexit -o nounset -o pipefail
|
|
|
|
|
2022-08-01 16:22:33 +02:00
|
|
|
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..."
|
|
|
|
|
2022-03-23 13:29:44 -05:00
|
|
|
aqua remote deploy_service \
|
2022-02-11 18:26:50 -06:00
|
|
|
--addr /dns4/kras-04.fluence.dev/tcp/19001/wss/p2p/12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi \
|
2022-04-28 09:40:54 +02:00
|
|
|
--config-path configs/ts_oracle_deploy_cfg.json \
|
2022-08-01 16:22:33 +02:00
|
|
|
--sk ${SK} \
|
2022-02-11 18:26:50 -06:00
|
|
|
--service ts-oracle \
|
|
|
|
>>\
|
2022-08-01 16:22:33 +02:00
|
|
|
deployed_service.data
|
|
|
|
|
|
|
|
tail -4 deployed_service.data
|