File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 1+ #
2+ # example Dockerfile for https://docs.docker.com/examples/postgresql_service/
3+ #
4+ FROM debian:jessie
5+
6+ MAINTAINER Manigandan Dharmalingam <manigandan.jeff@gmail.com>
7+
8+ # Add the PostgreSQL PGP key to verify their Debian packages.
9+ # It should be the same key as https://www.postgresql.org/media/keys/ACCC4CF8.asc
10+ RUN apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
11+
12+ RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main" > /etc/apt/sources.list.d/pgdg.list
13+
14+ RUN apt-get update
15+ RUN apt-get install postgresql-client-9.6 git -y
16+ RUN apt-get upgrade bash -y
17+
18+ ENV PGHOST=postgres
19+ ENV PGUSER=postgres
20+ ENV PGSSLMODE=disable
21+
22+ CMD ["/usr/bin/psql" ]
You can’t perform that action at this time.
0 commit comments