services-ros1-xbee_mav/Dockerfile

24 lines
662 B
Docker

FROM osrf/ros:kinetic-desktop-full
RUN apt-get update && apt-get install -y \
git \
vim \
build-essential \
ros-kinetic-mavros \
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
HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD /ros_entrypoint.sh rostopic list