Skip to content

Commit ddcd848

Browse files
committed
Fix postgresql 12 on Jammy
1 parent ac053be commit ddcd848

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

chunks/tool-postgresql/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ ENV PGWORKSPACE="/workspace/.pgsql"
77
ENV PGDATA="$PGWORKSPACE/data"
88

99
# Install PostgreSQL
10-
RUN sudo install-packages postgresql-12 postgresql-contrib-12
10+
RUN sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' && \
11+
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - && \
12+
sudo install-packages postgresql-12 postgresql-contrib-12
1113

1214
# Setup PostgreSQL server for user gitpod
1315
ENV PATH="/usr/lib/postgresql/12/bin:$PATH"

0 commit comments

Comments
 (0)