Update docker to use Python 3.14 and Postgres 18.1. fix resulting issues#786
Merged
Update docker to use Python 3.14 and Postgres 18.1. fix resulting issues#786
Conversation
Signed-off-by: Grant Ramsay <seapagan@gmail.com>
- Fix volume mount to use /app/ instead of /app/src/ to ensure local file changes are immediately reflected in container - Add anonymous volume for /app/.venv to protect local virtual environment from being overwritten by container's venv - Update is_running_in_docker() to check DOCKER_RUNNING env var for more reliable Docker detection with pyfakefs - Skip test_metadata_command_cant_write_toml in Docker where root user can bypass file permissions - Update Dockerfile: add git, file, make packages and change uv sync from --frozen to --locked - Upgrade PostgreSQL from 17.3 to 18.1 and update volume paths
- Add PostgreSQL 18 upgrade warning with migration instructions - Update Python version from 3.13 to 3.14 - Update PostgreSQL version from 17 to 18.1 - Fix typo: "confguration" to "configuration" - Document api-admin CLI tool now working in Docker - Add "Local File Changes" section explaining volume mounting and .venv protection - Reorder Database Administration to prioritize api-admin over external tools like pgAdmin4
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the development environment to use newer versions of Python and PostgreSQL, improves Docker configuration for local development, and enhances documentation to guide users through these changes. The most important changes are grouped below.
Environment and Dependency Upgrades
Dockerfilefrompython:3.13-slimtopython:3.14-slim.17.3-bullseyeto18.1-bookworm, and adjusted related volume and environment variables to match the new version.Docker Configuration Improvements
git,file,make) to the Docker image for improved development experience..venv, ensuring local file changes are immediately reflected in the container without affecting the local virtual environment.uv synccommands to use the--lockedflag instead of--frozenfor more robust dependency management.Documentation Updates
api-adminCLI tool is now fully functional within the Docker container.Testing Improvements
.dockerenvfile and theDOCKER_RUNNINGenvironment variable.