-
Notifications
You must be signed in to change notification settings - Fork 220
chore(deps): update dependency psycopg2-binary to v2.9.11 #1446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v1
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,3 @@ | ||
| Django==4.2.9 | ||
| psycopg2-binary==2.9.9 | ||
| psycopg2-binary==2.9.11 | ||
| python-dateutil==2.8.2 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| Django==4.2.10 | ||
| requests==2.31.0 | ||
| psycopg2-binary==2.9.9 | ||
| psycopg2-binary==2.9.11 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For production environments, it is strongly recommended to use Using the source distribution ( This will require adding build dependencies to your RUN apk add --no-cache postgresql-dev gcc musl-devReferences
|
||
| debugpy # Required for debugging | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For production environments, it is strongly recommended to use
psycopg2instead ofpsycopg2-binary. Thepsycopg2-binarypackage is meant for development and testing, as it comes with its own pre-compiled dependencies which may not be up-to-date with security patches or compatible with the system libraries.Using the source distribution (
psycopg2) ensures that it's compiled against the system's libraries in the Docker image, which is safer and more reliable for production.This will require adding build dependencies to your
Dockerfile. For an Alpine-based image, you would need to add something like this before installing the requirements:RUN apk add --no-cache postgresql-dev gcc musl-devReferences
psycopg2-binarypackage is intended for development and testing purposes, not for production use. For production, the source distributionpsycopg2should be used to ensure it is built against the system's trusted libraries, avoiding potential security vulnerabilities or incompatibilities from bundled dependencies.