mirror of
https://github.com/fluencelabs/examples
synced 2024-12-04 19:20:17 +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"
|
||||
(
|
||||
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"
|
||||
(
|
||||
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]
|
||||
}
|
||||
]
|
||||
},
|
||||
"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…
Reference in New Issue
Block a user