Add local dev setup with lightweight Docker infrastructure#3910
Open
Add local dev setup with lightweight Docker infrastructure#3910
Conversation
10 tasks
7 tasks
Test results 13 files 13 suites 25m 1s ⏱️ Results for commit 096cc80. ♻️ This comment has been updated with latest results. |
8000
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3910 +/- ##
==========================================
+ Coverage 63.89% 63.91% +0.02%
==========================================
Files 625 625
Lines 46260 46283 +23
Branches 43 43
==========================================
+ Hits 29557 29584 +27
+ Misses 16693 16689 -4
Partials 10 10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
39372fc to
3c8869a
Compare
3c8869a to
096cc80
Compare
|
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.




Scope and purpose
Split from #3864.
Adds a lightweight alternative to devcontainers for local NAV development. Uses a minimal
docker-compose.local.yml(PostgreSQL + Graphite only) with a setup script that configures the virtualenv, installs dependencies, and syncs the database.Usage
The Python version defaults to 3.11 but can be overridden with
NAV_PYTHON=3.12 make local-setup.Why
sitecustomize.pyThe setup installs a
sitecustomize.pyinto the site-packages of the virtualenv. This enables us to setDJANGO_SETTINGS_MODULE,PGHOSTand other required env variables automatically on every Python invocation. That meansuv run django-admin runserver,uv run pytestetc. all work without having to source an.env.file or using shell helper scripts. It is also a good place to put the macOS patch in #3911.This pull request
Contributor Checklist
<major>.<minor>.x). For a new feature or other additions, it should be based onmaster.