This is a Dockerfile for creating an RStudio server instance, including various packages that I find useful. It is based on the rocker/verse:latest image.
Intention is for this to be used to run RStudio server within an AWS EC2 instance, which is already running docker (need to check this also has git).
Want to be able to link files from the docker container to the EC2 instance, which in turn should be linked to
http://docs.aws.amazon.com/AmazonECS/latest/developerguide/docker-basics.html
Need to mount EBS volumne (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html)
#First time only need the following
sudo mkfs -t ext4 device_name
#Then:
sudo mount /dev/xvdb /data
sudo yum install -y docker
sudo service docker start
sudo usermod -a -G docker ec2-user
Log out and log back in again to pick up the new docker group permissions.
docker info
Clone this repo and build, then run, docker image
sudo yum install -y git
git clone git://github.com/nickforr/myrsetup.git rsetup
cd rsetup
docker build -t rsetup .
docker run -d -p 8787:8787 --name rsetup -v /data:/home/nickforr/ -e USER=nickforr -e PASSWORD=<password> rsetup