fldist to aqua

This commit is contained in:
boneyard93501 2022-03-23 13:41:13 -05:00
parent 79ef63a7a9
commit cf276692fd
2 changed files with 29 additions and 2 deletions

View File

@ -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
)

View File

@ -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]
}
]
}
}