forked from kindly/ckan_dockered
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (20 loc) · 895 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ubuntu:12.04
MAINTAINER David Raznick
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe multiverse restricted" > /etc/apt/sources.list && \
apt-get update && apt-get install build-essential sudo python-dev python-setuptools python-pycurl python-apt vim -y &&\
easy_install pip && \
pip install ansible
ADD setupdb.yml /tmp/setupdb.yml
ADD inventory /tmp/inventory
ADD dbprivs.sql /tmp/dbprivs.sql
WORKDIR /tmp
RUN ansible-playbook -c local -i inventory setupdb.yml
ADD datapusher.wsgi /etc/ckan/datapusher.wsgi
ADD datapusher /etc/apache2/sites-enabled/datapusher
ADD datapusher_settings.py /etc/ckan/datapusher_settings.py
ADD setupweb.yml /tmp/setupweb.yml
RUN ansible-playbook -c local -i inventory setupweb.yml
ADD startup.py /usr/lib/ckan/startup.py
ADD startup.sh /usr/lib/ckan/startup.sh
WORKDIR /usr/lib/ckan/
CMD ["bash", "startup.sh"]