Dockerfile for building example application #134
aldas
started this conversation in
Show and tell
Replies: 1 comment
-
Hello @aldas, thanks for your contribution! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be cool if there would be Dockerfile(s) in repo instead/in addition to Docker image binaries from website. With file like that you have good base for building your own application images for FastDDS.
Currently I have made something like that for HelloWorldPublisher/Subscriber. Image size comes is 181MB.
Dockerfile
and
entrypoint.sh
isThese files assume that you have following files in same folder
HelloWorld.idl
HelloWorldPublisher.py
HelloWorldSubscriber.py
DEFAULT_FASTRTPS_PROFILES.xml
(in my case I want to try with udp only transport)and I build Docker image for the application with
sudo docker build . -t fastdds-python-example
and run subscriber with:
and publisher with:
or using docker IPC to use shared memory
sudo docker run --rm --ipc=shareable fastdds-python-example sudo docker run --rm --ipc=container:$(sudo docker container ls -a --format "{{.Names}}" -f ancestor=fastdds-python-example) fastdds-python-example /project/HelloWorldPublisher.py
Beta Was this translation helpful? Give feedback.
All reactions