mirror of
https://github.com/fluencelabs/examples
synced 2024-12-04 19:20:17 +00:00
update aqua deploy to config-path from data-path
This commit is contained in:
parent
eb9e6df35c
commit
abf573ee00
@ -240,7 +240,7 @@ Looks like our services are working and ready for deployment to the `stage` netw
|
||||
```bash
|
||||
aqua remote deploy_service \
|
||||
--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
|
||||
```
|
||||
|
||||
|
@ -126,7 +126,7 @@ export const useRemoveService = () => {
|
||||
if (!isConnected || serviceId === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
await remove_service(relay!, serviceId, {
|
||||
ttl: 10000,
|
||||
});
|
||||
|
@ -116,7 +116,7 @@ Any one of the peers will do and we can deploy our services with the `aqua` cli
|
||||
# deploy greeting service
|
||||
aqua remote deploy_service \
|
||||
--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
|
||||
```
|
||||
|
||||
@ -141,7 +141,7 @@ and
|
||||
# deploy echo service
|
||||
aqua remote deploy_service \
|
||||
--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
|
||||
```
|
||||
|
||||
|
@ -357,7 +357,7 @@ Before we can use our Fluence NEAR adapter, we need to deploy our Wasm modules t
|
||||
```bash
|
||||
aqua remote deploy_service \
|
||||
--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
|
||||
```
|
||||
|
||||
|
@ -165,7 +165,7 @@ Pick any of the peer ids from the listed peers to deploy your services. Let's sa
|
||||
```bash
|
||||
aqua remote deploy_service \
|
||||
--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
|
||||
```
|
||||
|
||||
@ -193,7 +193,7 @@ and to deploy the mean service:
|
||||
```bash
|
||||
aqua remote deploy_service \
|
||||
--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
|
||||
```
|
||||
|
||||
|
@ -58,7 +58,7 @@ and deploy the service to a peer of your choice with the `aqua` cli tool:
|
||||
```bash
|
||||
aqua remote deploy_service \
|
||||
--addr krasnodar-06 \
|
||||
--data-path configs/ts_oracle_deploy_cfg.json \
|
||||
--config-path configs/ts_oracle_deploy_cfg.json \
|
||||
--service ts-oracle \
|
||||
--sk <your secret key>
|
||||
```
|
||||
|
@ -1,6 +1,5 @@
|
||||
{
|
||||
"ts-oracle": {
|
||||
"name": "ts-oracle",
|
||||
"modules": [
|
||||
{
|
||||
"name": "ts_oracle",
|
||||
|
@ -749,7 +749,7 @@ We use the `aqua remote deploy_service` command to do our bidding:
|
||||
```zsh
|
||||
aqua remote deploy_service --help
|
||||
|
||||
Usage: aqua remote deploy_service [--timeout <integer>] [--log-level <string>] --addr <string> [--on <string>] [--print-air] [--sk <string>] --data-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
|
||||
|
||||
@ -768,7 +768,7 @@ Options and flags:
|
||||
Prints generated AIR code before function execution
|
||||
--sk <string>, -s <string>
|
||||
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
|
||||
--service <string>, -s <string>
|
||||
What service from the config file to deploy
|
||||
@ -781,14 +781,14 @@ To create our greeting service on peer `12D3KooWKnEqMfYo9zvfHmqTLpLdiHXPe4SVqUWc
|
||||
```zsh
|
||||
aqua remote deploy_service \
|
||||
--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
|
||||
```
|
||||
|
||||
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
|
||||
2. Config file location with the `config-path` flag
|
||||
3. Service name with the `service` flag
|
||||
|
||||
Which results in a success message and more importantly, the unique id for the deployed service:
|
||||
|
@ -8,6 +8,6 @@ set -o errexit -o nounset -o pipefail
|
||||
|
||||
aqua remote deploy_service \
|
||||
--addr /dns4/kras-05.fluence.dev/tcp/19001/wss/p2p/12D3KooWCMr9mU894i8JXAFqpgoFtx6qnV1LFPSfVc3Y34N4h4LS \
|
||||
--data-path deployment_cfg.json \
|
||||
--config-path deployment_cfg.json \
|
||||
--service url-downloader
|
||||
)
|
||||
|
@ -7,7 +7,7 @@ echo "Deploying storage"
|
||||
(
|
||||
aqua remote deploy_service \
|
||||
--addr /dns4/kras-05.fluence.dev/tcp/19001/wss/p2p/12D3KooWCMr9mU894i8JXAFqpgoFtx6qnV1LFPSfVc3Y34N4h4LS \
|
||||
--data-path deployment_cfg.json \
|
||||
--config-path deployment_cfg.json \
|
||||
--service local-storage
|
||||
)
|
||||
|
||||
@ -15,6 +15,6 @@ echo "\n\nDeploying curl"
|
||||
(
|
||||
aqua remote deploy_service \
|
||||
--addr /dns4/kras-05.fluence.dev/tcp/19001/wss/p2p/12D3KooWCMr9mU894i8JXAFqpgoFtx6qnV1LFPSfVc3Y34N4h4LS \
|
||||
--data-path deployment_cfg.json \
|
||||
--config-path deployment_cfg.json \
|
||||
--service curl-adapter
|
||||
)
|
||||
|
@ -1,6 +1,6 @@
|
||||
aqua remote deploy_service \
|
||||
--addr /dns4/kras-06.fluence.dev/tcp/19001/wss/p2p/12D3KooWDUszU2NeWyUVjCXhGEt1MoZrhvdmaQQwtZUriuGN1jTr \
|
||||
--data-path deployment_cfg.json \
|
||||
--config-path deployment_cfg.json \
|
||||
--service url-downloader
|
||||
|
||||
Your peerId: 12D3KooWRPELv7DNPJvd7uG79etrvzN7VUaQGUt58qBWu4c58UHb
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
aqua remote deploy_service \
|
||||
--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 \
|
||||
>>\
|
||||
deployed_service.data
|
Loading…
Reference in New Issue
Block a user