diff --git a/Dockerfile b/Dockerfile index 82f118a..f3e1a23 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,4 +19,20 @@ RUN git clone https://github.com/ros/catkin RUN mkdir build/catkin -p RUN apt-get install -y python3-empy RUN apt-get install -y python-is-python3 -RUN cd build/catkin && cmake ../../catkin -DCATKIN_BUILD_BINARY_PACKAGE=OFF -DCMAKE_INSTALL_PREFIX=/opt/ros/noetic -DPYTHON_EXECUTABLE=/usr/bin/python -DSETUPTOOLS_DEB_LAYOUT=OFF && make && make install +RUN cd build/catkin && cmake ../../catkin -DCATKIN_BUILD_BINARY_PACKAGE=ON -DCMAKE_INSTALL_PREFIX=/opt/ros/noetic -DPYTHON_EXECUTABLE=/usr/bin/python -DSETUPTOOLS_DEB_LAYOUT=OFF && make && make install +# RUN updatedb +# RUN locate catkin + +RUN git clone https://github.com/ros/console_bridge +RUN mkdir build/console_bridge -p +# TODO(lucasw) why not /opt/ros/noetic? +RUN cd build/console_bridge && cmake ../../console_bridge -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib && make && make install + +RUN git clone https://github.com/ros/class_loader +RUN mkdir build/class_loader -p +RUN apt-get install -y apt-utils +RUN apt-get install -y libboost-dev +RUN apt-get install -y libboost-thread-dev +ENV PYTHONPATH=/opt/ros/noetic/lib/python3.8/site-packages +RUN python -c "import catkin_pkg; print(catkin_pkg.__version__)" +RUN cd build/class_loader && cmake ../../class_loader -DCATKIN_BUILD_BINARY_PACKAGE=ON -DCMAKE_INSTALL_PREFIX=/opt/ros/noetic -DPYTHON_EXECUTABLE=/usr/bin/python -DSETUPTOOLS_DEB_LAYOUT=OFF && make && make install