-
Notifications
You must be signed in to change notification settings - Fork 775
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
- Loading branch information
1 parent
66bbd2d
commit a803fdc
Showing
2 changed files
with
114 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# FASTDDS_TODO_BEFORE(3, 0, "This compose file should be used for the future configuration example"); | ||
version: "3" | ||
|
||
services: | ||
subscriber: | ||
image: @DOCKER_IMAGE_NAME@ | ||
volumes: | ||
- @PROJECT_BINARY_DIR@:@PROJECT_BINARY_DIR@ | ||
- @fastcdr_LIB_DIR@:@fastcdr_LIB_DIR@ | ||
@TINYXML2_LIB_DIR_COMPOSE_VOLUME@ | ||
environment: | ||
# TODO(eduponz): LD_LIBRARY_PATH is not the correct variable for Windows | ||
LD_LIBRARY_PATH: @PROJECT_BINARY_DIR@/src/cpp:@fastcdr_LIB_DIR@@TINYXML2_LIB_DIR_COMPOSE_LD_LIBRARY_PATH@ | ||
EXAMPLE_DIR: @PROJECT_BINARY_DIR@/examples/cpp/delivery_mechanisms | ||
SUBSCRIBER_ADDITIONAL_ARGUMENTS: ${SUB_ARGS} | ||
network_mode: host | ||
ipc: host | ||
command: @SHELL_EXECUTABLE@ -c "$${EXAMPLE_DIR}/delivery_mechanisms@FILE_EXTENSION@ subscriber --samples 10 $${SUBSCRIBER_ADDITIONAL_ARGUMENTS}" | ||
|
||
publisher-subscriber: | ||
image: @DOCKER_IMAGE_NAME@ | ||
volumes: | ||
- @PROJECT_BINARY_DIR@:@PROJECT_BINARY_DIR@ | ||
- @fastcdr_LIB_DIR@:@fastcdr_LIB_DIR@ | ||
@TINYXML2_LIB_DIR_COMPOSE_VOLUME@ | ||
environment: | ||
# TODO(eduponz): LD_LIBRARY_PATH is not the correct variable for Windows | ||
LD_LIBRARY_PATH: @PROJECT_BINARY_DIR@/src/cpp:@fastcdr_LIB_DIR@@TINYXML2_LIB_DIR_COMPOSE_LD_LIBRARY_PATH@ | ||
EXAMPLE_DIR: @PROJECT_BINARY_DIR@/examples/cpp/delivery_mechanisms | ||
PUBLISHER_ADDITIONAL_ARGUMENTS: ${PUB_ARGS} | ||
SUBSCRIBER_ADDITIONAL_ARGUMENTS: ${SUB_ARGS} | ||
network_mode: host | ||
ipc: host | ||
command: @SHELL_EXECUTABLE@ -c "$${EXAMPLE_DIR}/delivery_mechanisms@FILE_EXTENSION@ subscriber --samples 10 $${SUBSCRIBER_ADDITIONAL_ARGUMENTS} & $${EXAMPLE_DIR}/delivery_mechanisms@FILE_EXTENSION@ pubsub --samples 10 $${PUBLISHER_ADDITIONAL_ARGUMENTS}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters