services-ros1-xbee_mav/Dockerfile

27 lines
716 B
Docker
Raw Normal View History

2024-06-24 12:57:09 -03:00
FROM ros:kinetic-ros-core
2024-06-18 12:11:02 -03:00
RUN apt-get update && apt-get install -y \
git \
vim \
build-essential \
ros-kinetic-mavros \
2024-06-24 13:56:31 -03:00
dos2unix \
2024-06-18 12:11:02 -03:00
ros-kinetic-mavros-extras \
ros-kinetic-mavros-msgs \
ros-kinetic-catkin
WORKDIR /root/catkin_ws/
COPY xbeemav/ ./src/xbeemav
RUN /bin/bash -c "source /opt/ros/kinetic/setup.bash && catkin_make -DSIM=0 -DKIN=1"
RUN /bin/bash -c "source /opt/ros/kinetic/setup.bash && catkin_make install"
ENV ROS_DISTRO kinetic
ENV CATKIN_SETUP_FILE devel/setup.bash
RUN apt-get clean
COPY ./ros_entrypoint.sh /ros_entrypoint.sh
2024-06-24 13:56:31 -03:00
RUN /bin/bash -c "dos2unix /ros_entrypoint.sh"
2024-06-18 12:11:02 -03:00
2024-06-24 16:58:11 -03:00
HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD /ros_entrypoint.sh rostopic list