Reference
https://hub.docker.com/r/rocker/tidyverse/dockerfile
https://github.com/rocker-org/rocker/wiki/Using-the-RStudio-image
1. Create empty folder on host machine
2. Create Dockerfile with no extension.
3. Copy paste the following commands
FROM rocker/rstudio
COPY main/ /main/
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
libxml2-dev \
libcairo2-dev \
libsqlite3-dev \
libmariadbd-dev \
libmariadb-client-lgpl-dev \
libpq-dev \
libssh2-1-dev \
unixodbc-dev \
libsasl2-dev
4. Make sure the folder main is in the empty folder. This should container the folder structure which you want
4. In the terminal run [Dont forget the "." at the end]
docker build -t image_name .
5. After image is set up, run the image. The ROOT=TRUE argument is optional
docker run -e PASSWORD=hamada -e ROOT=TRUE -p 8787:8787 image_name
6. open in browser 127.0.0.1:8787
7. log in to rstudio and install all the needed libraries from rstudio
install.packages("data.table")
https://hub.docker.com/r/rocker/tidyverse/dockerfile
https://github.com/rocker-org/rocker/wiki/Using-the-RStudio-image
1. Create empty folder on host machine
2. Create Dockerfile with no extension.
3. Copy paste the following commands
FROM rocker/rstudio
COPY main/ /main/
RUN apt-get update -qq && apt-get -y --no-install-recommends install \
libxml2-dev \
libcairo2-dev \
libsqlite3-dev \
libmariadbd-dev \
libmariadb-client-lgpl-dev \
libpq-dev \
libssh2-1-dev \
unixodbc-dev \
libsasl2-dev
4. Make sure the folder main is in the empty folder. This should container the folder structure which you want
4. In the terminal run [Dont forget the "." at the end]
docker build -t image_name .
5. After image is set up, run the image. The ROOT=TRUE argument is optional
docker run -e PASSWORD=hamada -e ROOT=TRUE -p 8787:8787 image_name
6. open in browser 127.0.0.1:8787
7. log in to rstudio and install all the needed libraries from rstudio
install.packages("data.table")
No comments:
Post a Comment