File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
ARG ROS_DISTRO=humble
2
- FROM ros:$ROS_DISTRO as base
2
+ FROM ros:$ROS_DISTRO AS base
3
3
ARG DEBIAN_FRONTEND=noninteractive
4
4
5
5
# Install dependencies
@@ -15,10 +15,10 @@ RUN apt-get update && apt-get install -y \
15
15
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain 1.75.0 -y
16
16
ENV PATH=/root/.cargo/bin:$PATH
17
17
18
- RUN pip install --upgrade pytest
19
-
20
18
# Install the colcon-cargo and colcon-ros-cargo plugins
21
- RUN pip install git+https://github.com/colcon/colcon-cargo.git git+https://github.com/colcon/colcon-ros-cargo.git
19
+ RUN if [ "$ROS_DISTRO" = "humble" ] ; \
20
+ then pip install --upgrade pytest && pip install colcon-ros-cargo ; \
21
+ else pip install --break-system-packages pytest colcon-ros-cargo ; fi
22
22
23
23
RUN mkdir -p /workspace && echo "Did you forget to mount the repository into the Docker container?" > /workspace/HELLO.txt
24
24
WORKDIR /workspace
You can’t perform that action at this time.
0 commit comments