Skip to content

Commit c1b7b18

Browse files
authored
Merge pull request #176 from ipa-rwu/rwu/fix/compose_file
fix ROS_HOSTNAME in docker-compose
2 parents 3c01e7b + e340c94 commit c1b7b18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/de.fraunhofer.ipa.rossystem.deployment/src/de/fraunhofer/ipa/rossystem/deployment/DockerComposeCompiler.xtend

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ services:
3737
- ros-master
3838
environment:
3939
- "ROS_MASTER_URI=http://ros-master:11311"
40-
- "ROS_HOSTNAME=«system.name.toLowerCase»"
40+
- "ROS_HOSTNAME=«generator_helper.get_uniqe_name(system.name.toLowerCase, ros_distro)»"
4141
networks:
4242
- ros
4343
«create_devices(device_map.get(system.name))»
@@ -50,7 +50,7 @@ services:
5050
- ros-master
5151
environment:
5252
- "ROS_MASTER_URI=http://ros-master:11311"
53-
- "ROS_HOSTNAME=«stack.name.toLowerCase»"
53+
- "ROS_HOSTNAME=«generator_helper.get_uniqe_name(system.name.toLowerCase, ros_distro)»_«stack.name.toLowerCase»"
5454
networks:
5555
- ros
5656
«create_devices(device_map.get(stack.name))»

0 commit comments

Comments
 (0)