Skip to content

Upgrade postgres-client to v12 in Docker image #7967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 4, 2021
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
11 changes: 10 additions & 1 deletion dockerfiles/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,23 @@ RUN apt-get -y install \
build-essential \
python3-pip \
python3-dev \
postgresql-client \
libmysqlclient-dev \
libfreetype6 \
libjpeg-dev \
sqlite \
netcat \
telnet

# https://www.postgresql.org/download/linux/ubuntu/
# Use PostgreSQL client 12 from official PostgreSQL Ubuntu's repository to avoid this WARNING
# WARNING: psql major version 10, server major version 12.
# Some psql features might not work.
# TODO: remove this when upgrading to Ubuntu 20.04 LTS
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
RUN curl -s https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN apt-get -y update
RUN apt-get -y install postgresql-client-12

# Uncomment en_US.UTF-8 locale and generate it
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
Expand Down