-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 908721d
Showing
7 changed files
with
845 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
FROM ubuntu | ||
|
||
RUN echo 'deb http://archive.ubuntu.com/ubuntu precise main universe' > /etc/apt/sources.list && \ | ||
echo 'deb http://archive.ubuntu.com/ubuntu precise-updates universe' >> /etc/apt/sources.list && \ | ||
apt-get update | ||
|
||
#Prevent daemon start during install | ||
RUN dpkg-divert --local --rename --add /sbin/initctl && ln -s /bin/true /sbin/initctl | ||
|
||
#Supervisord | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y supervisor && mkdir -p /var/log/supervisor | ||
CMD ["/usr/bin/supervisord", "-n"] | ||
|
||
#SSHD | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y openssh-server && mkdir /var/run/sshd && \ | ||
echo 'root:root' |chpasswd | ||
|
||
#Utilities | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y vim less net-tools inetutils-ping curl git telnet nmap socat dnsutils netcat | ||
|
||
#Required by Python packages | ||
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential python-dev python-pip liblapack-dev libatlas-dev gfortran libfreetype6-dev libpng-dev libjpeg8-dev build-dep python-lxml libyaml-dev | ||
|
||
#IPython | ||
RUN pip install -U ipython | ||
#Pandas | ||
RUN pip install -U pandas | ||
#Pandas Optional | ||
RUN pip install -U distribute | ||
RUN pip install -U cython | ||
RUN pip install -U jinja2 pyzmq tornado | ||
RUN pip install -U numexpr bottleneck scipy matplotlib sympy pymc | ||
RUN pip install -U patsy statsmodels | ||
RUN pip install -U beautifulsoup4 html5lib | ||
#Pattern | ||
RUN pip install -U pattern | ||
#NLTK | ||
RUN pip install -U pyyaml nltk | ||
|
||
ENV IPYTHONDIR /ipython | ||
RUN mkdir /ipython && \ | ||
ipython profile create nbserver | ||
|
||
ADD supervisord-ssh.conf /etc/supervisor/conf.d/ | ||
ADD supervisord-ipython.conf /etc/supervisor/conf.d/ | ||
|
||
EXPOSE 22 8888 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker build -t ipython . |
Oops, something went wrong.