[R-sig-Debian] Issues with Ubuntu 22.04 and Installing the Latest Version of R (R 4.4.1) to Docker Image

m@rcobi@@chette m@iii@g oii icioud@com m@rcobi@@chette m@iii@g oii icioud@com
Mon Jul 8 23:01:06 CEST 2024


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 using debian.org>
Date: Monday, July 8, 2024 at 12:50 PM
To: marcoblanchette using icloud.com <marcoblanchette using icloud.com>
Cc: Dirk Eddelbuettel <edd using debian.org>, Gerber, Lauren J <lauren.gerber using helsinki.fi>, r-sig-debian using r-project.org <r-sig-debian using 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 using 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 using debian.org

	[[alternative HTML version deleted]]



More information about the R-SIG-Debian mailing list