-
Notifications
You must be signed in to change notification settings - Fork 0
Upgrade to latest repo template/uv #21
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
Conversation
Updates to the Dockerfile to follow the repo-template version. Avoid needing to copy uv into the prod image by running the prod entrypoint with just python, not uv run. We're running in the venv created with uv, using the python version we installed with deadsnakes, so just python should do the right thing. Use --frozen rather than --locked to use the uv.lock file as it is. Also run the tests in the dev entrypoint without uv; dependencies are installed inthe docker image and we don't need/want it to re-sync every time
| # See https://github.com/opensafely-core/repo-template/blob/main/DEVELOPERS.md for details | ||
| [tool.uv] | ||
| exclude-newer = "2025-10-27T00:00:00Z" | ||
| required-version = ">=0.9" |
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.
ah! I needed this yesterday in the ehrQL repo!
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.
Yeah, I only added it in this repo because the UV version was specified in places, but maybe it should be in the repo-template too
DEVELOPERS.md
Outdated
| ```bash | ||
| # build the image | ||
| docker build . -t tpp-database-utils | ||
| just build-docker |
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.
this needs to be
just docker/build
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.
ah this is done in a later commit!
Fixes #19