-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Streamline Docker setup and run tests via Docker #2207
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
base: main
Are you sure you want to change the base?
Conversation
df2a86e
to
e44015b
Compare
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.
Pull Request Overview
This PR streamlines the Docker development setup by improving the initialization process and adding comprehensive test execution via Docker. The changes simplify the dev entrypoint script, reorganize database initialization, and provide clearer documentation for Docker-based development workflows.
- Moved database initialization logic from the dev entrypoint to dedicated initialization scripts
- Added a new Makefile target for resetting local development data
- Enhanced GitHub Actions workflow to run tests via Docker Compose
Reviewed Changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
docker-entrypoint.dev.sh | Simplified by removing database initialization commands that are now handled elsewhere |
docker-entrypoint-initdb.d/02_trac_schema.sh | New script to handle Trac database schema initialization during container startup |
docker-compose.yml | Updated volume mounts to use the new initialization directory structure |
README.rst | Enhanced Docker documentation with clearer step-by-step instructions and additional usage examples |
Makefile | Added reset-local-db target to consolidate database reset commands |
.github/workflows/docker-test-build.yml | Added Docker Compose setup and test execution for the tests.txt matrix |
.dockerignore | New file to exclude unnecessary directories from Docker build context |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
e44015b
to
1b45f5a
Compare
1b45f5a
to
0b3585d
Compare
Hi, @easherma! Thanks again for your helping improving the Docker setup at the sprints. Would you be up for giving this a review when you have a moment? No rush. |
@@ -30,3 +30,10 @@ test: | |||
|
|||
watch-scss: | |||
watchmedo shell-command --patterns=*.scss --recursive --command="make compile-scss-debug" $(SCSS) | |||
|
|||
reset-local-db: |
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.
I think we can move the migrate
command too.
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.
I added a small comment about the migrate command call, but other than it looks nice 🌻
This PR makes several improvements to streamline the local Docker setup process:
web
container is restarted.reset-local-db
Makefile target.*.djangoproject.localhost:8000
links and ties back to the non-Docker setup.trac
does not exist #2193 (or similar)