Add system prereqs for R to all-spark-notebook

* Copy/paste from r-notebook
* Also add PORT option to make dev target for easy of testing

(c) Copyright IBM Corp. 2015
This commit is contained in:
Peter Parente
2015-10-22 21:20:44 -04:00
parent 945db0f8fd
commit 41222b047c
2 changed files with 10 additions and 1 deletions

View File

@@ -27,8 +27,9 @@ build/%:
dev/%: ARGS?=
dev/%: DARGS?=
dev/%: PORT?=8888
dev/%:
docker run -it --rm -p 8888:8888 $(DARGS) $(OWNER)/$(notdir $@) $(ARGS)
docker run -it --rm -p $(PORT):8888 $(DARGS) $(OWNER)/$(notdir $@) $(ARGS)
environment-check:
test -e ~/.docker-stacks-builder

View File

@@ -49,6 +49,14 @@ ENV R_LIBS_USER $SPARK_HOME/R/lib
ENV PYTHONPATH $SPARK_HOME/python:$SPARK_HOME/python/lib/py4j-0.8.2.1-src.zip
ENV MESOS_NATIVE_LIBRARY /usr/local/lib/libmesos.so
# R pre-requisites
RUN apt-get update && \
apt-get install -y --no-install-recommends \
libxrender1 \
fonts-dejavu \
gfortran \
gcc && apt-get clean
USER jovyan
# Install Python 3 packages