mirror of
https://github.com/fluencelabs/examples
synced 2024-12-04 19:20:17 +00:00
add ipfs adapter
This commit is contained in:
parent
4555960dae
commit
11c72d8e6b
@ -8,12 +8,32 @@ logger_enabled = true
|
||||
[module.mounted_binaries]
|
||||
curl = "/usr/bin/curl"
|
||||
|
||||
[[module]]
|
||||
name = "ipfs_adapter"
|
||||
max_heap_size = "2 MiB"
|
||||
logger_enabled = true
|
||||
|
||||
[module.mounted_binaries]
|
||||
ipfs = "/usr/local/bin/ipfs"
|
||||
|
||||
[[module]]
|
||||
name = "multi_provider_query"
|
||||
max_heap_size = "2 MiB"
|
||||
logger_enabled = true
|
||||
|
||||
|
||||
[[module]]
|
||||
name = "simple_quorum"
|
||||
max_heap_size = "2 MiB"
|
||||
logger_enabled = true
|
||||
|
||||
|
||||
[[module]]
|
||||
name = "ipfs_cli"
|
||||
max_heap_size = "2 MiB"
|
||||
logger_enabled = true
|
||||
|
||||
[[module]]
|
||||
name = "utilities"
|
||||
max_heap_size = "2 MiB"
|
||||
logger_enabled = true
|
||||
|
@ -25,5 +25,32 @@
|
||||
"logger_enabled": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"ipfs-package": {
|
||||
"modules": [
|
||||
{
|
||||
"name": "ipfs_adapter",
|
||||
"path": "./artifacts/ipfs_adapter.wasm",
|
||||
"max_heap_size": "2 MiB",
|
||||
"mounted_binaries": [["ipfs", "/usr/bin/ipfs"]],
|
||||
"logger_enabled": true
|
||||
},
|
||||
{
|
||||
"name": "ipfs_cli",
|
||||
"path": "./artifacts/ipfs_cli.wasm",
|
||||
"max_heap_size": "2 MiB",
|
||||
"logger_enabled": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"utilities": {
|
||||
"modules": [
|
||||
{
|
||||
"name": "utilities",
|
||||
"path": "./artifacts/utilities.wasm",
|
||||
"max_heap_size": "2 MiB",
|
||||
"logger_enabled": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,11 @@ cargo update --aggressive
|
||||
marine build --release
|
||||
cp target/wasm32-wasi/release/curl_adapter.wasm ../../artifacts/
|
||||
|
||||
cd ../ipfs-adapter
|
||||
cargo update --aggressive
|
||||
marine build --release
|
||||
cp target/wasm32-wasi/release/ipfs_adapter.wasm ../../artifacts/
|
||||
|
||||
cd ../multi-provider-query
|
||||
cargo update --aggressive
|
||||
marine build --release
|
||||
@ -20,4 +25,14 @@ cargo update --aggressive
|
||||
marine build --release
|
||||
cp target/wasm32-wasi/release/simple_quorum.wasm ../../artifacts/
|
||||
|
||||
cd ../ipfs-cli
|
||||
cargo update --aggressive
|
||||
marine build --release
|
||||
cp target/wasm32-wasi/release/ipfs_cli.wasm ../../artifacts/
|
||||
|
||||
cd ../utilities
|
||||
cargo update --aggressive
|
||||
marine build --release
|
||||
cp target/wasm32-wasi/release/utilities.wasm ../../artifacts/
|
||||
|
||||
cd ..
|
Loading…
Reference in New Issue
Block a user