diff --git a/ros_trick/docker-compose.yml b/ros_trick/docker-compose.yml new file mode 100644 index 00000000..64261a2a --- /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" ]