Skip to content

Commit

Permalink
Merge pull request #375 from metabrainz/amCap1712-patch-1
Browse files Browse the repository at this point in the history
Fix PG client in CB - Attempt 2
  • Loading branch information
amCap1712 authored Aug 23, 2021
2 parents 9065f35 + c235efe commit 6f60bb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*

# PostgreSQL client
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
RUN curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
ENV PG_MAJOR 12
RUN echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' $PG_MAJOR > /etc/apt/sources.list.d/pgdg.list
RUN apt-get update \
&& apt-get install -y postgresql-client-$PG_MAJOR \
&& apt-get install -y --no-install-recommends postgresql-client-$PG_MAJOR \
&& rm -rf /var/lib/apt/lists/*

# Specifying password so that client doesn't ask scripts for it...
ENV PGPASSWORD "critiquebrainz"

Expand Down

0 comments on commit 6f60bb8

Please sign in to comment.