Skip to content

Commit

Permalink
fix version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikN committed Aug 9, 2023
1 parent ac8f361 commit 7501e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ COPY ./nav2_params /nav2_params

COPY --chmod=755 healthcheck_* /

RUN echo $(dpkg -s ros-$ROS_DISTRO-navigation2 | grep '<version>' | sed -r 's/.*<version>([0-9]+.[0-9]+.[0-9]+)<\/version>/\1/g') > /version.txt
RUN echo $(dpkg -s ros-$ROS_DISTRO-navigation2 | grep 'Version' | sed -r 's/Version:\s([0-9]+.[0-9]+.[0-9]+).*/\1/g') > /version.txt

HEALTHCHECK --interval=10s --timeout=10s --start-period=5s --retries=6 \
CMD bash -c "source /opt/$([ -n "${PREFIX_ENV}" ] && echo "${PREFIX_ENV//-/}" || echo "ros")/$ROS_DISTRO/setup.bash && /healthcheck_$SLAM_MODE.py"
Expand Down

0 comments on commit 7501e4c

Please sign in to comment.