Browse Source

Update the build and run instructions in the README

tags/v0.0.0-test.4
Philipp Oppermann 3 years ago
parent
commit
9dadaeb831
1 changed files with 10 additions and 3 deletions
  1. +10
    -3
      coordinator/README.md

+ 10
- 3
coordinator/README.md View File

@@ -27,8 +27,15 @@ There are drawbacks too, for example:

## Try it out

- Compile the `examples` using `cargo build -p dora-rs --examples`
- Run the `mini-dataflow` example using `cargo run -- run examples/mini-dataflow.yml`
- Compile the dora runtime using `cargo build -p dora-runtime --release`
- Compile the nodes in `examples` using `cargo build -p dora-coordinator --examples --release`
- Compile the Rust example operator through `cargo build --manifest-path ../runtime/examples/example-operator/Cargo.toml --release`
- Compile the C example operator through:
- `cd ../runtime/examples/c-operator`
- `cp ../../../api/c/operator/api.h .`
- `clang -c operator.c`
- `clang -shared -v operator.o -o operator.so`
- Run the `mini-dataflow` example using `cargo run --release -- run examples/mini-dataflow.yml`
- This spawns a `timer` source, which sends the current time periodically, and a `logger` sink, which prints the incoming data.
- The `timer` will exit after 100 iterations. The `logger` will then exit with a timeout error.
- The `timer` will exit after 100 iterations. The other nodes/operators will then exit as well because all sources closed.


Loading…
Cancel
Save