Skip to content

Commit

Permalink
Use ghcr.io/rocker-org/devcontainer-features/r-rig to install packa…
Browse files Browse the repository at this point in the history
…ges (#27)
  • Loading branch information
eitsupi authored Oct 10, 2022
1 parent 88c61e3 commit 6423bbc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
8 changes: 8 additions & 0 deletions src/r-ver/.devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@
"uid": "1000",
"gid": "1000",
"upgradePackages": "true"
},
"ghcr.io/rocker-org/devcontainer-features/r-rig:0": {
"version": "none",
"vscodeRSupport": "full",
"installDevTools": true,
"installRMarkdown": true,
"installRadian": true,
"installVscDebugger": true
}
},
"remoteUser": "rstudio",
Expand Down
27 changes: 1 addition & 26 deletions src/r-ver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,6 @@ ARG VARIANT=4
ARG BASE_IMAGE=rocker/r-ver
FROM ${BASE_IMAGE}:${VARIANT}

RUN /rocker_scripts/default_user.sh \
&& apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install \
python3-pip \
libgit2-dev \
libcurl4-openssl-dev \
libxml2-dev \
libssl-dev \
libfontconfig1-dev \
libcairo2-dev \
libharfbuzz-dev \
libfribidi-dev \
libfreetype6-dev \
libpng-dev \
libtiff5-dev \
libjpeg-dev \
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* \
&& python3 -m pip --no-cache-dir install \
radian \
&& install2.r --error --skipinstalled --ncpus -1 \
devtools \
httpgd \
languageserver \
&& rm -rf /tmp/downloaded_packages \
&& strip /usr/local/lib/R/site-library/*/libs/*.so \
&& R -q -e 'remotes::install_github("ManuelHentschel/vscDebugger@*release", dependencies = FALSE)'
RUN /rocker_scripts/default_user.sh

COPY --chown=rstudio:rstudio assets/rstudio-prefs.json /home/rstudio/.config/rstudio/

0 comments on commit 6423bbc

Please sign in to comment.