You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you please install psycopg2 in the official docker image, or create a variant with it installed? PostgreSQL seems well supported with DATABASE_ENGINE=transaction_hooks.backends.postgresql_psycopg2 otherwise.
Having to run apt-get update; apt-get install -y python3-dev libpq-dev build-essential; pip3 install psycopg2; source /var/local/ralph/docker-entrypoint.sh as the entrypoint seems a little silly... :)
The text was updated successfully, but these errors were encountered:
Hello, you can also do this more efficiently and in a more user-friendly way. Try inheriting from the base image by writing your own Dockerfile with an additional package. Try this:
FROM allegro/ralph
# Install additional packagesRUN pip3 install psycopg2-binary==2.7.4
and run docker build -t psyco-ralph . and use psyco-ralph image in your stack (docker-compose?).
It's just one more thing to maintain, or given I'm running on k8s it's a custom docker registry and build process just for this, while I imagine publishing another tag should be a fairly minor addition to your build pipeline 🙂
Could you please install
psycopg2
in the official docker image, or create a variant with it installed? PostgreSQL seems well supported withDATABASE_ENGINE=transaction_hooks.backends.postgresql_psycopg2
otherwise.Having to run
apt-get update; apt-get install -y python3-dev libpq-dev build-essential; pip3 install psycopg2; source /var/local/ralph/docker-entrypoint.sh
as the entrypoint seems a little silly... :)The text was updated successfully, but these errors were encountered: