Skip to content

Commit

Permalink
fix(deployment): Fix postgresql-12 installation on ubuntu:22.04
Browse files Browse the repository at this point in the history
  • Loading branch information
tparsa committed Oct 1, 2023
1 parent a8dc52f commit f4b164d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions deployment/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ ENV container docker
ENV LC_ALL C
ENV DEBIAN_FRONTEND=noninteractive

RUN curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/postgresql.gpg
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
RUN apt-get update && apt-get install -y \
postgresql-12 \
curl \
python3 \
python3-pip \
systemd \
systemd-sysv \
net-tools \
git
git \
lsb-core
RUN echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list
RUN curl -fsSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN apt-get update && apt-get install -y postgresql-12

RUN pip3 install pyyaml

Expand Down

0 comments on commit f4b164d

Please sign in to comment.