Skip to content

Commit 3ddf60a

Browse files
authored
Merge pull request #810 from osrf/encode_version_and_sha_deploy
Explicitly encode apt keys 1.1.0 and their checksums in the Dockerfile at generation time
2 parents 13a4d90 + 42a027a commit 3ddf60a

File tree

5 files changed

+25
-25
lines changed

5 files changed

+25
-25
lines changed

ros/humble/ubuntu/jammy/ros-core/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
1818
&& rm -rf /var/lib/apt/lists/*
1919

2020

21-
# NOTE: this doesnt deal with snapshots repo as not clear what to install for those..
22-
# NOTE: How do we break cache and ensure rebuild if that version changes ?
23-
RUN export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}') ;\
24-
curl -L -s -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo $VERSION_CODENAME)_all.deb" \
21+
# Setup ROS Apt sources
22+
RUN curl -L -s -o /tmp/ros2-apt-source.deb https://github.com/ros-infrastructure/ros-apt-source/releases/download/1.1.0/ros2-apt-source_1.1.0.jammy_all.deb \
23+
&& echo "1600cb8cc28258a39bffc1736a75bcbf52d1f2db371a4d020c1b187d2a5a083b /tmp/ros2-apt-source.deb" | sha256sum --strict --check \
2524
&& apt-get update \
2625
&& apt-get install /tmp/ros2-apt-source.deb \
27-
&& rm -f /tmp/ros2-apt-source.deb
26+
&& rm -f /tmp/ros2-apt-source.deb \
27+
&& rm -rf /var/lib/apt/lists/*
2828

2929
# setup environment
3030
ENV LANG=C.UTF-8

ros/jazzy/ubuntu/noble/ros-core/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
1818
&& rm -rf /var/lib/apt/lists/*
1919

2020

21-
# NOTE: this doesnt deal with snapshots repo as not clear what to install for those..
22-
# NOTE: How do we break cache and ensure rebuild if that version changes ?
23-
RUN export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}') ;\
24-
curl -L -s -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo $VERSION_CODENAME)_all.deb" \
21+
# Setup ROS Apt sources
22+
RUN curl -L -s -o /tmp/ros2-apt-source.deb https://github.com/ros-infrastructure/ros-apt-source/releases/download/1.1.0/ros2-apt-source_1.1.0.noble_all.deb \
23+
&& echo "35441f3092fd05773a3c397fab38661bec466584c7a1f1c05366579997cb5fe7 /tmp/ros2-apt-source.deb" | sha256sum --strict --check \
2524
&& apt-get update \
2625
&& apt-get install /tmp/ros2-apt-source.deb \
27-
&& rm -f /tmp/ros2-apt-source.deb
26+
&& rm -f /tmp/ros2-apt-source.deb \
27+
&& rm -rf /var/lib/apt/lists/*
2828

2929
# setup environment
3030
ENV LANG=C.UTF-8

ros/kilted/ubuntu/noble/ros-core/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
1818
&& rm -rf /var/lib/apt/lists/*
1919

2020

21-
# NOTE: this doesnt deal with snapshots repo as not clear what to install for those..
22-
# NOTE: How do we break cache and ensure rebuild if that version changes ?
23-
RUN export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}') ;\
24-
curl -L -s -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo $VERSION_CODENAME)_all.deb" \
21+
# Setup ROS Apt sources
22+
RUN curl -L -s -o /tmp/ros2-apt-source.deb https://github.com/ros-infrastructure/ros-apt-source/releases/download/1.1.0/ros2-apt-source_1.1.0.noble_all.deb \
23+
&& echo "35441f3092fd05773a3c397fab38661bec466584c7a1f1c05366579997cb5fe7 /tmp/ros2-apt-source.deb" | sha256sum --strict --check \
2524
&& apt-get update \
2625
&& apt-get install /tmp/ros2-apt-source.deb \
27-
&& rm -f /tmp/ros2-apt-source.deb
26+
&& rm -f /tmp/ros2-apt-source.deb \
27+
&& rm -rf /var/lib/apt/lists/*
2828

2929
# setup environment
3030
ENV LANG=C.UTF-8

ros/rolling/ubuntu/noble/ros-core/Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ RUN apt-get update && apt-get install -q -y --no-install-recommends \
1818
&& rm -rf /var/lib/apt/lists/*
1919

2020

21-
# NOTE: this doesnt deal with snapshots repo as not clear what to install for those..
22-
# NOTE: How do we break cache and ensure rebuild if that version changes ?
23-
RUN export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F\" '{print $4}') ;\
24-
curl -L -s -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo $VERSION_CODENAME)_all.deb" \
21+
# Setup ROS Apt sources
22+
RUN curl -L -s -o /tmp/ros2-apt-source.deb https://github.com/ros-infrastructure/ros-apt-source/releases/download/1.1.0/ros2-apt-source_1.1.0.noble_all.deb \
23+
&& echo "35441f3092fd05773a3c397fab38661bec466584c7a1f1c05366579997cb5fe7 /tmp/ros2-apt-source.deb" | sha256sum --strict --check \
2524
&& apt-get update \
2625
&& apt-get install /tmp/ros2-apt-source.deb \
27-
&& rm -f /tmp/ros2-apt-source.deb
26+
&& rm -f /tmp/ros2-apt-source.deb \
27+
&& rm -rf /var/lib/apt/lists/*
2828

2929
# setup environment
3030
ENV LANG=C.UTF-8

ros/ros

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ GitRepo: https://github.com/osrf/docker_images.git
99

1010
Tags: noetic-ros-core, noetic-ros-core-focal
1111
Architectures: amd64, arm32v7, arm64v8
12-
GitCommit: 6610eeddd6026e93db33578f6967bac23fa21ac0
12+
GitCommit: b525e9ef659ce448db6150fd5407ef62b2c5b265
1313
Directory: ros/noetic/ubuntu/focal/ros-core
1414

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

3737
Tags: humble-ros-core, humble-ros-core-jammy
3838
Architectures: amd64, arm64v8
39-
GitCommit: 6610eeddd6026e93db33578f6967bac23fa21ac0
39+
GitCommit: eb5634cf92ba079897e44fb7541d3b78aa6cf717
4040
Directory: ros/humble/ubuntu/jammy/ros-core
4141

4242
Tags: humble-ros-base, humble-ros-base-jammy, humble
@@ -58,7 +58,7 @@ Directory: ros/humble/ubuntu/jammy/perception
5858

5959
Tags: jazzy-ros-core, jazzy-ros-core-noble
6060
Architectures: amd64, arm64v8
61-
GitCommit: 6610eeddd6026e93db33578f6967bac23fa21ac0
61+
GitCommit: eb5634cf92ba079897e44fb7541d3b78aa6cf717
6262
Directory: ros/jazzy/ubuntu/noble/ros-core
6363

6464
Tags: jazzy-ros-base, jazzy-ros-base-noble, jazzy, latest
@@ -80,7 +80,7 @@ Directory: ros/jazzy/ubuntu/noble/perception
8080

8181
Tags: kilted-ros-core, kilted-ros-core-noble
8282
Architectures: amd64, arm64v8
83-
GitCommit: 6610eeddd6026e93db33578f6967bac23fa21ac0
83+
GitCommit: eb5634cf92ba079897e44fb7541d3b78aa6cf717
8484
Directory: ros/kilted/ubuntu/noble/ros-core
8585

8686
Tags: kilted-ros-base, kilted-ros-base-noble, kilted
@@ -102,7 +102,7 @@ Directory: ros/kilted/ubuntu/noble/perception
102102

103103
Tags: rolling-ros-core, rolling-ros-core-noble
104104
Architectures: amd64, arm64v8
105-
GitCommit: 6610eeddd6026e93db33578f6967bac23fa21ac0
105+
GitCommit: eb5634cf92ba079897e44fb7541d3b78aa6cf717
106106
Directory: ros/rolling/ubuntu/noble/ros-core
107107

108108
Tags: rolling-ros-base, rolling-ros-base-noble, rolling

0 commit comments

Comments
 (0)