Skip to content

Commit

Permalink
Setup P3M in webR Docker image
Browse files Browse the repository at this point in the history
We've tried this before, but had some issues. I think it's time we tried
this again because repeatedly compiling packages from source in the Docker
container takes a long time.

If this once again causes problems building packages we'll revert.
  • Loading branch information
georgestagg committed Dec 16, 2024
1 parent 792e69e commit 69d6b0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ RUN rig add 4.4.2 --without-pak
RUN /opt/R/current/bin/R -q -e 'install.packages("pak", lib = .Library)'
RUN /opt/R/current/bin/R -q -e 'pak::pak("r-wasm/rwasm", lib = .Library)'

# Setup P3M
RUN echo 'options(repos = c(CRAN = "https://packagemanager.posit.co/cran/__linux__/noble/latest"))' >> /root/.Rprofile

# Download webR and configure for LLVM flang
ARG WEBRCI_REPO="https://github.com/r-wasm/webr.git"
RUN git clone ${WEBRCI_REPO} /opt/webr
Expand Down

1 comment on commit 69d6b0b

@jeroen
Copy link
Contributor

@jeroen jeroen commented on 69d6b0b Jan 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't pak do this by default already?

Please sign in to comment.