Skip to content

Commit a247129

Browse files
author
Julien Loudet
committed
fix yaml descriptors
- add missing closing double quotes - add BASE_DIR var to all descriptors - fix mustache notation in data-flow.yaml Signed-off-by: Julien Loudet <julien.loudet@zettascale.tech>
1 parent 3f10a20 commit a247129

File tree

7 files changed

+27
-32
lines changed

7 files changed

+27
-32
lines changed

getting-started/data-flow.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
flow: hello-world
2+
23
vars:
34
BASE_DIR: "./zenoh-flow-examples/getting-started"
45

@@ -9,12 +10,12 @@ sources:
910

1011
operators:
1112
- id: greetings-maker
12-
descriptor: "file://{{ BASE_DIR }}/nodes/rust/greetings-maker/greetings-maker.yaml
13+
descriptor: "file://{{ BASE_DIR }}/nodes/rust/greetings-maker/greetings-maker.yaml"
1314

1415

1516
sinks:
1617
- id: file-writer
17-
descriptor: "file://{{ BASE_DIR} }/nodes/rust/file-writer/file-writer.yaml
18+
descriptor: "file://{{ BASE_DIR }}/nodes/rust/file-writer/file-writer.yaml"
1819

1920

2021
links:

getting-started/nodes/python/file-writer/file-writer.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
id: file-writer
22

3-
uri: file:///Users/julien/dev/zenoh-flow-examples/getting-started/nodes/python/file-writer/file-writer.py
3+
vars:
4+
BASE_DIR: "./zenoh-flow-examples/getting-started"
5+
6+
uri: "file://{{ BASE_DIR }}/nodes/python/file-writer/file-writer.py"
47

58
inputs:
69
- id: in
710
type: string
8-
9-
tags: []
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
id: greetings-maker
22

3-
# Do not forget to change the extension depending on your operating system!
4-
# Linux -> .so
5-
# Windows -> .dll (and remove the "lib" in front)
6-
# MacOS -> .dylib
7-
uri: file:///Users/julien/dev/zenoh-flow-examples/getting-started/nodes/python/greetings-maker/greetings-maker.py
8-
# If the compilation is in release:
9-
# uri: file:///absolute/path/to/target/release/libgreetings_maker.so
3+
vars:
4+
BASE_DIR: "./zenoh-flow-examples/getting-started"
5+
6+
uri: "file://{{ BASE_DIR }}/nodes/python/greetings-maker/greetings-maker.py"
107

118
inputs:
129
- id: name
@@ -15,5 +12,3 @@ inputs:
1512
outputs:
1613
- id: greeting
1714
type: string
18-
19-
tags: []
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
id: zenoh-sub
22

3-
# Do not forget to change the extension depending on your operating system!
4-
# Linux -> .so
5-
# Windows -> .dll (and remove the "lib" in front)
6-
# MacOS -> .dylib
7-
uri: file:///Users/julien/dev/zenoh-flow-examples/getting-started/nodes/python/zenoh-sub/zenoh-sub.py
8-
# If the compilation is in release:
9-
# uri: file:///absolute/path/to/target/release/libfile_reader.so
3+
vars:
4+
BASE_DIR: "./zenoh-flow-examples/getting-started"
5+
6+
uri: "file://{{ BASE_DIR }}/nodes/python/zenoh-sub/zenoh-sub.py"
107

118
outputs:
129
- id: out
1310
type: string
14-
15-
tags: []

getting-started/nodes/rust/file-writer/file-writer.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
id: file-writer
22

3+
vars:
4+
BASE_DIR: "./zenoh-flow-examples/getting-started"
5+
36
# Do not forget to change the extension depending on your operating system!
47
# Linux -> .so
58
# Windows -> .dll (and remove the "lib" in front)
69
# MacOS -> .dylib
7-
uri: file:///Users/julien/dev/zenoh-flow-examples/getting-started/nodes/rust/target/debug/libfile_writer.dylib
10+
uri: "file://{{ BASE_DIR }}/nodes/rust/target/debug/libfile_writer.dylib"
811
# If the compilation is in release:
912
# uri: file:///absolute/path/to/target/release/libfile_writer.so
1013

1114
inputs:
1215
- id: in
1316
type: string
14-
15-
tags: []

getting-started/nodes/rust/greetings-maker/greetings-maker.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
id: greetings-maker
22

3+
vars:
4+
BASE_DIR: "./zenoh-flow-examples/getting-started"
5+
36
# Do not forget to change the extension depending on your operating system!
47
# Linux -> .so
58
# Windows -> .dll (and remove the "lib" in front)
69
# MacOS -> .dylib
7-
uri: file:///Users/julien/dev/zenoh-flow-examples/getting-started/nodes/rust/target/debug/libgreetings_maker.dylib
10+
uri: "file://{{ BASE_DIR }}/nodes/rust/target/debug/libgreetings_maker.dylib"
811
# If the compilation is in release:
912
# uri: file:///absolute/path/to/target/release/libgreetings_maker.so
1013

@@ -15,5 +18,3 @@ inputs:
1518
outputs:
1619
- id: greeting
1720
type: string
18-
19-
tags: []

getting-started/nodes/rust/zenoh-sub/zenoh-sub.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
id: file-reader
22

3+
vars:
4+
BASE_DIR: "./zenoh-flow-examples/getting-started"
5+
36
# Do not forget to change the extension depending on your operating system!
47
# Linux -> .so
58
# Windows -> .dll (and remove the "lib" in front)
69
# MacOS -> .dylib
7-
uri: file:///Users/julien/dev/zenoh-flow-examples/getting-started/nodes/rust/target/debug/libzenoh_sub.dylib
10+
uri: "file://{{ BASE_DIR }}/nodes/rust/target/debug/libzenoh_sub.dylib"
811
# If the compilation is in release:
912
# uri: file:///absolute/path/to/target/release/libfile_reader.so
1013

1114
outputs:
1215
- id: out
1316
type: string
14-
15-
tags: []

0 commit comments

Comments
 (0)