Skip to content

Commit

Permalink
Need ros cmake modules next
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasw committed Apr 21, 2021
1 parent f8394a2 commit a4cf7b9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a4cf7b9

Please sign in to comment.