From 2cdee5dc229d6392a00f7ed0756dab624b9c58fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Tue, 15 Oct 2024 05:24:36 +0200 Subject: [PATCH] Add rig-ubuntu24 --- README.md | 4 ++++ rig-ubuntu24/Dockerfile | 24 ++++++++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 rig-ubuntu24/Dockerfile diff --git a/README.md b/README.md index c486ca6..b4d8387 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,10 @@ FIXME FIXME +### [rig-ubuntu24](rig-ubuntu24) + +Ubuntu 24.04 with rig. + ### [rigraph-san](rigraph-san) FIXME diff --git a/rig-ubuntu24/Dockerfile b/rig-ubuntu24/Dockerfile new file mode 100644 index 0000000..5ad235d --- /dev/null +++ b/rig-ubuntu24/Dockerfile @@ -0,0 +1,24 @@ +# Before changing this to 24.04, check if pak install from binary +FROM ubuntu:24.04 + +RUN apt-get update && apt-get install -y curl sudo locales ccache + +# https://stackoverflow.com/a/28406007/946850 +RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \ + locale-gen + +ENV LANG=en_US.UTF-8 + +ENV LANGUAGE=en_US:en + +ENV LC_ALL=en_US.UTF-8 + +RUN /usr/sbin/update-ccache-symlinks + +RUN curl -Ls https://github.com/r-lib/rig/releases/download/latest/rig-linux-latest.tar.gz | sudo tar xz -C /usr/local + +RUN mkdir /root/.R && echo 'MAKEFLAGS=-j4' > /root/.R/Makevars + +RUN rig add release && rig add devel + +WORKDIR /root/workspace