Skip to content

Commit

Permalink
add multiple containers
Browse files Browse the repository at this point in the history
add symlinks

add RUN

use echo to create .Rprofile

add workdir

symlink + echo

add dependencies for check

add char vec

update echo

update dockerfile

fix FROM

update dirs

use rocker image

rollback to jans clang image

change docker order

change flags

update makevars

update flags

add workdir

change C version

clang working

rm local .Rprofile
  • Loading branch information
ben-schwen committed Dec 21, 2023
1 parent 6782251 commit b0d9932
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .devcontainer/Dockerfile

This file was deleted.

19 changes: 19 additions & 0 deletions .devcontainer/r-devel-clang-ubsan/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM registry.gitlab.com/jangorecki/dockerfiles/r-devel-clang

RUN apt-get -qq update \
&& apt-get install -y --no-install-recommends git

# install dependencies without ubsan flags
RUN Rscript -e 'install.packages(c("bit64", "bit", "R.utils", "xts", "zoo", "yaml", "knitr", "markdown"))'

# setup cc()
WORKDIR /workspaces/data.table

RUN ln -s /workspaces ~/GitHub
RUN echo 'Sys.setenv(PROJ_PATH="/workspaces/data.table")\nsource(".dev/cc.R")' >> /workspaces/data.table/.Rprofile

# set ubsan flags
RUN mkdir -p ~/.R \
&& echo 'CC=clang -fsanitize=undefined -fno-omit-frame-pointer' > ~/.R/Makevars \
&& echo 'CXX=clang++ -stdlib=libc++ -fsanitize=undefined -fno-omit-frame-pointer' >> ~/.R/Makevars \
&& echo 'LDFLAGS=-L/usr/local/clang/lib64 -L/usr/local/lib64 -lubsan' >> ~/.R/Makevars
File renamed without changes.
13 changes: 13 additions & 0 deletions .devcontainer/r-devel-gcc/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM registry.gitlab.com/jangorecki/dockerfiles/r-devel-gcc

RUN apt-get -qq update \
&& apt-get install -y --no-install-recommends git

# install dependencies without ubsan flags
RUN Rscript -e 'install.packages(c("bit64", "bit", "R.utils", "xts", "zoo", "yaml", "knitr", "markdown"))'

# setup cc()
WORKDIR /workspaces/data.table

RUN ln -s /workspaces ~/GitHub
RUN echo 'Sys.setenv(PROJ_PATH="/workspaces/data.table")\nsource(".dev/cc.R")' >> /workspaces/data.table/.Rprofile
3 changes: 3 additions & 0 deletions .devcontainer/r-devel-gcc/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"build": { "dockerfile": "Dockerfile" }
}

0 comments on commit b0d9932

Please sign in to comment.