Skip to content

Commit

Permalink
Merge pull request #20 from zalando/feature/patroni-fixed-version
Browse files Browse the repository at this point in the history
Refer to a tagged Patroni version to use within Spilo
  • Loading branch information
feikesteenbergen committed Sep 7, 2015
2 parents e6b1df1 + cad2597 commit 5d4170d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions postgres-appliance/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ ENV PATH $PATH:/usr/lib/postgresql-${PGVERSION}/bin
# Copy the snakeoil certificates for usage as dummy certificates
RUN cp /etc/ssl/private/ssl-cert-snakeoil.key $PGHOME/dummy.key && cp /etc/ssl/certs/ssl-cert-snakeoil.pem $PGHOME/dummy.crt

# Install Patroni
ENV PATRONIVERSION 0.1
WORKDIR $PGHOME
RUN git clone https://github.com/zalando/patroni.git
WORKDIR $PGHOME/patroni
RUN git checkout tags/v${PATRONIVERSION}

ADD postgres_ha.sh /
RUN chown postgres:postgres $PGHOME -R
RUN chown postgres:postgres /postgres_ha.sh
Expand Down
7 changes: 0 additions & 7 deletions postgres-appliance/postgres_ha.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ function write_archive_command_environment
}

write_postgres_yaml

if [[ ! -d "patroni" ]]
then
# get patroni code
git clone https://github.com/zalando/patroni.git
fi

write_archive_command_environment

# run wal-e s3 backup periodically
Expand Down

0 comments on commit 5d4170d

Please sign in to comment.