Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,25 @@ FROM ubuntu:xenial
LABEL maintainer="[email protected]"
LABEL version="1.0"

ENV PG_VERSION 9.6

RUN apt-get update \
&& apt-get -y install software-properties-common wget jq netcat

RUN add-apt-repository \
"deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main"

RUN wget -q -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -

RUN apt-get -y update \
&& apt-get -y upgrade

RUN apt-get -y install postgresql-9.5 bucardo jq
RUN apt-get -y install postgresql-${PG_VERSION} postgresql-plperl-${PG_VERSION} bucardo

COPY etc/pg_hba.conf /etc/postgresql/9.5/main/
COPY etc/pg_hba.conf /etc/postgresql/${PG_VERSION}/main/
COPY etc/bucardorc /etc/bucardorc

RUN chown postgres /etc/postgresql/9.5/main/pg_hba.conf
RUN chown postgres /etc/postgresql/${PG_VERSION}/main/pg_hba.conf
RUN chown postgres /etc/bucardorc
RUN chown postgres /var/log/bucardo
RUN mkdir /var/run/bucardo && chown postgres /var/run/bucardo
Expand Down