From 6ae7c0586df56dc47a3e546138297c691a8da07d Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Tue, 14 Dec 2021 18:38:02 +0530 Subject: [PATCH 1/2] Reach out to ubuntu keyserver on port 80 mybinder.org blocks outgoing port 400 (the default gpg keyserver port), so this image never builds there. ubuntu keyserver supports port 80 too, and we can explicitly mention it here so our builds work on mybinder.org --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index fa97ea8..5cab0e7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,7 +47,7 @@ RUN echo "${LC_ALL} UTF-8" > /etc/locale.gen && \ # littler, r-cran-mgcv, r-cran-survival, r-cran-matrix are specific packages needed # for apt to actually install the correct version of R 4.0.5 ENV R_VERSION=4.0.5-1.2004.0 -RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 +RUN apt-key adv --keyserver keyserver.ubuntu.com:80 --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 RUN echo "deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/" > /etc/apt/sources.list.d/cran.list RUN apt-get update -qq --yes > /dev/null && \ apt-get install --yes --no-install-recommends \ From 99b132e310643e01a5a39af77ef6ed216f26c4b9 Mon Sep 17 00:00:00 2001 From: YuviPanda Date: Tue, 14 Dec 2021 18:51:59 +0530 Subject: [PATCH 2/2] Try specifying port for Ubuntu keyserver --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5cab0e7..3175752 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,7 +47,7 @@ RUN echo "${LC_ALL} UTF-8" > /etc/locale.gen && \ # littler, r-cran-mgcv, r-cran-survival, r-cran-matrix are specific packages needed # for apt to actually install the correct version of R 4.0.5 ENV R_VERSION=4.0.5-1.2004.0 -RUN apt-key adv --keyserver keyserver.ubuntu.com:80 --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 +RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 RUN echo "deb https://cloud.r-project.org/bin/linux/ubuntu focal-cran40/" > /etc/apt/sources.list.d/cran.list RUN apt-get update -qq --yes > /dev/null && \ apt-get install --yes --no-install-recommends \