Skip to content

Commit

Permalink
Building catkin in Dockerfile much faster than github actions develop…
Browse files Browse the repository at this point in the history
…ment, can port to that later
  • Loading branch information
lucasw committed Apr 21, 2021
1 parent f3471ce commit f8394a2
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "core/catkin"]
path = core/catkin
url = [email protected]:ros/catkin
[submodule "core/catkin_pkg"]
path = core/catkin_pkg
url = [email protected]:ros-infrastructure/catkin_pkg
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM ubuntu:20.04

ENV DEBIAN_FRONTEND="noninteractive"

# be able to source files
RUN rm /bin/sh && ln -s /bin/bash /bin/sh

RUN apt-get update
RUN apt-get install -y build-essential
RUN apt-get install -y git
RUN git clone https://github.com/ros-infrastructure/catkin_pkg
RUN apt-get install -y python3
RUN apt-get install -y python3-setuptools
RUN cd catkin_pkg && python3 setup.py install

RUN apt-get install -y cmake

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
1 change: 1 addition & 0 deletions core/catkin_pkg
Submodule catkin_pkg added at ad07ab

0 comments on commit f8394a2

Please sign in to comment.