Skip to content
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

Why install Postgresql package in Web? #46

Open
taythebot opened this issue Jun 26, 2020 · 2 comments
Open

Why install Postgresql package in Web? #46

taythebot opened this issue Jun 26, 2020 · 2 comments

Comments

@taythebot
Copy link

As I understand you only need to install Postgresql if you intend to host both Lemur and Postgresql on the same machine. (https://lemur.readthedocs.io/en/latest/quickstart/index.html#installing-build-dependencies) But in the docker-compose there is already a Postgresql server started. So why is this package needed at all in the web container?

I know this repo is currently "under maintenance" but I'm currently using this as a base for my own setup.

@viranch
Copy link
Contributor

viranch commented Oct 23, 2020

I believe its for using the postgres CLI in the web image.

@peschmae
Copy link

It's not only used to have the postgres cli in the web image, but you also need it to build psycopg2 when installing it from pip.

In a multistage build, you can get away with installing postgres in the build stage, and only installing libpq5 (in debian, not sure what it's called in other distributions) in the final image.
You can see an example of this over at unic/lemur-docker#feature/docker-hub-builds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants