Skip to content

Automated PR feature/create-docker-image into Main#26

Merged
joaoferreira-dev merged 8 commits into
mainfrom
feature/create-docker-image
Feb 28, 2026
Merged

Automated PR feature/create-docker-image into Main#26
joaoferreira-dev merged 8 commits into
mainfrom
feature/create-docker-image

Conversation

@github-actions
Copy link
Copy Markdown

No description provided.

@github-actions github-actions Bot requested a review from a team as a code owner February 28, 2026 02:05
@joaoferreira-dev joaoferreira-dev linked an issue Feb 28, 2026 that may be closed by this pull request
Copy link
Copy Markdown

Copilot AI left a 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 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_PATH and 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.

Comment thread docker-compose.yml
Comment thread docker-compose.yml Outdated
Comment thread docker-compose.yml Outdated
Comment thread AirAware/Program.cs
Comment thread .github/workflows/1-feature-to-main.yml Outdated
@joaoferreira-dev joaoferreira-dev merged commit 8431a73 into main Feb 28, 2026
2 checks passed
@joaoferreira-dev joaoferreira-dev deleted the feature/create-docker-image branch February 28, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a dockerfile

2 participants