osrf / docker_images

A repository to hold definitions of docker images maintained by OSRF
Apache License 2.0
579 stars 172 forks source link

Extend template to install packages from lockfiles #667

Open ruffsl opened 1 year ago

ruffsl commented 1 year ago

Related:

ruffsl commented 1 year ago

Example changes here from upstream template changes:

Dockerfile

# install ros2 packages
- RUN apt-get update && apt-get install -y --no-install-recommends \
-    ros-rolling-ros-core=0.10.0-1* \
-    && rm -rf /var/lib/apt/lists/*
# copy ros packages
ARG TARGETARCH
COPY $TARGETARCH/ros2_packages.txt /opt/ros/

# install ros packages
RUN apt-get update \
    && xargs -a /opt/ros/ros2_packages.txt \
        apt-get install -y --no-install-recommends \
    && rm -rf /var/lib/apt/lists/*

amd64/ros2_packages.txt

ros-rolling-ros-core=0.10.0-1jammy.20230302.170232

arm64v8/ros2_packages.txt

ros-rolling-ros-core=0.10.0-1jammy.20230302.181653