From 21eacffd91e6a0c6d1049e2b732980a750c9fa18 Mon Sep 17 00:00:00 2001 From: Woen-Sug Choi Date: Tue, 10 Sep 2024 09:34:51 +0900 Subject: [PATCH] add gpg key --- .docker/jazzy.amd64.dockerfile | 5 ++++- .docker/jazzy.arm64v8.dockerfile | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.docker/jazzy.amd64.dockerfile b/.docker/jazzy.amd64.dockerfile index aaabcbbd..7a685357 100644 --- a/.docker/jazzy.amd64.dockerfile +++ b/.docker/jazzy.amd64.dockerfile @@ -4,7 +4,10 @@ ARG BRANCH="ros2" # Install Utilities # hadolint ignore=DL3008 -RUN apt-get update && \ +ADD --chown=root:root --chmod=0644 https://raw.githubusercontent.com/osrf/osrf-rosdep/master/gz/00-gazebo.list /etc/ros/rosdep/sources.list.d/00-gazebo.list +RUN wget https://packages.osrfoundation.org/gazebo.gpg -O /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg \ + && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null \ + && apt-get update && \ apt-get install -y --no-install-recommends \ sudo xterm init systemd snapd vim net-tools \ curl wget git build-essential cmake cppcheck \ diff --git a/.docker/jazzy.arm64v8.dockerfile b/.docker/jazzy.arm64v8.dockerfile index e8ec6d46..69aae250 100644 --- a/.docker/jazzy.arm64v8.dockerfile +++ b/.docker/jazzy.arm64v8.dockerfile @@ -94,7 +94,10 @@ RUN bash install.sh ENV DEBIAN_FRONTEND=noninteractive ENV DEBCONF_NONINTERACTIVE_SEEN=true # hadolint ignore=DL3008 -RUN apt-get -q update && \ +ADD --chown=root:root --chmod=0644 https://raw.githubusercontent.com/osrf/osrf-rosdep/master/gz/00-gazebo.list /etc/ros/rosdep/sources.list.d/00-gazebo.list +RUN wget https://packages.osrfoundation.org/gazebo.gpg -O /usr/share/keyrings/pkgs-osrf-archive-keyring.gpg \ + && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/pkgs-osrf-archive-keyring.gpg] http://packages.osrfoundation.org/gazebo/ubuntu-stable $(lsb_release -cs) main" | tee /etc/apt/sources.list.d/gazebo-stable.list > /dev/null \ + && apt-get -q update && \ apt-get install -y --no-install-recommends \ python-is-python3 python3-future python3-wxgtk4.0 python3-pexpect \ libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \