Automated PR feature/create-docker-image into Main#26
Merged
Conversation
Closed
There was a problem hiding this comment.
Pull request overview
This PR adds containerization and CI validation for the AirAware .NET API, aiming to support running the service via Docker/Compose with a persisted SQLite database and automated build/test gating before auto-opening a PR to main.
Changes:
- Added Dockerfile + docker-compose setup for building/running the API with a persisted SQLite volume.
- Updated EF Core configuration to read the SQLite file path from
DATABASE_PATHand attempted to auto-apply migrations on startup. - Added a test project and updated the “feature to main” GitHub Actions workflow to build and run tests before creating a PR.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| docker-compose.yml | Defines local container runtime (ports, env vars, volume, healthcheck). |
| Dockerfile | Multi-stage Docker build for the AirAware API and runtime configuration. |
| AirAware/Program.cs | Adds startup-time database migration execution. |
| AirAware/Data/AppDbContext.cs | Switches SQLite connection to use DATABASE_PATH env var. |
| AirAware.Tests/AirAware.Tests.csproj | Introduces a test project and test dependencies. |
| .gitignore | Normalizes the first line (removes BOM/formatting). |
| .github/workflows/1-feature-to-main.yml | Adds build + test jobs and gates PR creation on passing tests. |
| .dockerignore | Reduces Docker build context by excluding build artifacts, db files, git metadata, etc. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
joaoferreira-dev
previously approved these changes
Feb 28, 2026
joaoferreira-dev
approved these changes
Feb 28, 2026
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.
No description provided.