Skip to content
Closed
Show file tree
Hide file tree
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
19 changes: 11 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
#-----------------------
# Stage 1 - Dependencies
#-----------------------
ARG ROS_DISTRO=humble
FROM ros:$ROS_DISTRO AS builder

FROM ros:galactic AS builder

# qt5-default become obsolete since 21.04 https://bugs.launchpad.net/ubuntu/+source/qtbase-opensource-src/+bug/1926802
RUN apt-get update \
&& apt-get install -y \
cmake \
curl \
git \
python3-colcon-common-extensions \
python3-vcstool \
qt5-default \
qtbase5-dev \
qt5-qmake \
qtbase5-dev-tools \
wget \
python3-pip \
&& pip3 install flask-socketio fastapi uvicorn \
Expand All @@ -35,13 +38,12 @@ COPY rmf.repos rmf.repos
RUN vcs import src < rmf.repos \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y ignition-fortress clang clang-tools lld llvm-dev libc++-12-dev python3-colcon-mixin \
&& rosdep update \
&& rosdep install --from-paths src --ignore-src --rosdistro $ROS_DISTRO -yr \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install -y ignition-edifice \
&& rm -rf /var/lib/apt/lists/*

RUN colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml && colcon mixin update default || true
#-----------------
# Stage 2 - build
#-----------------
Expand All @@ -52,8 +54,9 @@ RUN apt-get update \
# && npm run build --prefix src/demonstrations/rmf_demos/rmf_demos_panel/rmf_demos_panel/static/

# colcon compilation
RUN . /opt/ros/$ROS_DISTRO/setup.sh \
&& colcon build --cmake-args -DCMAKE_BUILD_TYPE=Release
RUN export CXX=clang++ && export CC=clang && . /opt/ros/$ROS_DISTRO/setup.sh \
&& colcon build --mixin lld release
# --packages-skip-up-to rmf_demos_ign ros_ign_bridge ros_ign_image ros_ign_gazebo_demos ros_ign_gazebo ros_ign_interfaces

#----------
# Stage 3
Expand Down
4 changes: 0 additions & 4 deletions rmf.repos
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,4 @@ repositories:
type: git
url: https://github.com/open-rmf/pybind11_json_vendor.git
version: main
thirdparty/ros_ign:
type: git
url: https://github.com/ignitionrobotics/ros_ign.git
version: galactic