-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Building catkin in Dockerfile much faster than github actions develop…
…ment, can port to that later
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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
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 |
Submodule catkin_pkg
added at
ad07ab