mirror of
https://github.com/fluencelabs/examples
synced 2024-12-04 19:20:17 +00:00
changes to comply with the schema pairs support for mounted_binaries, mapped_dirs, envs (#346)
Co-authored-by: igor <dev@igor.sh>
This commit is contained in:
parent
9d0f3b10eb
commit
7190f74f7b
@ -5,7 +5,7 @@
|
||||
{
|
||||
"name": "curl_adapter",
|
||||
"path": "./artifacts/curl_adapter.wasm",
|
||||
"mounted_binaries": ["curl", "/usr/bin/curl"],
|
||||
"mounted_binaries": [["curl", "/usr/bin/curl"]],
|
||||
"preopened_files": null,
|
||||
"mapped_dirs": null,
|
||||
"logger_enabled": true
|
||||
@ -13,7 +13,7 @@
|
||||
{
|
||||
"name": "ceramic_adapter_custom",
|
||||
"path": "./artifacts/ceramic_adapter_custom.wasm",
|
||||
"mounted_binaries": ["ceramic", "/usr/bin/ceramic"],
|
||||
"mounted_binaries": [["ceramic", "/usr/bin/ceramic"]],
|
||||
"preopened_files": null,
|
||||
"mapped_dirs": null,
|
||||
"logger_enabled": true
|
||||
|
@ -5,7 +5,7 @@
|
||||
"name": "curl_adapter",
|
||||
"path": "./artifacts/curl_adapter.wasm",
|
||||
"max_heap_size": "64 MiB",
|
||||
"mounted_binaries": ["curl", "/usr/bin/curl"],
|
||||
"mounted_binaries": [["curl", "/usr/bin/curl"]],
|
||||
"logger_enabled": true
|
||||
},
|
||||
{
|
||||
|
@ -5,7 +5,7 @@
|
||||
{
|
||||
"name": "curl_adapter",
|
||||
"path": "./artifacts/curl_adapter.wasm",
|
||||
"mounted_binaries": ["curl", "/usr/bin/curl"],
|
||||
"mounted_binaries": [["curl", "/usr/bin/curl"]],
|
||||
"logger_enabled": true
|
||||
},
|
||||
{
|
||||
|
@ -4,7 +4,7 @@
|
||||
{
|
||||
"name": "curl_adapter",
|
||||
"path": "./artifacts/curl_adapter.wasm",
|
||||
"mounted_binaries": ["curl", "/usr/bin/curl"],
|
||||
"mounted_binaries": [["curl", "/usr/bin/curl"]],
|
||||
"logger_enabled": true
|
||||
},
|
||||
{
|
||||
|
@ -171,10 +171,10 @@ service Dist("dist"):
|
||||
-- logger_enabled - Defines whether Marine should provide a special host log_utf8_string function for this module
|
||||
-- preopened_files - Files available for this module. Module can access only files from this list
|
||||
-- envs - environment variables available for this module
|
||||
-- mapped_dirs - Directory mapping, e.g. ["/sites", "./web/data"] so all
|
||||
-- mapped_dirs - Directory mapping, e.g. [["/sites", "./web/data"]] so all
|
||||
-- reads & writes to /sites will actually to go ./web/data
|
||||
-- mounted_binaries - Mapping of host binaries available to call from module,
|
||||
-- e.g. ["curl", "/usr/bin/curl"] will allow module to
|
||||
-- e.g. [["curl", "/usr/bin/curl"]] will allow module to
|
||||
-- call /usr/bin/curl binary as function 'curl'
|
||||
-- logging_mask - Binary mask to enable & disable logging targets. Targets are
|
||||
-- configured in WasmLoggerBuilder::with_target_map
|
||||
|
@ -5,14 +5,14 @@
|
||||
{
|
||||
"name": "curl_adapter",
|
||||
"path": "./artifacts/curl_adapter.wasm",
|
||||
"mounted_binaries": ["curl", "/usr/bin/curl"],
|
||||
"mounted_binaries": [["curl", "/usr/bin/curl"]],
|
||||
"logger_enabled": true
|
||||
},
|
||||
{
|
||||
"name": "local_storage",
|
||||
"path": "./artifacts/local_storage.wasm",
|
||||
"preopened_files": ["/tmp"],
|
||||
"mapped_dirs": ["sites", "/tmp"],
|
||||
"mapped_dirs": [["sites", "/tmp"]],
|
||||
"logger_enabled": true
|
||||
},
|
||||
{
|
||||
@ -28,7 +28,7 @@
|
||||
"name": "local_storage",
|
||||
"path": "./artifacts/local_storage.wasm",
|
||||
"preopened_files": ["/tmp"],
|
||||
"mapped_dirs": ["sites", "/tmp"],
|
||||
"mapped_dirs": [["sites", "/tmp"]],
|
||||
"logger_enabled": true
|
||||
}
|
||||
]
|
||||
@ -38,7 +38,7 @@
|
||||
{
|
||||
"name": "curl_adapter",
|
||||
"path": "./artifacts/curl_adapter.wasm",
|
||||
"mounted_binaries": ["curl", "/usr/bin/curl"],
|
||||
"mounted_binaries": [["curl", "/usr/bin/curl"]],
|
||||
"logger_enabled": true
|
||||
}
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user