-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
52 lines (43 loc) · 1.54 KB
/
Dockerfile
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
# This is an auto generated Dockerfile for ros:ros-base
# generated from docker_images_ros2/create_ros_image.Dockerfile.em
FROM ros:humble-ros-core-jammy
# install bootstrap tools
RUN apt-get update && apt-get install --no-install-recommends -y \
build-essential \
git \
nano \
python3-dev \
python3-pip \
python3-colcon-common-extensions \
python3-colcon-mixin \
python3-rosdep \
python3-vcstool \
nlohmann-json3-dev \
&& rm -rf /var/lib/apt/lists/*
# Script will automatically filled up the required packages under line 19
ADD requirement_apt.txt /
RUN apt-get update
RUN apt-get install --no-install-recommends -y $(cat requirement_apt.txt) | xargs
ADD requirement_pip.txt /
RUN pip install -r requirement_pip.txt
# bootstrap rosdep
RUN rosdep init && \
rosdep update --rosdistro $ROS_DISTRO
# setup colcon mixin and metadata
RUN colcon mixin add default \
https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml && \
colcon mixin update && \
colcon metadata add default \
https://raw.githubusercontent.com/colcon/colcon-metadata-repository/master/index.yaml && \
colcon metadata update
# install ros2 packages
RUN apt-get update && apt-get install -y --no-install-recommends \
ros-humble-ros-base=0.10.0-1* \
&& rm -rf /var/lib/apt/lists/*
ADD ros_entrypoint.sh /
RUN chmod a+x ros_entrypoint.sh
RUN mkdir -p ros2_ws/src
RUN mkdir -p ros2_ws/launch/qos
COPY codePack/ /ros2_ws/src/
WORKDIR /ros2_ws
#RUN . /opt/ros/${ROS_DISTRO}/setup.sh && colcon build