Skip to content

Commit

Permalink
Switch to PPA for now
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Apr 30, 2024
1 parent 9e1989b commit 04eefce
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ubuntu/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM ubuntu:jammy
FROM ubuntu:noble

RUN \
apt-get update && \
apt-get -y dist-upgrade && \
apt-get install -y apt-utils curl software-properties-common dirmngr && \
curl 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 "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/" && \
# curl 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 "deb https://cloud.r-project.org/bin/linux/ubuntu $(lsb_release -cs)-cran40/" && \
add-apt-repository -y ppa:marutter/rrutter4.0 && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get -yq install r-base-dev language-pack-en-base cloc curl parallel vim wget debian-keyring &&\
apt-get clean
Expand Down Expand Up @@ -35,7 +36,7 @@ RUN useradd docker \

## Set RSPM as the default repo to get precompiled packages
RUN RPROFILE=$(R RHOME)/etc/Rprofile.site && \
echo 'options(repos = c(CRAN = "https://p3m.dev/cran/__linux__/jammy/latest"))' >> "$RPROFILE" && \
echo 'options(repos = c(CRAN = "https://p3m.dev/cran/__linux__/noble/latest"))' >> "$RPROFILE" && \
echo 'options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version$platform, R.version$arch, R.version$os)))' >> "$RPROFILE"

CMD ["R"]

0 comments on commit 04eefce

Please sign in to comment.