Skip to content

Commit

Permalink
corrected devcontainer
Browse files Browse the repository at this point in the history
  • Loading branch information
InkaSpy committed Dec 12, 2024
1 parent 7be6e62 commit a41cdca
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
40 changes: 27 additions & 13 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
FROM r-base:4.3.2

ARG PROJECT_NAME
EXPOSE 3838

ARG R_REMOTES_NO_ERRORS_FROM_WARNINGS=false

RUN apt-get update \
&& apt-get install -y cmake

RUN wget https://github.com/jgm/pandoc/releases/download/2.11.4/pandoc-2.11.4-1-amd64.deb \
&& dpkg -i pandoc-2.11.4-1-amd64.deb \
&& rm pandoc-2.11.4-1-amd64.deb

&& apt-get install -y \
make \
cmake \
wget \
libcurl4-openssl-dev \
libssl-dev \
libxml2-dev \
libgsl-dev \
zlib1g-dev \
libfontconfig1-dev \
libfreetype6-dev \
libfribidi-dev \
libharfbuzz-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libicu-dev \
libx11-dev \
git \
libgit2-dev \
pandoc

RUN Rscript -e 'install.packages("remotes");remotes::install_cran(c("ARTool", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]","[email protected]", "[email protected]","[email protected]","[email protected]", "[email protected]"))'
# Install R packages
RUN Rscript -e 'install.packages("remotes")'
Run Rscript -e 'remotes::install_cran(c("ARTool", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]","[email protected]", "[email protected]","[email protected]","[email protected]", "[email protected]"))'
RUN Rscript -e 'install.packages("tidyr")'
RUN Rscript -e 'install.packages("jsonlite")'

USER 999:999
CMD ["R"]
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
}
},

"remoteUser": "root"

"postCreateCommand": "Rscript -e 'bspm::enable(); devtools::install()'"
}

0 comments on commit a41cdca

Please sign in to comment.