-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
101 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 |
---|---|---|
@@ -0,0 +1,101 @@ | ||
ARG TARGETPLATFORM=linux/amd64 | ||
FROM --platform=$TARGETPLATFORM ubuntu:groovy | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Use /bin/bash to use pushd/popd | ||
SHELL ["/bin/bash", "-c"] | ||
|
||
# Update apt-get | ||
RUN apt-get update -qq | ||
|
||
# ============================================================================== | ||
# Build tools | ||
# ============================================================================== | ||
RUN apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
clang \ | ||
clang-format-14 \ | ||
cmake \ | ||
curl \ | ||
doxygen \ | ||
git \ | ||
lcov \ | ||
lsb-release \ | ||
pkg-config \ | ||
software-properties-common \ | ||
valgrind | ||
|
||
# ============================================================================== | ||
# DART required dependencies | ||
# ============================================================================== | ||
RUN apt-get install -y --no-install-recommends \ | ||
libassimp-dev \ | ||
libeigen3-dev \ | ||
libfcl-dev \ | ||
libfmt-dev | ||
|
||
# ============================================================================== | ||
# DART optional dependencies | ||
# ============================================================================== | ||
|
||
RUN apt-get install -y --no-install-recommends \ | ||
coinor-libipopt-dev \ | ||
freeglut3-dev \ | ||
libxi-dev \ | ||
libxmu-dev \ | ||
libbullet-dev \ | ||
libtinyxml2-dev \ | ||
liburdfdom-dev \ | ||
liburdfdom-headers-dev \ | ||
libopenscenegraph-dev \ | ||
libnlopt-cxx-dev \ | ||
liboctomap-dev \ | ||
libode-dev \ | ||
libimgui-dev \ | ||
libspdlog-dev | ||
|
||
# pagmo2 | ||
RUN apt-get install -y --no-install-recommends \ | ||
coinor-libipopt-dev \ | ||
libboost-serialization-dev \ | ||
libeigen3-dev \ | ||
libnlopt-cxx-dev \ | ||
libtbb-dev | ||
RUN git clone https://github.com/esa/pagmo2.git -b 'v2.17.0' --single-branch --depth 1 \ | ||
&& mkdir pagmo2/build \ | ||
&& pushd pagmo2/build \ | ||
&& cmake .. \ | ||
-DCMAKE_BUILD_TYPE=Release \ | ||
-DPAGMO_WITH_EIGEN3=ON \ | ||
-DPAGMO_WITH_NLOPT=OFF \ | ||
-DPAGMO_WITH_IPOPT=ON \ | ||
-DPAGMO_BUILD_TESTS=OFF \ | ||
-DPAGMO_BUILD_BENCHMARKS=OFF \ | ||
-DPAGMO_BUILD_TUTORIALS=OFF \ | ||
&& make -j$(nproc) \ | ||
&& make install \ | ||
&& popd \ | ||
&& rm -rf pagmo2 | ||
|
||
# ============================================================================== | ||
# Python binding dependencies | ||
# ============================================================================== | ||
|
||
RUN apt-get install -y --no-install-recommends \ | ||
libpython3-dev \ | ||
pybind11-dev \ | ||
python3 \ | ||
python3-dev \ | ||
python3-distutils \ | ||
python3-numpy \ | ||
python3-pip \ | ||
python3-setuptools | ||
|
||
RUN pip3 install pytest -U | ||
|
||
# ============================================================================== | ||
# Clean up | ||
# ============================================================================== | ||
|
||
RUN rm -rf /var/lib/apt/lists/* |