From 89194432b1677ed5723815b2efb9f8c45f247375 Mon Sep 17 00:00:00 2001 From: rafal-gorecki Date: Mon, 11 Dec 2023 11:14:05 +0100 Subject: [PATCH] Increase start period healthcheck Docker --- Dockerfile.hardware | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.hardware b/Dockerfile.hardware index c07482c..3492afb 100644 --- a/Dockerfile.hardware +++ b/Dockerfile.hardware @@ -70,7 +70,7 @@ RUN mkdir src && \ install(TARGETS healthcheck_node DESTINATION lib/${PROJECT_NAME})' \ /ros2_ws/src/healthcheck_pkg/CMakeLists.txt -COPY healthcheck.cpp src/healthcheck_pkg/src/ +COPY healthcheck.cpp src/healthcheck_pkg/src/ RUN MYDISTRO=${PREFIX:-ros}; MYDISTRO=${MYDISTRO//-/} && \ source /opt/$MYDISTRO/$ROS_DISTRO/setup.bash && \ @@ -115,7 +115,7 @@ RUN git clone --depth 1 https://github.com/husarion/rosbot_ros.git src -b humble rm -rf build log ## =========================== Final Stage =============================== -FROM husarnet/ros:${PREFIX}${ROS_DISTRO}-ros-core +FROM husarnet/ros:${PREFIX}${ROS_DISTRO}-ros-core ARG ROS_DISTRO ARG PREFIX @@ -155,7 +155,7 @@ COPY ros_entrypoint.sh / COPY vulcanexus_entrypoint.sh / COPY healthcheck.sh / -HEALTHCHECK --interval=5s --timeout=2s --start-period=5s --retries=4 \ +HEALTHCHECK --interval=5s --timeout=2s --start-period=10s --retries=4 \ CMD ["/healthcheck.sh"] COPY microros_localhost_only.xml /