forked from ros-industrial/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update taskflow version and reduce size of docker images
- Loading branch information
1 parent
713d999
commit af80c41
Showing
2 changed files
with
90 additions
and
58 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
docker build --build-arg ROSDISTRO=melodic --build-arg ROS_BASE_TAG=melodic-perception -t rosindustrial/tesseract:melodic . | ||
docker build --build-arg ROSDISTRO=noetic --build-arg ROS_BASE_TAG=noetic-perception -t rosindustrial/tesseract:noetic . | ||
docker build --build-arg ROSDISTRO=foxy --build-arg ROS_BASE_TAG=foxy -t rosindustrial/tesseract:foxy . |
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 |
---|---|---|
|
@@ -28,113 +28,141 @@ RUN if [ "$ROSDISTRO" = "foxy" ] ; then \ | |
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
ros-$ROSDISTRO-perception-pcl \ | ||
ros-$ROSDISTRO-rviz2; else \ | ||
ros-$ROSDISTRO-rviz2 \ | ||
libbullet-dev \ | ||
libbullet-extras-dev && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* ; fi | ||
|
||
RUN if [ "$ROSDISTRO" = "noetic" ] ; then \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
ros-$ROSDISTRO-octomap \ | ||
ros-$ROSDISTRO-rviz && \ | ||
ros-$ROSDISTRO-rviz \ | ||
ros-$ROSDISTRO-taskflow \ | ||
ros-$ROSDISTRO-fcl \ | ||
libbullet-dev \ | ||
libbullet-extras-dev && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* ; fi | ||
|
||
RUN if [ "$ROSDISTRO" = "kinetic" ] ; then \ | ||
RUN if [ "$ROSDISTRO" = "melodic" ] ; then \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
python-pip && \ | ||
python-pip \ | ||
ros-$ROSDISTRO-octomap \ | ||
ros-$ROSDISTRO-rviz && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
pip install cmake ; fi | ||
rm -rf /var/lib/apt/lists/* ; fi | ||
|
||
WORKDIR /bullet3_build | ||
RUN git clone --branch master https://github.com/bulletphysics/bullet3.git | ||
RUN cmake \ | ||
ENV PKG_CONFIG_PATH /opt/ros/$ROSDISTRO/lib/pkgconfig | ||
ENV LD_LIBRARY_PATH /opt/ros/$ROSDISTRO/lib | ||
|
||
WORKDIR /multi_distro_build | ||
RUN mkdir swig_build && \ | ||
cd swig_build && \ | ||
wget http://prdownloads.sourceforge.net/swig/swig-4.0.2.tar.gz && \ | ||
tar -xzvf swig-4.0.2.tar.gz --strip 1 && \ | ||
./configure && \ | ||
make -j8 && \ | ||
make install && \ | ||
ln -s /usr/local/bin/swig /usr/local/bin/swig4.0 && \ | ||
ln -s /usr/local/bin/ccache-swig /usr/local/bin/ccache-swig4.0 && \ | ||
cd .. && \ | ||
mkdir gtest_build && \ | ||
cd gtest_build && \ | ||
git clone --branch release-1.8.1 https://github.com/google/googletest.git && \ | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_CXX_FLAGS="-w -std=c++14" \ | ||
-DBUILD_GMOCK=OFF \ | ||
-DBUILD_GTEST=ON \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
/multi_distro_build/gtest_build/googletest && \ | ||
make -j8 && \ | ||
make install && \ | ||
cd .. && \ | ||
cd .. && \ | ||
rm -rf /multi_distro_build | ||
|
||
WORKDIR /ext_build | ||
RUN if [ "$ROSDISTRO" = "melodic" ] ; then \ | ||
mkdir bullet_build && \ | ||
cd bullet_build && \ | ||
git clone --branch master https://github.com/bulletphysics/bullet3.git && \ | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_CXX_FLAGS="-w -std=c++14" \ | ||
-DCMAKE_C_FLAGS="-w" \ | ||
-DBUILD_UNIT_TESTS=OFF \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
-DBULLET2_MULTITHREADING=OFF \ | ||
-DUSE_DOUBLE_PRECISION=ON \ | ||
/bullet3_build/bullet3 && \ | ||
/ext_build/bullet_build/bullet3 && \ | ||
make -j8 && \ | ||
make install && \ | ||
cd .. && \ | ||
rm -rf /bullet3_build | ||
|
||
WORKDIR /libccd_build | ||
RUN git clone --branch master https://github.com/danfis/libccd.git | ||
RUN cmake \ | ||
mkdir ccd_build && \ | ||
cd ccd_build && \ | ||
git clone --branch master https://github.com/danfis/libccd.git && \ | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_CXX_FLAGS="-w -std=c++14" \ | ||
-DCMAKE_C_FLAGS="-w" \ | ||
-DENABLE_DOUBLE_PRECISION=ON \ | ||
/libccd_build/libccd && \ | ||
/ext_build/ccd_build/libccd && \ | ||
make -j8 && \ | ||
make install && \ | ||
cd .. && \ | ||
rm -rf /libccd_build | ||
|
||
ENV PKG_CONFIG_PATH /opt/ros/$ROSDISTRO/lib/pkgconfig | ||
ENV LD_LIBRARY_PATH /opt/ros/$ROSDISTRO/lib | ||
WORKDIR /fcl_build | ||
RUN git clone --branch master https://github.com/flexible-collision-library/fcl.git | ||
RUN cmake \ | ||
mkdir fcl_build && \ | ||
cd fcl_build && \ | ||
git clone --branch master https://github.com/flexible-collision-library/fcl.git && \ | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_CXX_FLAGS="-w -std=c++14" \ | ||
-DBUILD_TESTING=OFF \ | ||
/fcl_build/fcl && \ | ||
/ext_build/fcl_build/fcl && \ | ||
make -j8 && \ | ||
make install && \ | ||
cd .. && \ | ||
rm -rf /fcl_build | ||
|
||
WORKDIR /swig_build | ||
RUN wget http://prdownloads.sourceforge.net/swig/swig-4.0.2.tar.gz | ||
RUN tar -xzvf swig-4.0.2.tar.gz --strip 1 | ||
RUN ./configure && \ | ||
mkdir taskflow_build && \ | ||
cd taskflow_build && \ | ||
git clone --branch test/TaskflowVersion3CMake310 https://github.com/Levi-Armstrong/cpp-taskflow.git && \ | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
/ext_build/taskflow_build/cpp-taskflow && \ | ||
make -j8 && \ | ||
make install && \ | ||
cd .. && \ | ||
rm -rf /swig_build && \ | ||
ln -s /usr/local/bin/swig /usr/local/bin/swig4.0 && \ | ||
ln -s /usr/local/bin/ccache-swig /usr/local/bin/ccache-swig4.0 | ||
cd .. && \ | ||
rm -rf /ext_build ; fi | ||
|
||
WORKDIR /gtest_build | ||
RUN git clone --branch release-1.8.1 https://github.com/google/googletest.git | ||
RUN cmake \ | ||
RUN if [ "$ROSDISTRO" = "foxy" ] ; then \ | ||
mkdir ccd_build && \ | ||
cd ccd_build && \ | ||
git clone --branch master https://github.com/danfis/libccd.git && \ | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_CXX_FLAGS="-w -std=c++14" \ | ||
-DBUILD_GMOCK=OFF \ | ||
-DBUILD_GTEST=ON \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
/gtest_build/googletest && \ | ||
-DCMAKE_C_FLAGS="-w" \ | ||
-DENABLE_DOUBLE_PRECISION=ON \ | ||
/ext_build/ccd_build/libccd && \ | ||
make -j8 && \ | ||
make install && \ | ||
cd .. && \ | ||
rm -rf /gtest_build | ||
|
||
WORKDIR /gbenchmark_build | ||
RUN if [ "$ROSDISTRO" = "kinetic" ] ; then git clone --branch v1.5.0 https://github.com/google/benchmark.git ; fi | ||
RUN if [ "$ROSDISTRO" = "kinetic" ] ; then \ | ||
mkdir fcl_build && \ | ||
cd fcl_build && \ | ||
git clone --branch master https://github.com/flexible-collision-library/fcl.git && \ | ||
cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DCMAKE_CXX_FLAGS="-w -std=c++14" \ | ||
-DBENCHMARK_ENABLE_GTEST_TESTS=OFF \ | ||
-DBUILD_SHARED_LIBS=ON \ | ||
/gbenchmark_build/benchmark && \ | ||
-DBUILD_TESTING=OFF \ | ||
/ext_build/fcl_build/fcl && \ | ||
make -j8 && \ | ||
make install && \ | ||
cd .. && \ | ||
rm -rf /gbenchmark_build ; fi | ||
|
||
WORKDIR /taskflow_build | ||
RUN git clone --branch v2.6.0 https://github.com/taskflow/taskflow.git | ||
RUN cmake \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
/taskflow_build/taskflow && \ | ||
make -j8 && \ | ||
make install && \ | ||
cd .. && \ | ||
rm -rf /taskflow_build | ||
rm -rf /ext_build ; fi | ||
|
||
RUN git config --global user.email [email protected] && git config --global user.name ROS Industrial | ||
|
||
|