fldist to aqua updates

This commit is contained in:
boneyard93501 2022-03-23 13:29:44 -05:00
parent 6466a312be
commit 79ef63a7a9
11 changed files with 21 additions and 20 deletions

View File

@ -238,7 +238,7 @@ That is, `...\"chainId\":\"eip155:3\",\"blockNumber\":11266361,\"blockTimestamp\
Looks like our services are working and ready for deployment to the `stage` network. We use the `aqua` command line tool to do so:
```bash
aqua remote deploy \
aqua remote deploy_service \
--addr /dns4/stage.fluence.dev/tcp/19004/wss/p2p/12D3KooWJ4bTHirdTFNZpCS72TAzwtdmavTBkkEXtzo6wHL25CtE \
--config-path configs/ceramic_adapter_deploy_cfg.json \
--service ceramic-service

View File

@ -114,7 +114,7 @@ Any one of the peers will do and we can deploy our services with the `aqua` cli
```text
# deploy greeting service
aqua remote deploy \
aqua remote deploy_service \
--addr /dns4/kras-03.fluence.dev/tcp/19001/wss/p2p/12D3KooWJd3HaMJ1rpLY1kQvcjRPEvnDwcXrH8mJvk7ypcZXqXGE \
--config-path configs/echo_greeter_deploy_cfg.json \
--service echo-greeter
@ -139,7 +139,7 @@ and
```text
# deploy echo service
aqua remote deploy \
aqua remote deploy_service \
--addr /dns4/kras-03.fluence.dev/tcp/19001/wss/p2p/12D3KooWJd3HaMJ1rpLY1kQvcjRPEvnDwcXrH8mJvk7ypcZXqXGE \
--config-path configs/echo_greeter_deploy_cfg.json \
--service echo-service

View File

@ -355,7 +355,7 @@ func rpc_foo(network_id: string, block_ref:string, node_string, service_id: stri
Before we can use our Fluence NEAR adapter, we need to deploy our Wasm modules to one or more host peers. We can do that with [Aqua CLI](https://doc.fluence.dev/aqua-book/aqua-cli):
```bash
aqua remote deploy \
aqua remote deploy_service \
--addr /dns4/kras-04.fluence.dev/tcp/19001/wss/p2p/12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi \
--config-path configs/near_deploy_cfg.json \
--service near-adapter

View File

@ -163,7 +163,7 @@ aqua config default_peers
Pick any of the peer ids from the listed peers to deploy your services. Let's say we use peer id `12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi`:
```bash
aqua remote deploy \
aqua remote deploy_service \
--addr /dns4/kras-04.fluence.dev/tcp/19001/wss/p2p/12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi \
--config-path configs/ts_oracle_deploy_cfg.json \
--service price-getter
@ -191,7 +191,7 @@ Your peerId: 12D3KooWBK198aAioxPsiBDXBkkXkaQfkqCkLxTN3oZXVTN4B2em
and to deploy the mean service:
```bash
aqua remote deploy \
aqua remote deploy_service \
--addr /dns4/kras-04.fluence.dev/tcp/19001/wss/p2p/12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi \
--config-path configs/ts_oracle_deploy_cfg.json \
--service mean-service

View File

@ -56,7 +56,7 @@ cargo +nightly test --release
and deploy the service to a peer of your choice with the `aqua` cli tool:
```bash
aqua remote deploy \
aqua remote deploy_service \
--addr /dns4/kras-06.fluence.dev/tcp/19001/wss/p2p/12D3KooWDUszU2NeWyUVjCXhGEt1MoZrhvdmaQQwtZUriuGN1jTr \
--config-path configs/ts_oracle_deploy_cfg.json \
--service ts-oracle

View File

@ -744,12 +744,12 @@ In each of the examples we created modules and services configurations and teste
Before we begin, you need to have the `aqua` tool installed. See the [Tools documentation](https://doc.fluence.dev/docs/knowledge_tools) for more information.
We use the `aqua remote deploy` command to do our bidding:
We use the `aqua remote deploy_service` command to do our bidding:
```zsh
aqua remote deploy --help
aqua remote deploy_service --help
Usage: aqua remote deploy [--timeout <integer>] [--log-level <string>] --addr <string> [--on <string>] [--print-air] [--sk <string>] --config-path <string> --service <string>
Usage: aqua remote deploy_service [--timeout <integer>] [--log-level <string>] --addr <string> [--on <string>] [--print-air] [--sk <string>] --config-path <string> --service <string>
Deploy a service onto a remote peer
@ -779,13 +779,13 @@ Aside from our modules and configuration, we also want to supply the peer id of
To create our greeting service on peer `12D3KooWKnEqMfYo9zvfHmqTLpLdiHXPe4SVqUWcWHDJdFGrSmcA`:
```zsh
aqua remote deploy \
aqua remote deploy_service \
--addr /dns4/kras-01.fluence.dev/tcp/19001/wss/p2p/12D3KooWKnEqMfYo9zvfHmqTLpLdiHXPe4SVqUWcWHDJdFGrSmcA
--config-path configs/greeting_deploy_cfg.json \
--service my-greeting-service
```
To recap the `aqua remote deploy` command: We specify the
To recap the `aqua remote deploy_service` command: We specify the
1. Peer id with the `addr` flag
2. Config file location with the `data-path` flag

View File

@ -16,5 +16,5 @@ test -f "$WASM" || echo >&2 "Couldn't find $WASM"
# create a service from that .wasm
CONFIG="config.json"
SERVICE_ID=$(aqua remote deploy --sk qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo= --config-path config.json --service call_parameters --addr "$NODE" | tail -n 1 | tr -d \")
SERVICE_ID=$(aqua remote deploy_service --sk qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo= --config-path config.json --service call_parameters --addr "$NODE" | tail -n 1 | tr -d \")
echo $SERVICE_ID

View File

@ -13,5 +13,6 @@ Example that shows how to work with disk access and how to link several Wasm mod
```shell
aqua run \
--addr /dns4/kras-06.fluence.dev/tcp/19001/wss/p2p/12D3KooWDUszU2NeWyUVjCXhGEt1MoZrhvdmaQQwtZUriuGN1jTr \
-i download_url.aqua -f'download("https://fluence.network/img/svg/logo_new.svg", "logo.svg", "12D3KooWDUszU2NeWyUVjCXhGEt1MoZrhvdmaQQwtZUriuGN1jTr", "e693d1c3-3fbc-4ccd-8eae-1ba9c767e2f5")'
-i download_url.aqua \
-f'download("https://fluence.network/img/svg/logo_new.svg", "logo.svg", "12D3KooWDUszU2NeWyUVjCXhGEt1MoZrhvdmaQQwtZUriuGN1jTr", "e693d1c3-3fbc-4ccd-8eae-1ba9c767e2f5")'
```

View File

@ -6,8 +6,8 @@ set -o errexit -o nounset -o pipefail
(
cd artifacts
fldist new_service --name "url_downloader" --modules \
curl_adapter.wasm:curl_adapter.json \
local_storage.wasm:local_storage.json \
facade.wasm:facade.json
aqua remote deploy_service_service \
--addr /dns4/kras-05.fluence.dev/tcp/19001/wss/p2p/12D3KooWCMr9mU894i8JXAFqpgoFtx6qnV1LFPSfVc3Y34N4h4LS \
--data-path deployment_cfg.json \
--service url-downloader
)

View File

@ -1,4 +1,4 @@
aqua remote deploy \
aqua remote deploy_service \
--addr /dns4/kras-06.fluence.dev/tcp/19001/wss/p2p/12D3KooWDUszU2NeWyUVjCXhGEt1MoZrhvdmaQQwtZUriuGN1jTr \
--config-path deployment_cfg.json \
--service url-downloader

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash -o errexit -o nounset -o pipefail
aqua remote deploy \
aqua remote deploy_service \
--addr /dns4/kras-04.fluence.dev/tcp/19001/wss/p2p/12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi \
--config-path configs/ts_oracle_deploy_cfg.json \
--service ts-oracle \