2024-11-20 21:07:19 +03:00
|
|
|
FROM nvidia/cuda:12.6.2-cudnn-devel-ubuntu22.04
|
2023-12-11 18:29:05 +03:00
|
|
|
ARG WSDIR=rbs_ws
|
|
|
|
|
2023-12-12 00:54:55 +03:00
|
|
|
ENV RBS_ASSEMBLY_DIR=/assembly
|
2024-11-20 21:07:19 +03:00
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
2023-12-14 12:00:35 +03:00
|
|
|
|
2024-12-09 18:24:33 +03:00
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
|
2023-12-14 12:00:35 +03:00
|
|
|
# COPY /home/bill-finger/assembly /assembly
|
2023-12-12 00:54:55 +03:00
|
|
|
ENV IGN_GAZEBO_RESOURCE_PATH=/${WSDIR}/install/rbs_simulation/share/rbs_simulation/
|
2023-12-11 18:29:05 +03:00
|
|
|
|
2024-11-20 21:07:19 +03:00
|
|
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y \
|
2023-12-11 18:29:05 +03:00
|
|
|
git \
|
2024-11-20 21:07:19 +03:00
|
|
|
software-properties-common \
|
2023-12-11 18:29:05 +03:00
|
|
|
python3-pip \
|
|
|
|
lsb-release \
|
2024-11-20 21:07:19 +03:00
|
|
|
curl \
|
2024-12-09 18:24:33 +03:00
|
|
|
wget \
|
|
|
|
libgeos-dev
|
2024-11-20 21:07:19 +03:00
|
|
|
|
|
|
|
RUN add-apt-repository universe
|
|
|
|
RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
|
|
|
|
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null
|
|
|
|
|
|
|
|
|
2024-12-09 18:24:33 +03:00
|
|
|
# Insatll ROS2 and tools
|
|
|
|
RUN apt-get update &&\
|
|
|
|
apt-get upgrade &&\
|
|
|
|
apt-get install -y ros-humble-ros-base\
|
|
|
|
python3-rosdep\
|
|
|
|
python3-colcon-common-extensions
|
2024-11-20 21:07:19 +03:00
|
|
|
|
2024-12-09 18:24:33 +03:00
|
|
|
WORKDIR /${RBS_ASSEMBLY_DIR}
|
|
|
|
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
|
|
|
|
RUN apt-get install git-lfs
|
2023-12-14 17:09:16 +03:00
|
|
|
|
2023-12-12 00:54:55 +03:00
|
|
|
WORKDIR /${WSDIR}
|
2023-12-11 18:29:05 +03:00
|
|
|
|
|
|
|
COPY . src/robossembler-ros2/
|
|
|
|
|
2024-12-09 18:24:33 +03:00
|
|
|
RUN pip install vcstool
|
2024-11-20 21:07:19 +03:00
|
|
|
|
|
|
|
# Install framework and dependencies
|
|
|
|
RUN vcs import src/. < src/robossembler-ros2/repos/all-deps.repos
|
2024-12-09 18:24:33 +03:00
|
|
|
RUN pip install -r src/robossembler-ros2/repos/requirements.txt
|
|
|
|
RUN apt-get update && source /opt/ros/humble/setup.bash && rosdep init && rosdep update && \
|
2023-12-11 18:29:05 +03:00
|
|
|
rosdep install -y -r -q --from-paths src --ignore-src --rosdistro humble
|
2024-12-09 18:24:33 +03:00
|
|
|
RUN . /opt/ros/humble/setup.bash && \
|
2023-12-22 13:52:31 +03:00
|
|
|
colcon build --symlink-install --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=1
|
2024-11-20 21:07:19 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /${WSDIR}
|