Skip to content

Instantly share code, notes, and snippets.

@tim-fan
Created August 2, 2020 11:06
Show Gist options
  • Save tim-fan/c5f39f2d6a3258c21fe568d0e667c5f9 to your computer and use it in GitHub Desktop.
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
# 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