Skip to main content

Docker and CI

Container image#

WebAPI/Dockerfile builds a .NET 10 runtime image:

StageBase
basemcr.microsoft.com/dotnet/aspnet:10.0
buildmcr.microsoft.com/dotnet/sdk:10.0
finalbase, listening on 8080, ASPNETCORE_ENVIRONMENT=Docker

Build and run from the repository root:

docker build -t devarchitecture-webapi -f WebAPI/Dockerfile .docker run -p 18080:8080 \  -e TokenOptions__SecurityKey="$(openssl rand -base64 32)" \  devarchitecture-webapi

The container uses appsettings.Docker.json, which registers the same services as Development (in-memory EF, no external database) and ships without a JWT key. The key must be provided at runtime, otherwise the API stops at startup. See Security.

Smoke test:

curl http://127.0.0.1:18080/healthz

Health endpoints#

EndpointPurpose
/healthzLiveness/readiness; used by Docker and CI. Always returns HTTP 200 with a result body
/healthSame checks, exposed for external monitoring

CI workflows#

WorkflowWhat it does
ci.ymlrestore, vulnerable package scan, Release build, tests, Docker image + /healthz smoke
integration-tests.ymlAPI integration tests
clients-ui.ymlinstall/build/lint for the JS clients
e2e.ymlPlaywright E2E for Vue, Angular and React; starts the API and seeds data
codeql.ymlstatic analysis
changelog.ymlregenerates CHANGELOG.md with git-cliff
nuget-release.ymlpacks and publishes packages on release
pages.ymlplaceholder — no static site is deployed from this repository

Every workflow pins .NET 10. The Docker smoke job generates a throwaway signing key instead of storing one in the repository.

Release material#

Deployment checklists, the environment matrix and the rollback playbook live in the main repository under docs/release/:

  • docs/release/environment-matrix.md
  • docs/release/release-checklist.md
  • docs/release/rollback-playbook.md

For IIS and Azure App Service publishing see Project Publishing (IIS) and Project Publishing (Azure).