Skip to content

Commit

Permalink
Merge pull request #705 from osrf/gpg-keyring
Browse files Browse the repository at this point in the history
Move to gpg keyring for non-EOL images
  • Loading branch information
mikaelarguedas authored Dec 20, 2023
2 parents 68c9f87 + 161559d commit f90e7e8
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 31 deletions.
13 changes: 10 additions & 3 deletions gazebo/11/ubuntu/focal/gzserver11/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,22 @@ RUN echo 'Etc/UTC' > /etc/timezone && \
RUN apt-get update && apt-get install -q -y --no-install-recommends \
dirmngr \
gnupg2 \
lsb-release \
&& rm -rf /var/lib/apt/lists/*


# setup keys
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys D2486D2DD83DB69272AFE98867170598AF249743
RUN set -eux; \
key='D2486D2DD83DB69272AFE98867170598AF249743'; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; \
mkdir -p /usr/share/keyrings; \
gpg --batch --export "$key" > /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME"

# setup sources.list
RUN . /etc/os-release \
&& echo "deb http://packages.osrfoundation.org/gazebo/$ID-stable `lsb_release -sc` main" > /etc/apt/sources.list.d/gazebo-latest.list
&& echo "deb [ signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg ] http://packages.osrfoundation.org/gazebo/$ID-stable $VERSION_CODENAME main" > /etc/apt/sources.list.d/gazebo-latest.list

# install gazebo packages
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
2 changes: 1 addition & 1 deletion gazebo/gazebo
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GitRepo: https://github.com/osrf/docker_images.git

Tags: gzserver11, gzserver11-focal
Architectures: amd64
GitCommit: 532c4f1af8c9dadb54b0c9769543c67c40c0c84f
GitCommit: 27cc0b68263bbbb10bb58dd814efc0a6b0a01ec7
Directory: gazebo/11/ubuntu/focal/gzserver11

Tags: libgazebo11, libgazebo11-focal, latest
Expand Down
11 changes: 9 additions & 2 deletions ros/humble/ubuntu/jammy/ros-core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

# setup keys
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
RUN set -eux; \
key='C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654'; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; \
mkdir -p /usr/share/keyrings; \
gpg --batch --export "$key" > /usr/share/keyrings/ros2-latest-archive-keyring.gpg; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME"

# setup sources.list
RUN echo "deb http://packages.ros.org/ros2/ubuntu jammy main" > /etc/apt/sources.list.d/ros2-latest.list
RUN echo "deb [ signed-by=/usr/share/keyrings/ros2-latest-archive-keyring.gpg ] http://packages.ros.org/ros2/ubuntu jammy main" > /etc/apt/sources.list.d/ros2-latest.list

# setup environment
ENV LANG C.UTF-8
Expand Down
11 changes: 9 additions & 2 deletions ros/iron/ubuntu/jammy/ros-core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

# setup keys
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
RUN set -eux; \
key='C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654'; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; \
mkdir -p /usr/share/keyrings; \
gpg --batch --export "$key" > /usr/share/keyrings/ros2-latest-archive-keyring.gpg; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME"

# setup sources.list
RUN echo "deb http://packages.ros.org/ros2/ubuntu jammy main" > /etc/apt/sources.list.d/ros2-latest.list
RUN echo "deb [ signed-by=/usr/share/keyrings/ros2-latest-archive-keyring.gpg ] http://packages.ros.org/ros2/ubuntu jammy main" > /etc/apt/sources.list.d/ros2-latest.list

# setup environment
ENV LANG C.UTF-8
Expand Down
11 changes: 9 additions & 2 deletions ros/noetic/ubuntu/focal/ros-core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

# setup keys
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
RUN set -eux; \
key='C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654'; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; \
mkdir -p /usr/share/keyrings; \
gpg --batch --export "$key" > /usr/share/keyrings/ros1-latest-archive-keyring.gpg; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME"

# setup sources.list
RUN echo "deb http://packages.ros.org/ros/ubuntu focal main" > /etc/apt/sources.list.d/ros1-latest.list
RUN echo "deb [ signed-by=/usr/share/keyrings/ros1-latest-archive-keyring.gpg ] http://packages.ros.org/ros/ubuntu focal main" > /etc/apt/sources.list.d/ros1-latest.list

# setup environment
ENV LANG C.UTF-8
Expand Down
11 changes: 9 additions & 2 deletions ros/rolling/ubuntu/jammy/ros-core/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,17 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*

# setup keys
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
RUN set -eux; \
key='C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654'; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; \
mkdir -p /usr/share/keyrings; \
gpg --batch --export "$key" > /usr/share/keyrings/ros2-latest-archive-keyring.gpg; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME"

# setup sources.list
RUN echo "deb http://packages.ros.org/ros2/ubuntu jammy main" > /etc/apt/sources.list.d/ros2-latest.list
RUN echo "deb [ signed-by=/usr/share/keyrings/ros2-latest-archive-keyring.gpg ] http://packages.ros.org/ros2/ubuntu jammy main" > /etc/apt/sources.list.d/ros2-latest.list

# setup environment
ENV LANG C.UTF-8
Expand Down
8 changes: 4 additions & 4 deletions ros/ros
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GitRepo: https://github.com/osrf/docker_images.git

Tags: noetic-ros-core, noetic-ros-core-focal
Architectures: amd64, arm32v7, arm64v8
GitCommit: 9ab23751d41735b448da8cfa1580958279ae5101
GitCommit: 27cc0b68263bbbb10bb58dd814efc0a6b0a01ec7
Directory: ros/noetic/ubuntu/focal/ros-core

Tags: noetic-ros-base, noetic-ros-base-focal, noetic
Expand All @@ -36,7 +36,7 @@ Directory: ros/noetic/ubuntu/focal/perception

Tags: humble-ros-core, humble-ros-core-jammy
Architectures: amd64, arm64v8
GitCommit: 87074e54828d12dacf84f15273e95e03eeb17d24
GitCommit: 27cc0b68263bbbb10bb58dd814efc0a6b0a01ec7
Directory: ros/humble/ubuntu/jammy/ros-core

Tags: humble-ros-base, humble-ros-base-jammy, humble, latest
Expand All @@ -58,7 +58,7 @@ Directory: ros/humble/ubuntu/jammy/perception

Tags: iron-ros-core, iron-ros-core-jammy
Architectures: amd64, arm64v8
GitCommit: 87074e54828d12dacf84f15273e95e03eeb17d24
GitCommit: 27cc0b68263bbbb10bb58dd814efc0a6b0a01ec7
Directory: ros/iron/ubuntu/jammy/ros-core

Tags: iron-ros-base, iron-ros-base-jammy, iron
Expand All @@ -80,7 +80,7 @@ Directory: ros/iron/ubuntu/jammy/perception

Tags: rolling-ros-core, rolling-ros-core-jammy
Architectures: amd64, arm64v8
GitCommit: 87074e54828d12dacf84f15273e95e03eeb17d24
GitCommit: 27cc0b68263bbbb10bb58dd814efc0a6b0a01ec7
Directory: ros/rolling/ubuntu/jammy/ros-core

Tags: rolling-ros-base, rolling-ros-base-jammy, rolling
Expand Down
16 changes: 11 additions & 5 deletions ros2/nightly/nightly/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
git \
gnupg2 \
libssl-dev \
lsb-release \
python3-flake8 \
python3-flake8-blind-except \
python3-flake8-builtins \
Expand All @@ -33,11 +32,18 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
wget \
&& rm -rf /var/lib/apt/lists/*

# setup sources.list
RUN echo "deb http://packages.ros.org/ros2-testing/ubuntu jammy main" > /etc/apt/sources.list.d/ros2-testing.list

# setup keys
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
RUN set -eux; \
key='C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654'; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; \
mkdir -p /usr/share/keyrings; \
gpg --batch --export "$key" > /usr/share/keyrings/ros2-testing-archive-keyring.gpg; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME"

# setup sources.list
RUN echo "deb [ signed-by=/usr/share/keyrings/ros2-testing-archive-keyring.gpg ] http://packages.ros.org/ros2-testing/ubuntu jammy main" > /etc/apt/sources.list.d/ros2-testing.list

# install bootstrap tools
RUN apt-get update && apt-get install --no-install-recommends -y \
Expand Down
16 changes: 11 additions & 5 deletions ros2/source/devel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
bash-completion \
dirmngr \
gnupg2 \
lsb-release \
python3-flake8 \
python3-flake8-blind-except \
python3-flake8-builtins \
Expand All @@ -27,11 +26,18 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
python3-pytest-rerunfailures \
&& rm -rf /var/lib/apt/lists/*

# setup sources.list
RUN echo "deb http://packages.ros.org/ros2/ubuntu jammy main" > /etc/apt/sources.list.d/ros2-latest.list

# setup keys
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
RUN set -eux; \
key='C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654'; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; \
mkdir -p /usr/share/keyrings; \
gpg --batch --export "$key" > /usr/share/keyrings/ros2-latest-archive-keyring.gpg; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME"

# setup sources.list
RUN echo "deb [ signed-by=/usr/share/keyrings/ros2-latest-archive-keyring.gpg ] http://packages.ros.org/ros2/ubuntu jammy main" > /etc/apt/sources.list.d/ros2-latest.list

# setup environment
ENV LANG C.UTF-8
Expand Down
16 changes: 11 additions & 5 deletions ros2/testing/testing/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@ RUN echo 'Etc/UTC' > /etc/timezone && \
RUN apt-get update && apt-get install -q -y --no-install-recommends \
dirmngr \
gnupg2 \
lsb-release \
&& rm -rf /var/lib/apt/lists/*

# setup sources.list
RUN echo "deb http://packages.ros.org/ros2-testing/ubuntu jammy main" > /etc/apt/sources.list.d/ros2-testing.list

# setup keys
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
RUN set -eux; \
key='C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654'; \
export GNUPGHOME="$(mktemp -d)"; \
gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key"; \
mkdir -p /usr/share/keyrings; \
gpg --batch --export "$key" > /usr/share/keyrings/ros2-testing-archive-keyring.gpg; \
gpgconf --kill all; \
rm -rf "$GNUPGHOME"

# setup sources.list
RUN echo "deb [ signed-by=/usr/share/keyrings/ros2-testing-archive-keyring.gpg ] http://packages.ros.org/ros2-testing/ubuntu jammy main" > /etc/apt/sources.list.d/ros2-testing.list

# setup environment
ENV LANG C.UTF-8
Expand Down

0 comments on commit f90e7e8

Please sign in to comment.