Public | Automated Build

Last pushed: 3 years ago
Dockerfile
FROM ubuntu:13.10 MAINTAINER Kuba Kucharski <kuba@kucharski.it> RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list RUN apt-get -y update RUN apt-get -y install wget RUN wget --quiet --no-check-certificate -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" >> /etc/apt/sources.list RUN apt-get -y update RUN apt-get -y upgrade RUN locale-gen --no-purge en_US.UTF-8 ENV LC_ALL en_US.UTF-8 RUN update-locale LANG=en_US.UTF-8 RUN apt-get -y install build-essential postgresql-9.3 postgresql-contrib-9.3 postgresql-9.3-postgis-2.1 postgis binutils libproj-dev gdal-bin python RUN wget http://download.osgeo.org/geos/geos-3.3.8.tar.bz2 RUN tar xjf geos-3.3.8.tar.bz2; cd geos-3.3.8; ./configure; make; make install RUN echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/9.3/main/pg_hba.conf RUN service postgresql start && /bin/su postgres -c "createuser -d -s -r -l docker" && /bin/su postgres -c "psql postgres -c \"ALTER USER docker WITH ENCRYPTED PASSWORD 'docker'\"" && service postgresql stop RUN echo "listen_addresses = '*'" >> /etc/postgresql/9.3/main/postgresql.conf RUN echo "port = 5432" >> /etc/postgresql/9.3/main/postgresql.conf EXPOSE 5432 ADD start.sh /start.sh RUN chmod 0755 /start.sh CMD ["/start.sh"]
Source Repository