2014-05-04 19:14:46 +00:00
|
|
|
#--------- Generic stuff all our Dockerfiles should start with so we get caching ------------
|
2015-08-11 19:27:32 +00:00
|
|
|
FROM ubuntu:14.04
|
2014-10-20 05:46:56 +00:00
|
|
|
MAINTAINER Tim Sutton<tim@kartoza.com>
|
2014-05-04 19:14:46 +00:00
|
|
|
|
|
|
|
RUN export DEBIAN_FRONTEND=noninteractive
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN dpkg-divert --local --rename --add /sbin/initctl
|
|
|
|
#RUN ln -s /bin/true /sbin/initctl
|
|
|
|
|
|
|
|
# Use local cached debs from host (saves your bandwidth!)
|
|
|
|
# Change ip below to that of your apt-cacher-ng host
|
|
|
|
# Or comment this line out if you do not with to use caching
|
|
|
|
ADD 71-apt-cacher-ng /etc/apt/apt.conf.d/71-apt-cacher-ng
|
|
|
|
|
2015-08-08 23:19:40 +00:00
|
|
|
#RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
|
2014-05-04 19:14:46 +00:00
|
|
|
RUN apt-get -y update
|
2014-08-04 12:53:38 +00:00
|
|
|
RUN apt-get -y install ca-certificates rpl pwgen
|
2014-05-04 19:14:46 +00:00
|
|
|
|
|
|
|
#-------------Application Specific Stuff ----------------------------------------------------
|
|
|
|
|
2015-08-08 21:46:13 +00:00
|
|
|
# We add postgis as well to prevent build errors (that we dont see on local builds)
|
|
|
|
# on docker hub e.g.
|
|
|
|
# The following packages have unmet dependencies:
|
|
|
|
# postgresql-9.3-postgis-2.1 : Depends: libgdal1h (>= 1.9.0) but it is not going to be installed
|
|
|
|
# Recommends: postgis but it is not going to be installed
|
2015-08-11 09:54:19 +00:00
|
|
|
RUN apt-get install -y postgresql-9.3-postgis-2.1 postgis
|
2014-05-04 19:14:46 +00:00
|
|
|
|
2014-08-05 08:45:28 +00:00
|
|
|
# Open port 5432 so linked containers can see them
|
2014-05-04 19:14:46 +00:00
|
|
|
EXPOSE 5432
|
|
|
|
|
|
|
|
# Run any additional tasks here that are too tedious to put in
|
|
|
|
# this dockerfile directly.
|
|
|
|
ADD setup.sh /setup.sh
|
|
|
|
RUN chmod 0755 /setup.sh
|
|
|
|
RUN /setup.sh
|
|
|
|
|
|
|
|
# We will run any commands in this when the container starts
|
|
|
|
ADD start-postgis.sh /start-postgis.sh
|
|
|
|
RUN chmod 0755 /start-postgis.sh
|
|
|
|
|
2014-12-06 07:09:58 +00:00
|
|
|
CMD /start-postgis.sh
|