Skip to content

Commit

Permalink
Install postgres client in same version as server for docker compose
Browse files Browse the repository at this point in the history
No-Related-Issue: small docker build change only
Projected-Results-Impact: none
  • Loading branch information
holtgrewe committed Apr 12, 2022
1 parent 41f92cb commit 3feef82
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
12 changes: 12 additions & 0 deletions HISTORY.rst
Expand Up @@ -2,6 +2,18 @@
History / Changelog
===================

-----------------
HEAD (unreleased)
-----------------

End-User Summary
================

Full Change List
================

- Installing same postgres version as in docker-compose server (12).

------
v1.1.3
------
Expand Down
11 changes: 9 additions & 2 deletions docker/Dockerfile
Expand Up @@ -18,6 +18,12 @@ RUN chmod +x /usr/local/bin/wait
RUN mkdir -p /usr/src
RUN git clone --depth $app_git_depth --branch $app_git_tag $app_git_url /usr/src/app

# Add postgres 12 repository
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc \
| sudo apt-key add - && \
echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" \
> /etc/apt/sources.list.d/pgdg.list

# Install system dependencies.
RUN apt-get update && \
apt-get install -y \
Expand All @@ -27,9 +33,10 @@ RUN apt-get update && \
libldap2-dev \
libsasl2-dev \
make \
postgresql-client \
postgresql-client-12 \
wget \
xmlsec1
xmlsec1 \
gnupg2

# Install Python dependencies.
RUN cd /usr/src/app && \
Expand Down

0 comments on commit 3feef82

Please sign in to comment.