Dirk Eddelbuettel
2024-Jul-08 19:50 UTC
[R-sig-Debian] Issues with Ubuntu 22.04 and Installing the Latest Version of R (R 4.4.1) to Docker Image
On 8 July 2024 at 19:32, marcoblanchette at icloud.com wrote: | Oh, again, sorry for the spam but the problem Lauren is seeing is when she is | trying to sign the key. Installing gnugpg usually takes care of that problem. I am not sure about that. For jammy, my current (and used) rocker/r2u:jammy Dockerfile is https://github.com/rocker-org/r2u/blob/master/jammy/Dockerfile and it does what Laurent want (plus a bit more: r2u setup) but I have been traveling since she first emailed me and have not run it to confirm. Dirk -- dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
m@rcobi@@chette m@iii@g oii icioud@com
2024-Jul-08 21:01 UTC
[R-sig-Debian] Issues with Ubuntu 22.04 and Installing the Latest Version of R (R 4.4.1) to Docker Image
No sure why you?re doubting me but if one would like the minimal Dockerfile
following the CRAN recommendations at
https://cloud.r-project.org/bin/linux/ubuntu/, one would simply do
FROM ubuntu:22.04
USER root
ENV DEBIAN_FRONTEND noninteractive
## Configure Ubuntu for R install
RUN apt update \
&& apt install -y --no-install-recommends \
software-properties-common \
gnupg2 \
wget \
&& wget -q -O -
https://cloud.r-project.org/bin/linux/ubuntu/marutter_pubkey.asc \
| tee -a /etc/apt/trusted.gpg.d/cran_ubuntu_key.asc \
&& add-apt-repository -y "ppa:marutter/rrutter4.0"
## Install R
RUN apt update -y \
&& apt install -y r-base\
&& apt clean \
&& apt purge \
&& rm -rf /var/lib/apt/lists/* /tmp/*
Benefits of using Michael Rutter?s repo is nightly builds but importantly for
folks on dual architectures a built for both Amd64 and Arm64, which allows for
cross-building for different metal like folks doing development using docker on
Macs then pushing to cloud base resources using x86.
However, one would probably want to add a C/C++ compiler to the base (hence
build-essential) for downstream package installation as well as frequently used
libs in R packages (hence libcurl4-openssl-dev and libxml2-dev).
Just my 2 cents.
From: Dirk Eddelbuettel <edd at debian.org>
Date: Monday, July 8, 2024 at 12:50?PM
To: marcoblanchette at icloud.com <marcoblanchette at icloud.com>
Cc: Dirk Eddelbuettel <edd at debian.org>, Gerber, Lauren J
<lauren.gerber at helsinki.fi>, r-sig-debian at r-project.org
<r-sig-debian at r-project.org>
Subject: Re: [R-sig-Debian] Issues with Ubuntu 22.04 and Installing the Latest
Version of R (R 4.4.1) to Docker Image
On 8 July 2024 at 19:32, marcoblanchette at icloud.com wrote:
| Oh, again, sorry for the spam but the problem Lauren is seeing is when she is
| trying to sign the key. Installing gnugpg usually takes care of that problem.
I am not sure about that.
For jammy, my current (and used) rocker/r2u:jammy Dockerfile is
https://github.com/rocker-org/r2u/blob/master/jammy/Dockerfile
and it does what Laurent want (plus a bit more: r2u setup) but I have
been traveling since she first emailed me and have not run it to confirm.
Dirk
--
dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
[[alternative HTML version deleted]]
Maybe Matching Threads
- Issues with Ubuntu 22.04 and Installing the Latest Version of R (R 4.4.1) to Docker Image
- Issues with Ubuntu 22.04 and Installing the Latest Version of R (R 4.4.1) to Docker Image
- Issues with Ubuntu 22.04 and Installing the Latest Version of R (R 4.4.1) to Docker Image
- Issues with Ubuntu 22.04 and Installing the Latest Version of R (R 4.4.1) to Docker Image
- Issues with Ubuntu 22.04 and Installing the Latest Version of R (R 4.4.1) to Docker Image