Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,22 @@ ENV LANG=en_US.UTF-8

# Install essentials
RUN apt update && \
apt install --no-install-recommends -y -qq apt-utils build-essential ca-certificates cmake cmake-curses-gui curl git glmark2 gnupg2 htop iputils-ping jq lsb-release mesa-utils nano psmisc python3-virtualenv sudo unzip vim wget zip && \
apt install --no-install-recommends -y -qq apt-utils build-essential ca-certificates cmake-curses-gui curl git glmark2 gnupg2 htop iputils-ping jq lsb-release mesa-utils nano psmisc python3-virtualenv sudo unzip vim wget zip && \
rm -rf /var/lib/apt/lists/*

# Add Kitware repo (maintains latest cmake)
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc | gpg --dearmor -o /usr/share/keyrings/kitware-archive-keyring.gpg && \
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ jammy main' \
| tee /etc/apt/sources.list.d/kitware.list && \
apt-get update && \
apt-get install -y cmake && \
rm -rf /var/lib/apt/lists/*

# Install additional dependencies for the robotology superbuild
RUN apt update && \
git clone https://github.com/robotology/robotology-superbuild && \
cd robotology-superbuild && \
git checkout v2025.02.0 && \
git checkout v2023.05.2 && \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we downgrade the superbuild version for the dependencies?

bash scripts/install_apt_dependencies.sh && \
rm -rf /var/lib/apt/lists/* && \
rm -rf ../robotology-superbuild
Expand All @@ -48,7 +56,7 @@ WORKDIR /home/user
RUN git clone https://github.com/robotology/robotology-superbuild && \
cd robotology-superbuild && \
git fetch -a && \
git checkout v2025.02.0 && \
git checkout v2025.05.0 && \
git config --local user.name "user" && \
git config --local user.email "user@email.com" && \
mkdir build && cd build && \
Expand All @@ -58,6 +66,9 @@ RUN git clone https://github.com/robotology/robotology-superbuild && \
# Setup robotology superbuild
RUN echo "source /home/user/robotology-superbuild/build/install/share/robotology-superbuild/setup.sh" >> /home/user/.bashrc

# Install pybind11 (C++ dev package for CMake)
RUN sudo apt-get update && sudo apt-get install -y pybind11-dev && sudo rm -rf /var/lib/apt/lists/*

# Clone and build ergocub-cartesian-control
RUN source /home/user/robotology-superbuild/build/install/share/robotology-superbuild/setup.sh && \
git clone https://github.com/hsp-iit/ergocub-cartesian-control && \
Expand Down