This repository has been archived by the owner on Dec 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile.humble.base
55 lines (48 loc) · 2.27 KB
/
Dockerfile.humble.base
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
ARG BASE_IMAGE=rbonghi/isaac-ros-base:humble-core-devel
FROM ${BASE_IMAGE}
# ROS distributions
# https://discourse.ros.org/t/core-base-and-desktop-releases/20267
ARG ROS_PKG=ros_base
# ROS2 Humble installation
# https://docs.ros.org/en/humble/Installation/Alternatives/Ubuntu-Development-Setup.html
# download/build ROS from source
RUN mkdir -p ${ROS_ROOT}/src \
&& cd ${ROS_ROOT} \
&& rosinstall_generator --deps --rosdistro ${ROS_DISTRO} ${ROS_PKG} \
> ros2.${ROS_DISTRO}.${ROS_PKG}.rosinstall \
&& cat ros2.${ROS_DISTRO}.${ROS_PKG}.rosinstall \
&& vcs import src < ros2.${ROS_DISTRO}.${ROS_PKG}.rosinstall \
&& rm ${ROS_ROOT}/*.rosinstall \
# Install dependencies using rosdep
&& apt-get update \
&& rosdep update \
&& rosdep install -y \
--ignore-src \
--from-paths src \
--rosdistro ${ROS_DISTRO} \
--skip-keys "fastcdr rti-connext-dds-6.0.1 urdfdom_headers" \
&& rm -Rf /var/lib/apt/lists/* \
&& apt-get clean \
# Build ROS2 source
&& colcon build --merge-install --cmake-args -DCMAKE_BUILD_TYPE=Release \
&& rm -Rf src build log
############################################################