Skip to content

Commit b6e451d

Browse files
authored
Merge pull request #1019 from g-braeunlich/master
buildpacks.r: dont use apt-key directly to respect *_proxy env vars
2 parents f8d386a + b66caf6 commit b6e451d

File tree

1 file changed

+2
-2
lines changed
  • repo2docker/buildpacks

1 file changed

+2
-2
lines changed

repo2docker/buildpacks/r.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,12 @@ def get_build_scripts(self):
247247
echo "deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran{vs}/" > /etc/apt/sources.list.d/r-ubuntu.list
248248
""",
249249
),
250-
# Use port 80 to talk to the keyserver to increase the chances
250+
# Dont use apt-key directly, as gpg does not always respect *_proxy vars. This increase the chances
251251
# of being able to reach it from behind a firewall
252252
(
253253
"root",
254254
r"""
255-
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9
255+
wget --quiet -O - 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xe298a3a825c0d65dfd57cbb651716619e084dab9' | apt-key add -
256256
""",
257257
),
258258
(

0 commit comments

Comments
 (0)