Skip to content

Commit

Permalink
updated to ubuntu 14.04, use runit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ming Fang committed Jul 13, 2014
1 parent c82c8af commit ffb659c
Show file tree
Hide file tree
Showing 15 changed files with 1,476 additions and 143 deletions.
49 changes: 30 additions & 19 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
FROM ubuntu
FROM ubuntu:14.04

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
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update

#Supervisord
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y supervisor && mkdir -p /var/log/supervisor
CMD ["/usr/bin/supervisord", "-n"]
#Runit
RUN apt-get install -y runit
CMD /usr/sbin/runsvdir-start

#SSHD
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y openssh-server && mkdir /var/run/sshd && \
echo 'root:root' |chpasswd
RUN apt-get install -y openssh-server && \
mkdir -p /var/run/sshd && \
echo 'root:root' |chpasswd
RUN sed -i "s/session.*required.*pam_loginuid.so/#session required pam_loginuid.so/" /etc/pam.d/sshd
RUN sed -i "s/PermitRootLogin without-password/#PermitRootLogin without-password/" /etc/ssh/sshd_config

#Utilities
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y vim less net-tools inetutils-ping curl git telnet nmap socat dnsutils netcat
RUN apt-get install -y vim less net-tools inetutils-ping curl git telnet nmap socat dnsutils netcat tree htop unzip sudo software-properties-common

#Required by Python packages
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential python-dev python-pip liblapack-dev libatlas-dev gfortran libfreetype6 libfreetype6-dev libpng12-dev python-lxml libyaml-dev g++ libffi-dev
Expand All @@ -30,30 +32,42 @@ RUN cd /tmp && \
#Upgrade pip
RUN pip install -U setuptools
RUN pip install -U pip

#matplotlib needs latest distribute
RUN pip install -U distribute

#IPython
RUN pip install ipython
ENV IPYTHONDIR /ipython
RUN mkdir /ipython && \
ipython profile create nbserver

#NumPy v1.7.1 is required for Numba
RUN pip install numpy==1.7.1

#Pandas
RUN pip install pandas

#Optional
RUN pip install cython
RUN pip install jinja2 pyzmq tornado
RUN pip install numexpr bottleneck scipy pygments matplotlib sympy pymc
RUN pip install numexpr bottleneck scipy pygments
RUN apt-get install pkg-config
RUN pip install matplotlib
RUN pip install sympy pymc
RUN pip install patsy
RUN pip install statsmodels
RUN pip install beautifulsoup4 html5lib

#Pattern
RUN pip install --allow-external pattern

#NLTK
RUN pip install pyyaml nltk

#Networkx
RUN pip install networkx

#LLVM and Numba
RUN cd /tmp && \
wget http://llvm.org/releases/3.2/llvm-3.2.src.tar.gz && \
Expand All @@ -64,13 +78,15 @@ RUN cd /tmp && \
pip install llvmpy && \
pip install llvmmath && \
pip install numba

#Biopython
RUN pip install biopython

#Bokeh
#RUN pip install requests bokeh

#Install R 3+
RUN echo 'deb http://cran.rstudio.com/bin/linux/ubuntu precise/' > /etc/apt/sources.list.d/r.list
RUN echo 'deb http://cran.rstudio.com/bin/linux/ubuntu trusty/' > /etc/apt/sources.list.d/r.list
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E084DAB9
RUN apt-get update
RUN apt-get install -y r-base
Expand All @@ -80,10 +96,5 @@ RUN pip install rpy2
#Vincent
RUN pip install vincent

ADD supervisord-ssh.conf /etc/supervisor/conf.d/
ADD supervisord-ipython.conf /etc/supervisor/conf.d/

EXPOSE 22 8888

#Cleanup
RUN rm -rf /tmp/*
#Add runit services
ADD sv /etc/service
Loading

0 comments on commit ffb659c

Please sign in to comment.