From e5ae9aecff66e8f8435e8d6abbbca6c91ff4c7e6 Mon Sep 17 00:00:00 2001 From: xfiderek Date: Fri, 6 Sep 2024 13:59:59 +0200 Subject: [PATCH] NASA_Challenge_[@xfiderek] Add docker-compose for trick demo (#42). --- ros_trick/docker-compose.yml | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 ros_trick/docker-compose.yml diff --git a/ros_trick/docker-compose.yml b/ros_trick/docker-compose.yml new file mode 100644 index 0000000..64261a2 --- /dev/null +++ b/ros_trick/docker-compose.yml @@ -0,0 +1,44 @@ +# Copyright 2024 Blazej Fiderek (xfiderek) +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# https://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +services: + ros_trick_bridge: + container_name: ros_trick_bridge + command: [ "bash", "-c", ". ~/.bashrc && . install/setup.bash && ros2 launch ros_trick_bridge ros_trick_bridge.launch.py" ] + build: + context: . + dockerfile: ros_trick_bridge.Dockerfile + image: ros_trick_bridge:latest + environment: + - DISPLAY=${DISPLAY} + - TERM=${TERM} + - QT_X11_NO_MITSHM=1 + network_mode: host + volumes: + - /tmp/.X11-unix:/tmp/.X11-unix + + canadarm_ros_trick_demo: + container_name: canadarm_ros_trick_demo + build: + context: . + dockerfile: canadarm_ros_trick_demo.Dockerfile + image: canadarm_ros_trick_demo:latest + network_mode: host + environment: + - DISPLAY=${DISPLAY} + - TERM=${TERM} + - QT_X11_NO_MITSHM=1 + volumes: + - /tmp/.X11-unix:/tmp/.X11-unix + command: [ "bash", "-c", ". ~/.bashrc && . install/setup.bash && ros2 launch trick_canadarm_moveit_config demo.launch.py" ]