From 16c85e6aca353b886f1d41684eac5b51aebb4bf7 Mon Sep 17 00:00:00 2001 From: Michael Crosby Date: Sat, 17 Aug 2013 07:41:58 -0700 Subject: [PATCH] Add new cookbooks for python projects --- cloud9/Dockerfile | 2 -- django/Dockerfile | 6 ++++++ ipython/Dockerfile | 17 +++++++++++++++++ python/Dockerfile | 23 +++++++++++++++++++++++ redis/Dockerfile | 2 -- rethinkdb/Dockerfile | 2 -- sentry/Dockerfile | 6 +----- stash/Dockerfile | 4 ---- 8 files changed, 47 insertions(+), 15 deletions(-) create mode 100644 django/Dockerfile create mode 100644 ipython/Dockerfile create mode 100644 python/Dockerfile diff --git a/cloud9/Dockerfile b/cloud9/Dockerfile index c8ea416..4a0e8be 100644 --- a/cloud9/Dockerfile +++ b/cloud9/Dockerfile @@ -2,8 +2,6 @@ FROM shykes/nodejs -MAINTAINER Michael Crosby - RUN apt-get update RUN apt-get upgrade diff --git a/django/Dockerfile b/django/Dockerfile new file mode 100644 index 0000000..644f8b2 --- /dev/null +++ b/django/Dockerfile @@ -0,0 +1,6 @@ +FROM crosbymichael/python + +RUN pip install psycopg2 +RUN pip install django + +EXPOSE 8080 diff --git a/ipython/Dockerfile b/ipython/Dockerfile new file mode 100644 index 0000000..8f3a2dd --- /dev/null +++ b/ipython/Dockerfile @@ -0,0 +1,17 @@ +FROM crosbymichael/python + +RUN apt-get update +RUN apt-get install -y libfreetype6 libfreetype6-dev +RUN apt-get install -y python-imaging libpng-dev +RUN apt-get install -y libzmq-dev + +RUN pip install pyzmq +RUN pip install numpy +RUN pip install matplotlib +RUN pip install pandas +RUN pip install jinja2 +RUN pip install ipython +EXPOSE 8888 + +ENTRYPOINT ["ipython"] +CMD ["notebook", "--pylab=inline"] diff --git a/python/Dockerfile b/python/Dockerfile new file mode 100644 index 0000000..1d14d12 --- /dev/null +++ b/python/Dockerfile @@ -0,0 +1,23 @@ +FROM ubuntu + +RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list +RUN apt-get update +RUN apt-get upgrade -y + +RUN apt-get install -y language-pack-en +ENV LANGUAGE en_US.UTF-8 +ENV LANG en_US.UTF-8 +ENV LC_ALL en_US.UTF-8 + +RUN locale-gen en_US.UTF-8 +RUN dpkg-reconfigure locales + +RUN apt-get install -y openssh-server git-core libxml2-dev curl python build-essential make gcc python-dev wget libsqlite3-dev sqlite3 +RUN apt-get install -y postgresql-client-9.1 postgresql-client-common libpq5 +RUN apt-get install -y libpq-dev + +RUN wget http://python-distribute.org/distribute_setup.py +RUN python distribute_setup.py + +RUN wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py +RUN python get-pip.py diff --git a/redis/Dockerfile b/redis/Dockerfile index 34a9a04..c430664 100644 --- a/redis/Dockerfile +++ b/redis/Dockerfile @@ -1,5 +1,3 @@ -# Dockerfile for redis with config to set data dir to /redis/ - FROM johncosta/redis EXPOSE 6379 diff --git a/rethinkdb/Dockerfile b/rethinkdb/Dockerfile index e82ea95..43ab3b7 100644 --- a/rethinkdb/Dockerfile +++ b/rethinkdb/Dockerfile @@ -3,8 +3,6 @@ FROM ubuntu -MAINTAINER Michael Crosby - RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list RUN apt-get update RUN apt-get upgrade -y diff --git a/sentry/Dockerfile b/sentry/Dockerfile index 886992a..49290d3 100644 --- a/sentry/Dockerfile +++ b/sentry/Dockerfile @@ -1,12 +1,8 @@ -# Dockerfile for sentry - FROM ubuntu -MAINTAINER Michael Crosby - RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list RUN apt-get update -RUN apt-get upgrade +RUN apt-get upgrade -y RUN apt-get install -y language-pack-en ENV LANGUAGE en_US.UTF-8 diff --git a/stash/Dockerfile b/stash/Dockerfile index 2f943e3..2692683 100644 --- a/stash/Dockerfile +++ b/stash/Dockerfile @@ -1,9 +1,5 @@ -# Dockerfile for stash - FROM ubuntu -MAINTAINER Michael Crosby http://crosbymichael.com - RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list RUN apt-get update RUN apt-get upgrade -y