mirror of
https://github.com/fluencelabs/examples
synced 2024-12-04 19:20:17 +00:00
440b3c3137
* add packaging script * add packaged module * add packaging script * add package * add package script * add package * add package script * add service package * update figure 1 * add packaged modules * update records module types * add packaging script * add packaedmodule * add flunce cli reference * Update marine-examples/README.md Co-authored-by: Valery Antopol <valery.antopol@gmail.com> * add newline * add newline * add newline * add newline * update module order * update module name --------- Co-authored-by: Valery Antopol <valery.antopol@gmail.com>
46 lines
735 B
Bash
Executable File
46 lines
735 B
Bash
Executable File
|
|
mkdir -p module-exports/modules/facade
|
|
mkdir -p module-exports/modules/pure
|
|
|
|
sh ./build.sh
|
|
|
|
cd module-exports
|
|
cp ../facade/target/wasm32-wasi/release/records_facade.wasm modules/facade/
|
|
cp ../pure/target/wasm32-wasi/release/records_pure.wasm modules/pure/
|
|
|
|
file="service.yaml"
|
|
cat > $file <<- EOF
|
|
version: 0
|
|
name: records
|
|
modules:
|
|
pure:
|
|
get: modules/facade
|
|
effector:
|
|
get: modules/pure
|
|
EOF
|
|
|
|
|
|
file="modules/facade/module.yaml"
|
|
cat > $file <<- EOF
|
|
version: 0
|
|
name: facade
|
|
loggerEnabled: true
|
|
EOF
|
|
|
|
file="modules/pure/module.yaml"
|
|
cat > $file <<- EOF
|
|
version: 0
|
|
name: pure
|
|
loggerEnabled: true
|
|
EOF
|
|
|
|
tar -czf records.tar.gz modules service.yaml
|
|
rm -r modules
|
|
rm service.yaml
|
|
|
|
cd ../facade
|
|
cargo clean
|
|
pwd
|
|
cd ../pure
|
|
cargo clean
|