From 3cd3b50fad50f71c29a46e344fea2028b5e27cef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cle=CC=81ment=20MOUCHET?= Date: Fri, 5 Dec 2014 18:29:08 +0000 Subject: [PATCH] Added missing Dockerfile --- _service-provider/_datapusher/Dockerfile | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 _service-provider/_datapusher/Dockerfile diff --git a/_service-provider/_datapusher/Dockerfile b/_service-provider/_datapusher/Dockerfile new file mode 100644 index 0000000..eb2b3b6 --- /dev/null +++ b/_service-provider/_datapusher/Dockerfile @@ -0,0 +1,30 @@ +FROM phusion/baseimage:0.9.15 +MAINTAINER Open Knowledge + +# set UTF-8 locale +RUN locale-gen en_US.UTF-8 && \ + echo 'LANG="en_US.UTF-8"' > /etc/default/locale + +RUN apt-get -qq update + +# Install required packages +RUN DEBIAN_FRONTEND=noninteractive apt-get -qq -y install \ + python-minimal \ + python-dev \ + python-virtualenv \ + libevent-dev \ + libpq-dev \ + libxml2-dev \ + libxslt1-dev \ + build-essential + +ENV DATAPUSHER_HOME /usr/lib/ckan/datapusher +RUN virtualenv $DATAPUSHER_HOME + +ADD datapusher $DATAPUSHER_HOME/src/datapusher +RUN pip install pip==1.4.1 +RUN pip install -r $DATAPUSHER_HOME/src/datapusher/requirements.txt + +WORKDIR $DATAPUSHER_HOME/src/datapusher/ + +CMD [ "python", "datapusher/main.py", "deployment/datapusher_settings.py"]