mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 23:12:56 +00:00
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:
3
Makefile
3
Makefile
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user