Skip to content

Instantly share code, notes, and snippets.

@kenichi
Created June 4, 2014 02:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenichi/e09811573c43472773f6 to your computer and use it in GitHub Desktop.
Save kenichi/e09811573c43472773f6 to your computer and use it in GitHub Desktop.
FROM ubuntu:precise
MAINTAINER Kenichi Nakamura <knakamura@esri.com>
# set locale
RUN locale-gen --no-purge en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US.UTF-8
RUN echo 'LANG="en_US.UTF-8"' >> /etc/default/locale
# config apt
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
# install wget for postgresql key
RUN apt-get -y install wget
# add postgresql repo
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" >> /etc/apt/sources.list
RUN wget -q -O - http://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN apt-get update
# install/config postgresql + plv8
RUN apt-get -y install postgresql-9.3 postgresql-contrib-9.3 postgresql-9.3-plv8 \
build-essential postgresql-server-dev-9.3 \
libgeos-dev libgdal-dev libxml2-dev libjson0-dev libproj-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment