Dockerfile 844 B

12345678910111213141516171819202122232425
  1. FROM ros:galactic
  2. RUN apt-get update && apt-get install -y --no-install-recommends \
  3. wget nano build-essential libomp-dev clang lld git\
  4. ros-galactic-geodesy ros-galactic-pcl-ros ros-galactic-nmea-msgs \
  5. ros-galactic-rviz2 ros-galactic-libg2o \
  6. && apt-get clean \
  7. && rm -rf /var/lib/apt/lists/*
  8. RUN mkdir -p /root/colcon_ws/src
  9. WORKDIR /root/colcon_ws/src
  10. # Comment it out until the repository supports ROS2 builds.
  11. # RUN git clone https://github.com/SMRT-AIST/fast_gicp.git --recursive --depth=1
  12. # RUN git clone https://github.com/koide3/hdl_graph_slam.git --depth=1
  13. COPY . /root/colcon_ws/src/ndt_omp/
  14. WORKDIR /root/colcon_ws
  15. RUN /bin/bash -c '. /opt/ros/galactic/setup.bash; colcon build'
  16. RUN sed -i "6i source \"/root/colcon_ws/devel/setup.bash\"" /ros_entrypoint.sh
  17. WORKDIR /
  18. ENTRYPOINT ["/ros_entrypoint.sh"]
  19. CMD ["bash"]