mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-11 03:52:56 +00:00

* Always remain as root during install * Put kernel specs in system path, not user home * Create user work directory at startup * Note this is in 4.0 and up images, not 3.2 Contribution (c) Copyright IBM Corp. 2015
51 lines
1.7 KiB
Docker
51 lines
1.7 KiB
Docker
# Copyright (c) Jupyter Development Team.
|
|
FROM jupyter/minimal-notebook
|
|
|
|
MAINTAINER Jupyter Project <jupyter@googlegroups.com>
|
|
|
|
# Spark dependencies
|
|
ENV APACHE_SPARK_VERSION 1.4.1
|
|
RUN apt-get -y update && \
|
|
apt-get install -y --no-install-recommends openjdk-7-jre-headless && \
|
|
apt-get clean
|
|
RUN wget -qO - http://d3kbcqa49mib13.cloudfront.net/spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6.tgz | tar -xz -C /usr/local/
|
|
RUN cd /usr/local && ln -s spark-${APACHE_SPARK_VERSION}-bin-hadoop2.6 spark
|
|
|
|
# Mesos dependencies
|
|
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv E56151BF && \
|
|
DISTRO=debian && \
|
|
CODENAME=wheezy && \
|
|
echo "deb http://repos.mesosphere.io/${DISTRO} ${CODENAME} main" > /etc/apt/sources.list.d/mesosphere.list && \
|
|
apt-get -y update && \
|
|
apt-get --no-install-recommends -y --force-yes install mesos=0.22.1-1.0.debian78 && \
|
|
apt-get clean
|
|
|
|
# Spark and Mesos pointers
|
|
ENV SPARK_HOME /usr/local/spark
|
|
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
|
|
|
|
# Install Python 3 packages
|
|
RUN conda install --yes \
|
|
'ipywidgets=4.0*' \
|
|
'pandas=0.16*' \
|
|
'matplotlib=1.4*' \
|
|
'scipy=0.15*' \
|
|
'seaborn=0.6*' \
|
|
'scikit-learn=0.16*' \
|
|
&& conda clean -yt
|
|
|
|
# Install Python 2 packages and kernel spec
|
|
RUN conda create -p $CONDA_DIR/envs/python2 python=2.7 \
|
|
'ipython=4.0*' \
|
|
'ipywidgets=4.0*' \
|
|
'pandas=0.16*' \
|
|
'matplotlib=1.4*' \
|
|
'scipy=0.15*' \
|
|
'seaborn=0.6*' \
|
|
'scikit-learn=0.16*' \
|
|
pyzmq \
|
|
&& conda clean -yt
|
|
RUN $CONDA_DIR/envs/python2/bin/python \
|
|
$CONDA_DIR/envs/python2/bin/ipython \
|
|
kernelspec install-self |