Sign inSign up

thiagobleao/postgresql

By thiagobleao

Updated about 11 years ago

PostgreSQL 9.3

Image
0

246

thiagobleao/postgresql repository overview

FROM ubuntu:14.04

RUN apt-get -y update

RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8

RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list

RUN apt-get update && apt-get install -y python-software-properties software-properties-common postgresql-9.3 postgresql-client-9.3 postgresql-contrib-9.3

USER postgres

RUN /etc/init.d/postgresql start &&
psql --command "CREATE USER root WITH SUPERUSER PASSWORD 'root';" &&
createdb -O root root

RUN echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/9.3/main/pg_hba.conf

RUN echo "listen_addresses='*'" >> /etc/postgresql/9.3/main/postgresql.conf

EXPOSE 5432

USER root

ENV DB_USER root

ENV DB_PASS root

Tag summary

Content type

Image

Digest

sha256:3e2816585

Size

139.2 MB

Last updated

about 11 years ago

docker pull thiagobleao/postgresql