Skip to content

Feat/#190 migrate to vm#193

Open
PhilipWoulfe wants to merge 6 commits intomainfrom
feat/#190-migrate-to-vm
Open

Feat/#190 migrate to vm#193
PhilipWoulfe wants to merge 6 commits intomainfrom
feat/#190-migrate-to-vm

Conversation

@PhilipWoulfe
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings March 22, 2026 22:35
Copy link
Copy Markdown
Contributor

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 VM-migration operational tooling and introduces container/service health checks to support more reliable deployments outside the current LXC runtime.

Changes:

  • Add Docker HEALTHCHECKs for the Web and API containers and introduce an API /health endpoint.
  • Add deployment helper scripts for preflight validation and post-deploy smoke checks.
  • Make Cloudflare issuer configurable via .env/compose and update docs/runbook for the VM migration target.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/F1.Web/Dockerfile Installs curl and adds a Docker healthcheck against the web root.
src/F1.Api/Program.cs Adds a GET /health endpoint for health probing.
src/F1.Api/Dockerfile Installs curl and adds a Docker healthcheck against the API health endpoint.
scripts/deploy-smoke-check.sh Adds post-deploy smoke checks for API health, web reachability, and worker status.
scripts/deploy-preflight.sh Adds pre-deploy validation for required env keys, log path writability, and disk space.
docker-compose.yml Makes Cloudflare issuer configurable via CLOUDFLARE_ISSUER.
README.md Updates infra docs and references the new deployment runbook and scripts.
DEPLOYMENT.md Adds a VM migration/deploy runbook (setup, procedures, rollback, checks).
.env.example Adds CLOUDFLARE_ISSUER and DEPLOY_MIN_FREE_DISK_MB defaults/documentation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/F1.Api/Program.cs
Comment thread src/F1.Api/Dockerfile
Comment thread scripts/deploy-smoke-check.sh
Comment thread scripts/deploy-preflight.sh
Comment thread scripts/deploy-smoke-check.sh Outdated
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 12 out of 12 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/F1.Api/Middleware/CloudflareAccessMiddleware.cs
Comment thread src/F1.Web/Dockerfile
@@ -16,9 +16,10 @@ COPY --from=build /app/publish/wwwroot .
COPY nginx.conf /etc/nginx/templates/default.conf.template

# Install jq for runtime configuration injection
Copy link

Copilot AI Mar 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment says only jq is installed, but the RUN now installs both jq and curl. Update the comment to reflect what’s actually being installed (or split into separate comments) to avoid confusion during image maintenance.

Suggested change
# Install jq for runtime configuration injection
# Install jq for runtime configuration injection and curl for health checks

Copilot uses AI. Check for mistakes.
Comment thread DEPLOYMENT.md
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.

2 participants