-
hi! I have my own application for camera streaming which is implemented as a standole service as I want to integrate different protocols e.g Zenoh along with gRPC. For this application, I need to have my custom dockerfile based on a nvidia image in order to install a bunch of system dependencies. I tried to run my service in that dockerfile as follows: docker run -d \
--name myapp \
--privileged \
--restart=unless-stopped \
-p 50051:50051 \
-p 7447:7447/tcp \
-p 8000:8000/tcp \
myapp The server is running and no problem, however when I want to subscribe from a client in python from the outside, I'm not able to connect properly to the session. I attach a snippet similar to what I'm doing: # establish a connection to the server
config = zenoh.Config()
config.insert_json5("mode", json.dumps(args.mode))
config.insert_json5("connect/endpoints", json.dumps(args.connect))
# create a subscriber
sub = session.declare_subscriber(
"camera/0/frame", on_frame, reliability=zenoh.Reliability.RELIABLE
) Then I run as follows: NOTE: the server and then connecting with the client it works outside of the dockerfile. But I need to run it inside the docker to facilitate the deployment of this app. Any help or tips are welcomed! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @edgarriba, can you share the Zenoh configuration of the "server side" along with the error you are getting when trying to connect? |
Beta Was this translation helpful? Give feedback.
You are missing the actual listening locator, on your server side, please add something like
tcp/[::]:7447
in your server configuration.Please refer to documentation on how to configure a listener: https://docs.rs/zenoh/latest/zenoh/prelude/struct.Config.html