Fix merge regression: restore iproute2 install and base-image upgrade step in Dockerfile
These were unintentionally dropped during the jazzy_mecanum_control merge when a whole-file 'git checkout --theirs Dockerfile' was used to resolve a conflict that only affected the colcon build cmake-args line. iproute2 provides the `ip` binary that agv_pro_hardware/AgvProHardwareInterface and agv_pro_bringup/can_power_on.py need at runtime to bring up the CAN interface.
This commit is contained in:
1 parent
8d9b4006f4
commit
bbcb753c94
1 file changed
+18
+18
@@ -14,6 +14,15 @@ RUN mkdir -p src/upstream && vcs import ./src/upstream < ./upstream.jazzy.repos
|
|||||||
# Apply patches to upstream
|
# Apply patches to upstream
|
||||||
RUN ./patches/apply_patches.sh
|
RUN ./patches/apply_patches.sh
|
||||||
|
|
||||||
|
# Make sure the base image is completely up to date
|
||||||
|
# ros:jazzy ships /etc/apt/apt.conf.d/docker-clean which purges downloaded .debs;
|
||||||
|
# remove it so the --mount=type=cache on /var/cache/apt actually retains archives.
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=apt-cache-${TARGETARCH} \
|
||||||
|
rm -f /etc/apt/apt.conf.d/docker-clean \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get upgrade -y \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# system deps from frozen rosdep manifest — no rosdep at build or startup
|
# system deps from frozen rosdep manifest — no rosdep at build or startup
|
||||||
# NOTE: There should be a check in your CI that this file is up to date.
|
# NOTE: There should be a check in your CI that this file is up to date.
|
||||||
# Something like:
|
# Something like:
|
||||||
@@ -28,6 +37,15 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=apt-cache-${TARGE
|
|||||||
&& xargs -r -a /tmp/rosdep-packages.txt apt-get install -y --no-install-recommends \
|
&& xargs -r -a /tmp/rosdep-packages.txt apt-get install -y --no-install-recommends \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# iproute2 provides `ip`, used by agv_pro_hardware/AgvProHardwareInterface and
|
||||||
|
# agv_pro_bringup's can_power_on.py to bring up the wheel CAN interface at runtime.
|
||||||
|
# Not a ROS package so rosdep won't pull it in -- install it explicitly.
|
||||||
|
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=apt-cache-${TARGETARCH} \
|
||||||
|
rm -f /etc/apt/apt.conf.d/docker-clean \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get install -y --no-install-recommends iproute2 \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install dependencies with rosdep
|
# Install dependencies with rosdep
|
||||||
# This will catch anything that wasn't installed via .deb's from the frozen rosdep manifest.
|
# This will catch anything that wasn't installed via .deb's from the frozen rosdep manifest.
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
|
|||||||
Reference in new issue
Block a user