- Docker RStudio sever with Bioconductor
git clone https://github.com/achiral/rprot.git
cd ./rprot
- change Docker image (ex.
achiral/rbioc:latest
=>FROM docker-ID/docker-image:latest
) - install R packages (see below exampe codes)
RUN install2.r pkgname1 pkgname2
RUN Rscript -e "install.packages('vector_of_package_names')"
RUN Rscript -e 'BiocManager::install("vector_of_package_names")'
- rename Docker image (ex.
image: docker-ID/docker-image:latest
) - rename Docker container (ex.
container_name: docker-ID/docker-container:latest
)
- change password (ex.
pw
=><your_password>
) - change environment option: (
- DISABLE_AUTH=true
=>false
(activate password sign in))
docker-compose up --build -d
open http://localhost:8787/
(rstudio
/pw
(default) or <your_password>
)
docker-compose stop
(or docker-compose down
)
docker-compose start
without update (stopped docker container with docker-compose stop
)
docker-compose up --build -d
with update (stopped docker container with docker-compose down
)
docker cp <host directory> <container name>:<container ditectory>
(ex. docker cp /Users/user/Dropbox/data/. rprot:/home/rstudio/rproject/data/
)
docker cp <container name>:<container directory> <host directory>