@@ -13,13 +13,20 @@ ENV ROS_DISTRO dashing
13
13
RUN curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | apt-key add -
14
14
15
15
# setup sources.list
16
- RUN echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list \
17
- && apt-get update
16
+ RUN sh -c 'echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2/ubuntu $(lsb_release -cs) main" > /etc/apt/sources.list.d/ros2-latest.list'
18
17
19
- # install ros2 desktop
20
- RUN apt-get install -y --quiet \
18
+ # install bootstrap tools
19
+ RUN apt-get update \
20
+ && apt-get install --quiet -y \
21
21
python3-colcon-common-extensions \
22
+ python3-colcon-mixin \
22
23
python3-vcstool \
24
+ && apt-get -y autoremove \
25
+ && apt-get clean autoclean \
26
+ && rm -rf /var/lib/apt/lists/{apt,dpkg,cache,log} /tmp/* /var/tmp/*
27
+
28
+ # install ros2 desktop
29
+ RUN apt-get install --quiet --no-install-recommends -y \
23
30
ros-$ROS_DISTRO-desktop \
24
31
ros-$ROS_DISTRO-launch-testing-ament-cmake \
25
32
ros-$ROS_DISTRO-ros2bag \
@@ -31,8 +38,6 @@ RUN apt-get install -y --quiet \
31
38
# Install Python 3 packages needed for testing
32
39
RUN pip3 install --upgrade \
33
40
argcomplete \
34
- colcon-common-extensions \
35
- colcon-mixin \
36
41
flake8 \
37
42
flake8-blind-except \
38
43
flake8-builtins \
@@ -53,9 +58,3 @@ RUN colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mix
53
58
&& colcon mixin update \
54
59
&& colcon metadata add default https://raw.githubusercontent.com/colcon/colcon-metadata-repository/master/index.yaml \
55
60
&& colcon metadata update
56
-
57
- # create and start as LOCAL_USER_ID
58
- COPY scripts/entrypoint.sh /usr/local/bin/entrypoint.sh
59
- ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
60
-
61
- CMD ["/bin/bash"]
0 commit comments