Dockerfile-melodic 702 B

123456789101112131415161718
  1. FROM ros:melodic-ros-core
  2. RUN apt-get update \
  3. && apt-get install -y build-essential clang-format python-catkin-tools python-rosdep \
  4. && rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
  5. # Create ROS workspace
  6. COPY . /ws/src/imu_tools
  7. WORKDIR /ws
  8. # Use rosdep to install all dependencies (including ROS itself)
  9. RUN rosdep init && rosdep update && rosdep install --from-paths src -i -y --rosdistro melodic
  10. RUN /bin/bash -c "source /opt/ros/melodic/setup.bash && \
  11. catkin init && \
  12. catkin config --install -j 1 -p 1 && \
  13. catkin build --limit-status-rate 0.1 --no-notify && \
  14. catkin build --limit-status-rate 0.1 --no-notify --make-args tests"