diff --git a/marine-examples/url-downloader/deploy_separate.sh b/marine-examples/url-downloader/deploy_separate.sh index d846e56..570320f 100755 --- a/marine-examples/url-downloader/deploy_separate.sh +++ b/marine-examples/url-downloader/deploy_separate.sh @@ -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 ) diff --git a/marine-examples/url-downloader/deployment_cfg.json b/marine-examples/url-downloader/deployment_cfg.json index bb05c35..960c92e 100644 --- a/marine-examples/url-downloader/deployment_cfg.json +++ b/marine-examples/url-downloader/deployment_cfg.json @@ -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] + } + ] } }