Dockerfile-noetic 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. FROM ros:noetic-ros-core
  2. RUN apt-get update \
  3. && apt-get install -y build-essential file clang-format python3-rosdep \
  4. && rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
  5. # workaround for https://github.com/catkin/catkin_tools/issues/594:
  6. # apt-get install python3-catkin-tools doesn't work because python3-trollius doesn't exist on Ubuntu Focal
  7. ENV PATH="/root/.local/bin:${PATH}"
  8. RUN apt-get update \
  9. && apt-get install -y git python3-pip \
  10. && rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
  11. RUN pip3 install --user git+https://github.com/catkin/catkin_tools.git
  12. # end workaround
  13. # Create ROS workspace
  14. COPY . /ws/src/imu_tools
  15. WORKDIR /ws
  16. # Use rosdep to install all dependencies (including ROS itself)
  17. RUN rosdep init && rosdep update && rosdep install --from-paths src -i -y --rosdistro noetic
  18. RUN /bin/bash -c "source /opt/ros/noetic/setup.bash && \
  19. catkin init && \
  20. catkin config --install -j 1 -p 1 && \
  21. catkin build --limit-status-rate 0.1 --no-notify && \
  22. catkin build --limit-status-rate 0.1 --no-notify --make-args tests"