Skip to content

Commit

Permalink
fix also gazebo dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
DominikN committed Jan 2, 2024
1 parent 9d493bf commit f35e1b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions Dockerfile.gazebo
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,10 @@ RUN apt-get update && apt-get install -y \
rm -rf /var/lib/apt/lists/*

COPY healthcheck.sh /
COPY run_healthcheck_node.sh /

HEALTHCHECK --interval=5s --timeout=2s --start-period=5s --retries=4 \
CMD ["/healthcheck.sh"]

RUN new_content1='source "/ros2_ws_healthcheck/install/setup.bash"' && \
new_content2='gosu $USER bash -c "ros2 run healthcheck_pkg healthcheck_node &"' && \
file=$(ls /*_entrypoint.sh | head -n 1) && \
sed -i "/exec/i $new_content1" $file && \
sed -i "/exec/i $new_content2" $file
RUN sed -i "/# <additional-user-commands>/r /run_healthcheck_node.sh" /ros_entrypoint.sh && \
sed -i "/# <additional-user-commands>/d" /ros_entrypoint.sh
2 changes: 1 addition & 1 deletion demo/compose.gazebo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ services:
build:
context: ../
dockerfile: Dockerfile.gazebo
<<: [ *cpu-config]
<<: [ *gpu-config]
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix:rw
command: ros2 launch rosbot_gazebo simulation.launch.py mecanum:=${MECANUM:-False}

0 comments on commit f35e1b6

Please sign in to comment.