Skip to content

Commit

Permalink
Increase start period healthcheck Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Dec 11, 2023
1 parent b7b7528 commit 8919443
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.hardware
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 /
Expand Down

0 comments on commit 8919443

Please sign in to comment.