This is an archive of the discontinued LLVM Phabricator instance.

Fix crash in psycopg2 with docker image
ClosedPublic

Authored by thopre on May 1 2020, 10:47 AM.

Details

Summary

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.

Event Timeline

thopre created this revision.May 1 2020, 10:47 AM
cmatthews accepted this revision.May 1 2020, 6:40 PM
This revision is now accepted and ready to land.May 1 2020, 6:40 PM