This pull request adds psycopg2 package to Docker image. The package is necessary to support PostgreSQL persistent storage. postgresql-dev package is added because it is a dependency of psycopg2.
Testing
To test this PR I recommend the following:
Install PostgreSQL and create a db with user.
Deploy the latest syncserver Docker image and configure it to use the PostgreSQL database.
Check if "psycopg is required but not installed" error is present.
Build a new Docker image with changes from this PR.
Deploy it with the same configuration.
Check if database scheme is created properly and the "psycopg2 isn't installed" error is gone.
In issue it was recommended to install psycopg2 to support PostgreSQL. This recommendation can't be applied to Docker-based deployments. That's why I've decided to create the PR.
Description
This pull request adds psycopg2 package to Docker image. The package is necessary to support PostgreSQL persistent storage. postgresql-dev package is added because it is a dependency of psycopg2.
Testing
To test this PR I recommend the following:
Example docker-compose:
Issue(s)
In issue it was recommended to install psycopg2 to support PostgreSQL. This recommendation can't be applied to Docker-based deployments. That's why I've decided to create the PR.