mirror of
https://github.com/azaion/admin.git
synced 2026-04-22 17:56:34 +00:00
[AZ-189] [AZ-190] [AZ-191] [AZ-192] [AZ-193] [AZ-194] [AZ-195] Add e2e blackbox test suite
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# Containerization
|
||||
|
||||
## Dockerfile
|
||||
|
||||
Multi-stage build targeting .NET 10.0:
|
||||
|
||||
1. **Base stage** (`mcr.microsoft.com/dotnet/aspnet:10.0`): Runtime image, exposes port 8080.
|
||||
2. **Build stage** (`mcr.microsoft.com/dotnet/sdk:10.0`): Restores packages, builds release configuration. Supports cross-platform builds via `$BUILDPLATFORM` and `$TARGETARCH`.
|
||||
3. **Publish stage**: Publishes with `UseAppHost=false`, targets Linux with specified architecture.
|
||||
4. **Final stage**: Copies published output, sets entrypoint to `dotnet Azaion.AdminApi.dll`.
|
||||
|
||||
## Container Registry
|
||||
|
||||
- Private registry: `docker.azaion.com`
|
||||
- Deploy command: `docker build -t docker.azaion.com/api . && docker push docker.azaion.com/api`
|
||||
- CI registry: `localhost:5000` (Woodpecker CI local registry)
|
||||
|
||||
## Tags
|
||||
|
||||
| Branch | Tag |
|
||||
|--------|-----|
|
||||
| `main` | `arm` |
|
||||
| `dev` | `dev-arm` |
|
||||
| `stage` | `stage-arm` |
|
||||
|
||||
## Docker Test
|
||||
|
||||
A placeholder `docker.test/Dockerfile` exists (`FROM alpine:latest; CMD echo hello`) — appears unused.
|
||||
Reference in New Issue
Block a user