Add corporate brain v1 knowledge base
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# Runbook Angular + Docker + Nginx
|
||||
|
||||
## Objetivo
|
||||
|
||||
Compilar Angular y servirlo usando Nginx en contenedor.
|
||||
|
||||
## Flujo
|
||||
|
||||
Angular source
|
||||
↓
|
||||
npm install
|
||||
↓
|
||||
npm build
|
||||
↓
|
||||
Docker multi-stage
|
||||
↓
|
||||
Nginx Alpine
|
||||
↓
|
||||
Imagen final
|
||||
↓
|
||||
Deploy
|
||||
|
||||
## Reglas
|
||||
|
||||
- Usar nginx.conf propio.
|
||||
- Configurar fallback para SPA.
|
||||
- No exponer source maps en producción si no aplica.
|
||||
- Usar variables de entorno por ambiente.
|
||||
@@ -0,0 +1,26 @@
|
||||
# Runbook CI/CD
|
||||
|
||||
## Pipeline mínimo
|
||||
|
||||
1. Checkout.
|
||||
2. Restore dependencies.
|
||||
3. Build.
|
||||
4. Test.
|
||||
5. Static analysis.
|
||||
6. Security scan.
|
||||
7. Docker build.
|
||||
8. Push image.
|
||||
9. Deploy.
|
||||
10. Smoke test.
|
||||
|
||||
## Ambientes
|
||||
|
||||
- dev automático.
|
||||
- qa con validación.
|
||||
- prod con aprobación.
|
||||
|
||||
## Reglas
|
||||
|
||||
- Ningún despliegue manual a producción.
|
||||
- Todo cambio debe venir de repositorio.
|
||||
- Todo release debe tener trazabilidad.
|
||||
@@ -0,0 +1,29 @@
|
||||
# Runbook .NET + Docker
|
||||
|
||||
## Objetivo
|
||||
|
||||
Construir y ejecutar APIs .NET en contenedor.
|
||||
|
||||
## Flujo
|
||||
|
||||
Código .NET
|
||||
↓
|
||||
dotnet restore
|
||||
↓
|
||||
dotnet build
|
||||
↓
|
||||
dotnet test
|
||||
↓
|
||||
dotnet publish
|
||||
↓
|
||||
runtime image
|
||||
↓
|
||||
container
|
||||
|
||||
## Reglas
|
||||
|
||||
- Multi-stage build.
|
||||
- Usuario no root.
|
||||
- Healthcheck.
|
||||
- Variables de entorno.
|
||||
- Logs stdout.
|
||||
Reference in New Issue
Block a user