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

Use setup.py to install dependencies in docker #434

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

wilt00
Copy link

@wilt00 wilt00 commented Jan 5, 2024

While building from the Dockerfile, I ran into some issues caused by pip resolving sqlalchemy to v1 instead of v2. This PR changes the Dockerfile to install directly from setup.py, rather than indirectly from a list of dependencies, to hopefully prevent issues like this from coming up in the future.

It looks like the reason we originally went with the individual dependencies approach is because setuptools-scm needs to get the version from the git history. Since we don't want to bloat the container by copying the entire git history into it, setuptools-scm can't find the version and the installation fails. Since then, it looks like setuptools-scm has added an override environment variable which we can use to pass in a version explicitly during the build.

.dockerignore Outdated Show resolved Hide resolved
@karlicoss
Copy link
Owner

Thanks! Sorry just noticed -- somehow didn't receive the email notification

@wilt00
Copy link
Author

wilt00 commented Feb 4, 2024

Sorry for the drive-by PR @karlicoss ! I've finally fixed the CI issues here.

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

Successfully merging this pull request may close these issues.

2 participants