mirror of
https://github.com/fluencelabs/examples
synced 2024-12-04 19:20:17 +00:00
update --data-path to --config-path
This commit is contained in:
parent
8e472d56ce
commit
cc147cfc1b
@ -240,7 +240,7 @@ Looks like our services are working and ready for deployment to the `stage` netw
|
|||||||
```bash
|
```bash
|
||||||
aqua remote deploy \
|
aqua remote deploy \
|
||||||
--addr /dns4/stage.fluence.dev/tcp/19004/wss/p2p/12D3KooWJ4bTHirdTFNZpCS72TAzwtdmavTBkkEXtzo6wHL25CtE \
|
--addr /dns4/stage.fluence.dev/tcp/19004/wss/p2p/12D3KooWJ4bTHirdTFNZpCS72TAzwtdmavTBkkEXtzo6wHL25CtE \
|
||||||
--data-path configs/ceramic_adapter_deploy_cfg.json \
|
--config-path configs/ceramic_adapter_deploy_cfg.json \
|
||||||
--service ceramic-service
|
--service ceramic-service
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -116,7 +116,7 @@ Any one of the peers will do and we can deploy our services with the `aqua` cli
|
|||||||
# deploy greeting service
|
# deploy greeting service
|
||||||
aqua remote deploy \
|
aqua remote deploy \
|
||||||
--addr /dns4/kras-03.fluence.dev/tcp/19001/wss/p2p/12D3KooWJd3HaMJ1rpLY1kQvcjRPEvnDwcXrH8mJvk7ypcZXqXGE \
|
--addr /dns4/kras-03.fluence.dev/tcp/19001/wss/p2p/12D3KooWJd3HaMJ1rpLY1kQvcjRPEvnDwcXrH8mJvk7ypcZXqXGE \
|
||||||
--data-path configs/echo_greeter_deploy_cfg.json \
|
--config-path configs/echo_greeter_deploy_cfg.json \
|
||||||
--service echo-greeter
|
--service echo-greeter
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -141,7 +141,7 @@ and
|
|||||||
# deploy echo service
|
# deploy echo service
|
||||||
aqua remote deploy \
|
aqua remote deploy \
|
||||||
--addr /dns4/kras-03.fluence.dev/tcp/19001/wss/p2p/12D3KooWJd3HaMJ1rpLY1kQvcjRPEvnDwcXrH8mJvk7ypcZXqXGE \
|
--addr /dns4/kras-03.fluence.dev/tcp/19001/wss/p2p/12D3KooWJd3HaMJ1rpLY1kQvcjRPEvnDwcXrH8mJvk7ypcZXqXGE \
|
||||||
--data-path configs/echo_greeter_deploy_cfg.json \
|
--config-path configs/echo_greeter_deploy_cfg.json \
|
||||||
--service echo-service
|
--service echo-service
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -357,7 +357,7 @@ Before we can use our Fluence NEAR adapter, we need to deploy our Wasm modules t
|
|||||||
```bash
|
```bash
|
||||||
aqua remote deploy \
|
aqua remote deploy \
|
||||||
--addr /dns4/kras-04.fluence.dev/tcp/19001/wss/p2p/12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi \
|
--addr /dns4/kras-04.fluence.dev/tcp/19001/wss/p2p/12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi \
|
||||||
--data-path configs/near_deploy_cfg.json \
|
--config-path configs/near_deploy_cfg.json \
|
||||||
--service near-adapter
|
--service near-adapter
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ Pick any of the peer ids from the listed peers to deploy your services. Let's sa
|
|||||||
```bash
|
```bash
|
||||||
aqua remote deploy \
|
aqua remote deploy \
|
||||||
--addr /dns4/kras-04.fluence.dev/tcp/19001/wss/p2p/12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi \
|
--addr /dns4/kras-04.fluence.dev/tcp/19001/wss/p2p/12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi \
|
||||||
--data-path configs/ts_oracle_deploy_cfg.json \
|
--config-path configs/ts_oracle_deploy_cfg.json \
|
||||||
--service price-getter
|
--service price-getter
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -193,7 +193,7 @@ and to deploy the mean service:
|
|||||||
```bash
|
```bash
|
||||||
aqua remote deploy \
|
aqua remote deploy \
|
||||||
--addr /dns4/kras-04.fluence.dev/tcp/19001/wss/p2p/12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi \
|
--addr /dns4/kras-04.fluence.dev/tcp/19001/wss/p2p/12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi \
|
||||||
--data-path configs/ts_oracle_deploy_cfg.json \
|
--config-path configs/ts_oracle_deploy_cfg.json \
|
||||||
--service mean-service
|
--service mean-service
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -58,7 +58,7 @@ and deploy the service to a peer of your choice with the `aqua` cli tool:
|
|||||||
```bash
|
```bash
|
||||||
aqua remote deploy \
|
aqua remote deploy \
|
||||||
--addr /dns4/kras-06.fluence.dev/tcp/19001/wss/p2p/12D3KooWDUszU2NeWyUVjCXhGEt1MoZrhvdmaQQwtZUriuGN1jTr \
|
--addr /dns4/kras-06.fluence.dev/tcp/19001/wss/p2p/12D3KooWDUszU2NeWyUVjCXhGEt1MoZrhvdmaQQwtZUriuGN1jTr \
|
||||||
--data-path configs/ts_oracle_deploy_cfg.json \
|
--config-path configs/ts_oracle_deploy_cfg.json \
|
||||||
--service ts-oracle
|
--service ts-oracle
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -749,7 +749,7 @@ We use the `aqua remote deploy` command to do our bidding:
|
|||||||
```zsh
|
```zsh
|
||||||
aqua remote deploy --help
|
aqua remote deploy --help
|
||||||
|
|
||||||
Usage: aqua remote deploy [--timeout <integer>] [--log-level <string>] --addr <string> [--on <string>] [--print-air] [--sk <string>] --data-path <string> --service <string>
|
Usage: aqua remote deploy [--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
|
Deploy a service onto a remote peer
|
||||||
|
|
||||||
@ -768,7 +768,7 @@ Options and flags:
|
|||||||
Prints generated AIR code before function execution
|
Prints generated AIR code before function execution
|
||||||
--sk <string>, -s <string>
|
--sk <string>, -s <string>
|
||||||
Ed25519 32-byte secret key in base64
|
Ed25519 32-byte secret key in base64
|
||||||
--data-path <string>, -p <string>
|
--config-path <string>, -p <string>
|
||||||
Path to file with arguments map in JSON format
|
Path to file with arguments map in JSON format
|
||||||
--service <string>, -s <string>
|
--service <string>, -s <string>
|
||||||
What service from the config file to deploy
|
What service from the config file to deploy
|
||||||
@ -781,7 +781,7 @@ To create our greeting service on peer `12D3KooWKnEqMfYo9zvfHmqTLpLdiHXPe4SVqUWc
|
|||||||
```zsh
|
```zsh
|
||||||
aqua remote deploy \
|
aqua remote deploy \
|
||||||
--addr /dns4/kras-01.fluence.dev/tcp/19001/wss/p2p/12D3KooWKnEqMfYo9zvfHmqTLpLdiHXPe4SVqUWcWHDJdFGrSmcA
|
--addr /dns4/kras-01.fluence.dev/tcp/19001/wss/p2p/12D3KooWKnEqMfYo9zvfHmqTLpLdiHXPe4SVqUWcWHDJdFGrSmcA
|
||||||
--data-path configs/greeting_deploy_cfg.json \
|
--config-path configs/greeting_deploy_cfg.json \
|
||||||
--service my-greeting-service
|
--service my-greeting-service
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -16,5 +16,5 @@ test -f "$WASM" || echo >&2 "Couldn't find $WASM"
|
|||||||
|
|
||||||
# create a service from that .wasm
|
# create a service from that .wasm
|
||||||
CONFIG="config.json"
|
CONFIG="config.json"
|
||||||
SERVICE_ID=$(aqua remote deploy --sk qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo= --data-path config.json --service call_parameters --addr "$NODE" | tail -n 1 | tr -d \")
|
SERVICE_ID=$(aqua remote deploy --sk qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqo= --config-path config.json --service call_parameters --addr "$NODE" | tail -n 1 | tr -d \")
|
||||||
echo $SERVICE_ID
|
echo $SERVICE_ID
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
aqua remote deploy \
|
aqua remote deploy \
|
||||||
--addr /dns4/kras-06.fluence.dev/tcp/19001/wss/p2p/12D3KooWDUszU2NeWyUVjCXhGEt1MoZrhvdmaQQwtZUriuGN1jTr \
|
--addr /dns4/kras-06.fluence.dev/tcp/19001/wss/p2p/12D3KooWDUszU2NeWyUVjCXhGEt1MoZrhvdmaQQwtZUriuGN1jTr \
|
||||||
--data-path deployment_cfg.json \
|
--config-path deployment_cfg.json \
|
||||||
--service url-downloader
|
--service url-downloader
|
||||||
|
|
||||||
Your peerId: 12D3KooWRPELv7DNPJvd7uG79etrvzN7VUaQGUt58qBWu4c58UHb
|
Your peerId: 12D3KooWRPELv7DNPJvd7uG79etrvzN7VUaQGUt58qBWu4c58UHb
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
aqua remote deploy \
|
aqua remote deploy \
|
||||||
--addr /dns4/kras-04.fluence.dev/tcp/19001/wss/p2p/12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi \
|
--addr /dns4/kras-04.fluence.dev/tcp/19001/wss/p2p/12D3KooWFEwNWcHqi9rtsmDhsYcDbRUCDXH84RC4FW6UfsFWaoHi \
|
||||||
--data-path configs/ts_oracle_deploy_cfg.json \
|
--config-path configs/ts_oracle_deploy_cfg.json \
|
||||||
--service ts-oracle \
|
--service ts-oracle \
|
||||||
>>\
|
>>\
|
||||||
deployed_service.data
|
deployed_service.data
|
Loading…
Reference in New Issue
Block a user