diff --git a/.Rprofile b/.Rprofile new file mode 100644 index 0000000..1b3f2f7 --- /dev/null +++ b/.Rprofile @@ -0,0 +1,2 @@ +.libPaths( c("~/Rlibs",.libPaths()) ) +options(repos = c(CRAN = "https://mran.revolutionanalytics.com/snapshot/2019-12-17")) \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index d371ba3..8569a14 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,12 @@ FROM rocker/shiny-verse WORKDIR /srv/shiny-server/ -RUN wget https://github.com/open-ams/radar/archive/v0.1.zip -RUN unzip v0.1.zip -RUN mv radar-0.1 radar -RUN rm v0.1.zip -RUN R < /srv/shiny-server/radar/dependencies.R -COPY shiny-server.conf /etc/shiny-server/shiny-server.conf \ No newline at end of file +RUN wget https://github.com/open-ams/radar/archive/v0.2.zip +RUN unzip v0.2.zip +RUN mv radar-0.2 radar +RUN rm v0.2.zip +COPY shiny-server.conf /etc/shiny-server/shiny-server.conf +USER shiny +RUN mkdir /home/shiny/Rlibs +RUN mkdir /home/shiny/.checkpoint +COPY .Rprofile /home/shiny/.Rprofile +RUN R < /srv/shiny-server/radar/dependencies.R \ No newline at end of file diff --git a/README.md b/README.md index 7e68eba..4a39a82 100644 --- a/README.md +++ b/README.md @@ -9,8 +9,7 @@ A docker image to run the [RadaR](https://github.com/open-ams/radar) project. Assuming your working directory is the root of this repository ``` -docker build -t radar . -docker run --name=radar -p 3838:3838 --mount source=data,target=/srv/shiny-server/radar/data radar +docker run --name=radar -p 3838:3838 --mount type=bind,source="$(pwd)"/data,target=/srv/shiny-server/radar/data openams/radar ``` # Data files