From 79328dc38303476301e7961a114c6026073b8ee9 Mon Sep 17 00:00:00 2001 From: pawelirh Date: Mon, 15 Apr 2024 13:40:07 +0200 Subject: [PATCH] Move stop signal to dockerfile --- Dockerfile.hardware | 2 ++ Dockerfile.simulation | 2 ++ demo/compose.minimal-setup.yaml | 1 - demo/compose.simulation.yaml | 1 - 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile.hardware b/Dockerfile.hardware index 1c88809..dc5d48f 100644 --- a/Dockerfile.hardware +++ b/Dockerfile.hardware @@ -5,6 +5,8 @@ FROM husarnet/ros:${ROS_DISTRO}-ros-core ENV HUSARION_ROS_BUILD_TYPE=hardware +STOPSIGNAL SIGINT + WORKDIR /ros2_ws RUN apt-get update && \ diff --git a/Dockerfile.simulation b/Dockerfile.simulation index 835b008..3c8bb3f 100644 --- a/Dockerfile.simulation +++ b/Dockerfile.simulation @@ -5,6 +5,8 @@ FROM husarnet/ros:${ROS_DISTRO}-ros-core ENV HUSARION_ROS_BUILD_TYPE=simulation +STOPSIGNAL SIGINT + WORKDIR /ros2_ws RUN apt-get update && \ diff --git a/demo/compose.minimal-setup.yaml b/demo/compose.minimal-setup.yaml index a2b05af..b8c53da 100644 --- a/demo/compose.minimal-setup.yaml +++ b/demo/compose.minimal-setup.yaml @@ -30,7 +30,6 @@ services: memlock: soft: 102400 hard: 102400 - stop_signal: SIGINT command: > ros2 launch panther_bringup bringup.launch.py namespace:=panther diff --git a/demo/compose.simulation.yaml b/demo/compose.simulation.yaml index b0a9d3f..48b7436 100644 --- a/demo/compose.simulation.yaml +++ b/demo/compose.simulation.yaml @@ -24,6 +24,5 @@ services: - *cpu-config volumes: - /tmp/.X11-unix:/tmp/.X11-unix:rw - stop_signal: SIGINT command: > ros2 launch panther_gazebo simulation.launch.py