[PATCH] D79250: Fix crash in psycopg2 with docker image

Thomas Preud'homme via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 1 17:15:27 PDT 2020


thopre created this revision.
thopre added reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls, PrzemekWirkus.

Psycopg2 2.8 crashes when used with PostgreSQL 12 [1] which is now the
default version of the postgres:alpine docker image. This commit sets
the tag for the postgres image used by the LNT service to 11-alpine to
prevent this issue. Going forward the requirement for psycopg2 will need
to be bumped again to 1.3.16 or later but given how new is that release
it's better to fix the PostgreSQL version for now.

[1] https://github.com/sqlalchemy/sqlalchemy/issues/4463

Test Plan: cd docker && docker-compose build && DB_PWD=foobar
docker-compose up work successfully with this patch.


https://reviews.llvm.org/D79250

Files:
  docker/docker-compose.yml


Index: docker/docker-compose.yml
===================================================================
--- docker/docker-compose.yml
+++ docker/docker-compose.yml
@@ -20,7 +20,7 @@
 
   db:
     container_name: lnt-postgres
-    image: postgres:alpine
+    image: postgres:11-alpine
     environment:
       - POSTGRES_PASSWORD=${DB_PWD}
       - POSTGRES_USER=${DB_USER}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79250.261495.patch
Type: text/x-patch
Size: 370 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200502/82ca234e/attachment-0001.bin>


More information about the llvm-commits mailing list