Docker images containing a pre-built OpenDDS are available on
DockerHub. An image
corresponding to a particular release has a tag of the form release-DDS-X.xx
,
e.g., release-DDS-3.12
.
-
Check for prerequisites
docker --version docker-compose --version
-
Enter a container
docker run --rm -ti -v "$PWD:/opt/workspace" objectcomputing/opendds
-
Copy the
Messenger
directory which contains an example from the Developer's Guidecp -R /opt/OpenDDS/DevGuideExamples/DCPS/Messenger Messenger cd Messenger
-
Configure and build the Messenger example
mwc.pl -type gnuace make
-
Exit the container
exit
-
Enter the
Messenger
directorycd Messenger
-
Create an
rtps.ini
file to control discovery with the following content[common] DCPSGlobalTransportConfig=$file DCPSDefaultDiscovery=DEFAULT_RTPS [transport/the_rtps_transport] transport_type=rtps_udp
-
Run the Messenger example with RTPS
docker-compose up
-
Run the Messenger example with InfoRepo
docker-compose -f docker-compose-inforepo.yml up # Use Control-C to kill the InfoRepo process