Skip to content

Commit 54d05d6

Browse files
authored
Fix: More robust suzieq tool definition (#2501)
This fix uses a different name for suzieq container and parquet volume, allowing 'netlab up' to check whether the container has started (otherwise 'docker inspect' returns volume info when asked about the container). It also creates container without the 'auto remove' flag, so the user can inspect container logs in case of a fatal suzieq failure. The 'tool.down' command was modified accordingly to kill the container and then remove it.
1 parent ff25087 commit 54d05d6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

netsim/tools/suzieq.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@
44
runtime: docker # Default: start in a Docker container
55
docker:
66
up:
7-
docker run --rm -itd --name '{name}_suzieq'
7+
docker run -itd --name '{name}_suzieq'
88
{sys.docker_net}
9-
-v '{name}_suzieq':/parquet
9+
-v '{name}_suzieq_data':/parquet
1010
-v './suzieq':/suzieq
1111
netenglabs/suzieq-demo -c 'sq-poller -I /suzieq/suzieq-inventory.yml'
1212
message:
1313
Use 'netlab connect suzieq' to start SuzieQ CLI
1414
connect:
1515
docker exec -it '{name}_suzieq' /usr/local/bin/suzieq-cli
1616
down:
17-
docker kill '{name}_suzieq'
17+
docker kill '{name}_suzieq';
18+
docker rm '{name}_suzieq'
1819
cleanup:
19-
docker volume rm '{name}_suzieq'
20+
docker volume rm '{name}_suzieq_data'
2021
config:
2122
- dest: suzieq-inventory.yml
2223
template: suzieq.inventory.j2

0 commit comments

Comments
 (0)