https://github.com/nickforr/rsetup
Manage a list of R packages I find useful
https://github.com/nickforr/rsetup
Last synced: 5 months ago
JSON representation
Manage a list of R packages I find useful
- Host: GitHub
- URL: https://github.com/nickforr/rsetup
- Owner: nickforr
- License: mit
- Created: 2017-04-12T08:17:53.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-26T22:16:12.000Z (almost 8 years ago)
- Last Synced: 2024-08-13T07:04:12.227Z (8 months ago)
- Size: 41 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - nickforr/rsetup - Manage a list of R packages I find useful (Others)
README
Docker for my R setup
=======================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)
```bash
#First time only need the following
sudo mkfs -t ext4 device_name
#Then:
sudo mount /dev/xvdb /data
``````bash
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.
```bash
docker info
```Clone this repo and build, then run, docker image
```bash
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= rsetup```