Skip to content

(Yet another) Fix for dockerfile - #6452

Merged
SchrodingersGat merged 3 commits into
inventree:masterfrom
SchrodingersGat:psql-fix-fix
Feb 8, 2024
Merged

SchrodingersGat merged 3 commits into
inventree:masterfrom
SchrodingersGat:psql-fix-fix

Conversation

@SchrodingersGat

@SchrodingersGat SchrodingersGat commented Feb 8, 2024 •

Copy link
Copy Markdown
Member

Small tweak to the docker build, following on from new postgresql lib requirements.

Removing the psycopg-c python library, it requires postgresql-libs (150MB) to be installed at the system level. It is not required for functionality, and current throws a warning message in the logs.


Hopefully this is the final in a series of changes required to get the docker image working reliably with the new version of django

- Ensure that core DB packages are kept around
- We can purge the dev packages after building python modules
@SchrodingersGat SchrodingersGat added bug Identifies a bug which needs to be addressed dependency Relates to a project dependency docker Docker / docker-compose setup Relates to the InvenTree setup / installation process labels Feb 8, 2024
@SchrodingersGat SchrodingersGat added this to the 0.14.0 milestone Feb 8, 2024
@netlify

netlify Bot commented Feb 8, 2024 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 7398cce
🔍 Latest deploy log https://app.netlify.com/sites/inventree-web-pui-preview/deploys/65c44509bf7abb0008fd49b8

@SchrodingersGat

Copy link
Copy Markdown
Member Author

As discovered in #6453 - some of the issues here were to do with incorrect django settings - not the database backend.

This reverts commit 8522ff2.
- Remove psycopg-c
- Not supported unless postgresql-libs are installed as a system package
- Prints a warning message in logs
- Works without it
@SchrodingersGat
SchrodingersGat merged commit b55e840 into inventree:master Feb 8, 2024
@SchrodingersGat
SchrodingersGat deleted the psql-fix-fix branch February 8, 2024 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Identifies a bug which needs to be addressed dependency Relates to a project dependency docker Docker / docker-compose setup Relates to the InvenTree setup / installation process

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant