-
Notifications
You must be signed in to change notification settings - Fork 978
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
6782251
commit b0d9932
Showing
5 changed files
with
35 additions
and
4 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"build": { "dockerfile": "Dockerfile" } | ||
} |