-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
36 lines (29 loc) · 1.28 KB
/
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
31
32
33
34
35
36
FROM ubuntu:12.04
#! mapnik2.2 don't like libgeos version from postgis2.1
#! libgeos-c1 (= 3.2.2-3ubuntu1) but 3.3.3-1.1~pgdg12.4+1 is to be installed
#! FROM helmi03/postgis:2.1
MAINTAINER Helmi <helmi03@gmail.com>
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe multiverse" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y -q python-software-properties python-pip libzmq-dev
RUN add-apt-repository -y ppa:mapnik/v2.2.0
RUN apt-get update
RUN apt-get install -y -q libmapnik libmapnik-dev mapnik-utils python-mapnik
RUN pip install -q https://github.com/helmi03/TileStache/tarball/master
RUN pip install circus chaussette gevent
# when use PIL="decoder zip not available"
# Can use this workaround, but testing Pillow for now
# http://obroll.com/install-python-pil-python-image-library-on-ubuntu-11-10-oneiric/
RUN pip uninstall -y PIL
RUN pip install Pillow
RUN yes | apt-get install -y ttf-mscorefonts-installer
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
ADD circus.ini /etc/circus.ini
ADD tilestache.cfg /etc/tilestache/tilestache.cfg
ADD app.py /app.py
ADD start_tilestache.sh /usr/local/bin/start_tilestache
EXPOSE 9999
#!-- Docker have problem with upstart
#! ADD circus.cont /etc/init/circus.conf
#! CMD ["start", "circus"]
CMD ["start_tilestache"]