mirror of
https://github.com/fluencelabs/examples
synced 2025-04-25 10:42:16 +00:00
fldist to aqua
This commit is contained in:
parent
79ef63a7a9
commit
cf276692fd
@ -6,11 +6,17 @@ set -o errexit -o nounset -o pipefail
|
|||||||
echo "Deploying storage"
|
echo "Deploying storage"
|
||||||
(
|
(
|
||||||
cd artifacts
|
cd artifacts
|
||||||
fldist new_service --name "local_storage" --modules local_storage.wasm:local_storage.json
|
aqua remote deploy_service \
|
||||||
|
--addr /dns4/kras-05.fluence.dev/tcp/19001/wss/p2p/12D3KooWCMr9mU894i8JXAFqpgoFtx6qnV1LFPSfVc3Y34N4h4LS \
|
||||||
|
--data-path deployment_cfg.json \
|
||||||
|
--service local-storage
|
||||||
)
|
)
|
||||||
|
|
||||||
echo "\n\nDeploying curl"
|
echo "\n\nDeploying curl"
|
||||||
(
|
(
|
||||||
cd artifacts
|
cd artifacts
|
||||||
fldist new_service --name "curl_adapter" --modules curl_adapter.wasm:curl_adapter.json
|
aqua remote deploy_service \
|
||||||
|
--addr /dns4/kras-05.fluence.dev/tcp/19001/wss/p2p/12D3KooWCMr9mU894i8JXAFqpgoFtx6qnV1LFPSfVc3Y34N4h4LS \
|
||||||
|
--data-path deployment_cfg.json \
|
||||||
|
--service curl-adapter
|
||||||
)
|
)
|
||||||
|
@ -21,5 +21,26 @@
|
|||||||
"logger_enabled": [true]
|
"logger_enabled": [true]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"local-storage": {
|
||||||
|
"modules": [
|
||||||
|
{
|
||||||
|
"name": "local_storage",
|
||||||
|
"path": "./artifacts/local_storage.wasm",
|
||||||
|
"preopened_files": ["/tmp"],
|
||||||
|
"mapped_dirs": [["sites", "/tmp"]],
|
||||||
|
"logger_enabled": [true]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"curl-adapter": {
|
||||||
|
"modules": [
|
||||||
|
{
|
||||||
|
"name": "curl_adapter",
|
||||||
|
"path": "./artifacts/curl_adapter.wasm",
|
||||||
|
"mounted_binaries": [["curl", "/usr/bin/curl"]],
|
||||||
|
"logger_enabled": [true]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user