add ipfs adapter

This commit is contained in:
boneyard93501 2022-07-11 19:25:34 -05:00
parent 4555960dae
commit 11c72d8e6b
3 changed files with 62 additions and 0 deletions

View File

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

View File

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

View File

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