mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-05-08 03:24:41 +02:00
remove ipython there is an image ipython/notebook
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
parent
a8ffbbc9be
commit
72ab29184c
@ -1,35 +0,0 @@
|
||||
FROM python:2.7
|
||||
MAINTAINER Jessica Frazelle <jess@docker.com>
|
||||
|
||||
# install linear algebra dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
gfortran \
|
||||
libopenblas-dev \
|
||||
liblapack-dev \
|
||||
libzmq-dev \
|
||||
--no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN pip install -U \
|
||||
numpy \
|
||||
scipy \
|
||||
matplotlib \
|
||||
pandas \
|
||||
patsy \
|
||||
statsmodels \
|
||||
scikit-learn \
|
||||
ggplot \
|
||||
pyzmq \
|
||||
jinja2 \
|
||||
tornado \
|
||||
ipython
|
||||
|
||||
EXPOSE 8888
|
||||
|
||||
ADD notebook.sh /
|
||||
RUN chmod u+x /notebook.sh \
|
||||
&& mkdir -p /root/notebooks
|
||||
|
||||
WORKDIR /root/notebooks
|
||||
|
||||
CMD ["/notebook.sh"]
|
@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Strict mode
|
||||
IFS=$'\n\t'
|
||||
|
||||
if [[ -z "$PEM_FILE" ]]; then
|
||||
PEM_FILE=/key.pem
|
||||
fi
|
||||
|
||||
# Create a self signed certificate for the user if one doesn't exist
|
||||
if [[ ! -f $PEM_FILE ]]; then
|
||||
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout $PEM_FILE -out $PEM_FILE \
|
||||
-subj "/C=XX/ST=XX/L=XX/O=dockergenerated/CN=dockergenerated"
|
||||
fi
|
||||
|
||||
# Create the hash to pass to the IPython notebook, but don't export it so it doesn't appear
|
||||
# as an environment variable within IPython kernels themselves
|
||||
HASH=$(python -c "from IPython.lib import passwd; print passwd('${PASSWORD}')")
|
||||
unset PASSWORD
|
||||
|
||||
ipython notebook --pylab=inline --ip=* --no-browser --port 8888 --certfile=$PEM_FILE --NotebookApp.password="$HASH"
|
Loading…
x
Reference in New Issue
Block a user