Created
August 2, 2020 11:06
-
-
Save tim-fan/c5f39f2d6a3258c21fe568d0e667c5f9 to your computer and use it in GitHub Desktop.
Dockerfile to build dnn_detect for ROS noetic https://github.com/UbiquityRobotics/dnn_detect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# adapted from https://github.com/SteveMacenski/slam_toolbox/blob/noetic-devel/Dockerfile | |
FROM ros:noetic-ros-base-focal | |
# USE BASH | |
SHELL ["/bin/bash", "-c"] | |
# RUN LINE BELOW TO REMOVE debconf ERRORS (MUST RUN BEFORE ANY apt-get CALLS) | |
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections | |
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends \ | |
apt-utils \ | |
git \ | |
python3-catkin-tools \ | |
python3-pip | |
RUN pip3 install \ | |
osrf-pycommon | |
RUN mkdir -p catkin_ws/src | |
RUN cd catkin_ws/src && git clone https://github.com/tim-fan/dnn_detect.git -b kinetic-devel | |
RUN source /opt/ros/noetic/setup.bash \ | |
&& cd catkin_ws \ | |
&& rosdep update \ | |
&& rosdep install -y -r --from-paths src --ignore-src --rosdistro=noetic -y | |
RUN source /opt/ros/noetic/setup.bash \ | |
&& cd catkin_ws/src \ | |
&& catkin_init_workspace \ | |
&& cd .. \ | |
&& catkin config --install \ | |
&& catkin build -DCMAKE_INSTALL_PREFIX=/opt/ros/noetic |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment