Skip to content

Commit

Permalink
initial working jupyter with R
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed May 10, 2019
0 parents commit 8002d71
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
data
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
ARG BASE_CONTAINER=jupyter/minimal-notebook
FROM $BASE_CONTAINER

LABEL maintainer="David Blodgett <[email protected]>"

USER root

# Stole this from R travis
RUN apt-get update && \
apt-get -y install software-properties-common && \
add-apt-repository -y "ppa:marutter/rrutter3.5" && \
add-apt-repository -y "ppa:marutter/c2d4u3.5" && \
add-apt-repository -y "ppa:ubuntugis/ubuntugis-unstable" && \
apt-get update && \
apt-get install -y --no-install-recommends build-essential gcc g++ libblas-dev liblapack-dev libncurses5-dev libreadline-dev libjpeg-dev libpcre3-dev libpng-dev zlib1g-dev libbz2-dev liblzma-dev libicu-dev cdbs qpdf texinfo libssh2-1-dev gfortran libproj-dev libgeos-dev libgdal-dev r-base-core libudunits2-dev libssl-dev libgit2-dev

# Install additional R packages.
RUN Rscript -e 'install.packages(c("dataRetrieval", "sf", "RNetCDF", "tidyverse", "devtools", "rmarkdown", "IRkernel"), repos = "https://cloud.r-project.org")'

USER $NB_UID

RUN Rscript -e 'IRkernel::installspec()'
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
version: '3'

services:
docker_jupytr_training:
build: .
container_name: docker_jupyter_training
ports:
- "8888:8888"
volumes:
- ./workspace:/home/jovyan/work
1 change: 1 addition & 0 deletions workspace/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is where you scripts and data live.

0 comments on commit 8002d71

Please sign in to comment.