From 0b66db8e83f57f7937e1e2c7d7491bfbb2b530d2 Mon Sep 17 00:00:00 2001 From: Marc Hanheide Date: Sun, 29 Jun 2025 19:16:55 +0100 Subject: [PATCH 1/2] update key early in the process fixes #8 --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index be2d9b4..a32666d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,8 @@ FROM ${BASE_IMAGE} AS base ENV DEBIAN_FRONTEND=noninteractive +RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg + # Install language RUN apt-get update && \ apt-get upgrade -y && \ From ccace1468122854873e9dc7dd1df4653b78e15dd Mon Sep 17 00:00:00 2001 From: Marc Hanheide Date: Sun, 29 Jun 2025 20:05:32 +0100 Subject: [PATCH 2/2] try to overcome trouble with apt update --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index a32666d..92f4246 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,8 @@ FROM ${BASE_IMAGE} AS base ENV DEBIAN_FRONTEND=noninteractive -RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg - # Install language -RUN apt-get update && \ +RUN apt-get update ; \ apt-get upgrade -y && \ apt-get install -y --no-install-recommends \ locales \ @@ -20,16 +18,16 @@ ENV LANG=en_US.UTF-8 # Install timezone RUN ln -fs /usr/share/zoneinfo/UTC /etc/localtime \ && export DEBIAN_FRONTEND=noninteractive \ - && apt-get update \ - && apt-get install -y --no-install-recommends tzdata \ + && apt-get update ; \ + apt-get install -y --no-install-recommends tzdata \ && dpkg-reconfigure --frontend noninteractive tzdata \ && rm -rf /var/lib/apt/lists/* -RUN apt-get update && apt-get -y upgrade \ +RUN apt-get update; apt-get -y upgrade \ && rm -rf /var/lib/apt/lists/* # Install common programs -RUN apt-get update && apt-get install -y --no-install-recommends \ +RUN apt-get update; apt-get install -y --no-install-recommends \ curl \ gnupg2 \ lsb-release \ @@ -41,6 +39,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ wget \ && rm -rf /var/lib/apt/lists/* +RUN curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg + # Prepare ROS2 RUN add-apt-repository universe \ && curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg \