Skip to content

Commit

Permalink
psql-cli: buster no longer supported by postgres, switch to bookworm
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertgong committed Oct 11, 2024
1 parent 316a8f1 commit ac1752f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions psql-cli/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:buster-slim
FROM debian:bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive

RUN /bin/echo -e '#!/bin/bash\nDEBIAN_FRONTEND=noninteractive\napt-get update && apt-get install -y $@ && apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt/lists/*' \
Expand All @@ -13,7 +13,7 @@ RUN /bin/echo -e '#!/bin/bash\nDEBIAN_FRONTEND=noninteractive\napt-get update &&
RUN /usr/local/sbin/apt_install_clean.sh iputils-ping net-tools curl wget gnupg2 nano

# psql 14
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt buster-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
RUN sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
#RUN apt search postgresql
RUN /usr/local/sbin/apt_install_clean.sh postgresql-client-14
Expand Down

0 comments on commit ac1752f

Please sign in to comment.