Sign inSign up

cpgonzal/docker-rshiny

By cpgonzal

•Updated over 9 years ago

R Shiny Dockerfile for trusted automated docker builds.

Image
0

10K+

cpgonzal/docker-rshiny repository overview

⁠Rshiny Dockerfile

This repository contains Dockerfile for Docker⁠'s automated build⁠ published to the public Docker Hub Registry⁠.

⁠Base Docker Image
⁠Installation
  1. Install Docker⁠.

  2. Download automated build⁠ from public Docker Hub Registry⁠: docker pull cpgonzal/docker-rshiny

    (alternatively, you can build an image from Dockerfile: docker build -t="cpgonzal/docker-rshiny" github.com/cpgonzal/docker-rshiny)

⁠Run cpgonzal/docker-rshiny container with persistent shared directories
# ONLY THE FIRST TIME TO INSTALL REQUIRED R LIBRARIES
docker run --rm --name rshiny-dock -e USERID=`id -u $USER` -v <data-dir>:/data -v <libraries-dir>:/libraries cpgonzal/docker-rshiny &
docker exec -it -u rshiny rshiny-dock /bin/bash /usr/local/lib/R/etc/install_pkgs.sh
docker stop rshiny-dock

# NEXT TIME 
docker run --rm --name rshiny-doc -p 3838:3838 -e USERID=`id -u $USER` -e PORT=3838 -v <data-dir>:/data -v <libraries-dir>:/libraries cpgonzal/docker-rshiny &
# open http://<ip-address>:3838
docker inspect -f '{{.Name}} - {{.NetworkSettings.IPAddress }}' $(docker ps -aq)  

Tag summary

Content type

Image

Digest

Size

432.9 MB

Last updated

over 9 years ago

docker pull cpgonzal/docker-rshiny