Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Fix CI: Postgresql install was missing apt-get update #516

Merged
merged 1 commit into from
May 25, 2022
Merged
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
5 changes: 3 additions & 2 deletions config/postgres/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && \
apt install -y wget netcat lsb-release gnupg2


# Debug lsb_release name:
# RUN lsb_release -cs
RUN echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
apt install -y postgresql-$VERSION
apt-get update && apt install -y postgresql-$VERSION

COPY scripts/ /tmp/postgresql/scripts/
COPY ph_hba.conf /etc/postgresql/$VERSION/main/pg_hba.conf
Expand Down