-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
100 lines (68 loc) · 4.21 KB
/
Copy pathMakefile
File metadata and controls
100 lines (68 loc) · 4.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
.PHONY: verify test compile compose-config compose-config-prod generate-production-env prepare-smoke-env production-init-check public-deploy-packet public-bootstrap-plan public-server-readiness tls-renewal-plan public-launch-check public-compose-config public-migrate public-up smoke smoke-prod smoke-prod-env smoke-rejection smoke-maintenance smoke-tenant-control smoke-staging alertmanager-delivery-check alertmanager-delivery-execute log-export-plan log-export-execute release-check release-plan staging-release-plan staging-release-gate incident-drill
verify:
python scripts/preflight.py
test:
python -m pytest -q
compile:
python -m compileall runtime providers api storage queues workflow worker.py sweeper.py startup_validation.py tests
compose-config:
docker compose config --quiet
compose-config-prod:
docker compose --env-file .env.production -f docker-compose.yml -f docker-compose.prod.yml config --quiet
generate-production-env:
python scripts/generate_production_env.py --public-api-host "$${PUBLIC_API_HOST:?Set PUBLIC_API_HOST}" --cors-allowed-origins "$${CORS_ALLOWED_ORIGINS:?Set CORS_ALLOWED_ORIGINS}" --platform-operator-allowed-cidrs "$${PLATFORM_OPERATOR_ALLOWED_CIDRS:?Set PLATFORM_OPERATOR_ALLOWED_CIDRS}" --trusted-proxy-cidrs "$${TRUSTED_PROXY_CIDRS:?Set TRUSTED_PROXY_CIDRS}" --nginx-grafana-allowed-cidr "$${NGINX_GRAFANA_ALLOWED_CIDR:?Set NGINX_GRAFANA_ALLOWED_CIDR}" --deepseek-api-key "$${DEEPSEEK_API_KEY:?Set DEEPSEEK_API_KEY}" --alertmanager-webhook-url "$${ALERTMANAGER_WEBHOOK_URL:?Set ALERTMANAGER_WEBHOOK_URL}"
prepare-smoke-env:
python scripts/prepare_smoke_env.py --smoke-api-key "$${SMOKE_API_KEY:?Set SMOKE_API_KEY from scripts/create_api_key.py output}"
production-init-check:
python scripts/production_init_check.py --env-file .env.production
public-deploy-packet:
python scripts/public_deploy_packet.py --public-api-host "$${PUBLIC_API_HOST:?Set PUBLIC_API_HOST}" --project-dir "$${PUBLIC_PROJECT_DIR:-/opt/agent}"
public-bootstrap-plan:
python scripts/bootstrap_public_server.py
public-server-readiness:
python scripts/server_readiness_check.py --project-dir "$${PUBLIC_PROJECT_DIR:-/opt/agent}" --public-api-host "$${PUBLIC_API_HOST:?Set PUBLIC_API_HOST}"
tls-renewal-plan:
python scripts/tls_renewal_plan.py --public-api-host "$${PUBLIC_API_HOST:?Set PUBLIC_API_HOST}"
public-launch-check:
python scripts/public_launch_check.py
public-compose-config:
docker compose --env-file .env.production -f docker-compose.yml -f docker-compose.prod.yml -f docker-compose.public.yml config --quiet
public-migrate:
docker compose --env-file .env.production -f docker-compose.yml -f docker-compose.prod.yml -f docker-compose.public.yml run --rm api python scripts/migrate.py
public-up:
docker compose --env-file .env.production -f docker-compose.yml -f docker-compose.prod.yml -f docker-compose.public.yml up --build -d
smoke:
python scripts/smoke_test.py
smoke-prod:
SMOKE_BASE_URL="$${SMOKE_BASE_URL:?Set SMOKE_BASE_URL to https://your-api-domain}" SMOKE_EXPECT_PRODUCTION_DOCS_CLOSED=1 python scripts/smoke_test.py
smoke-prod-env:
set -a; . ./.env.smoke.production; set +a; SMOKE_EXPECT_PRODUCTION_DOCS_CLOSED=1 python scripts/smoke_test.py
smoke-rejection:
SMOKE_EXPECT_TENANT_REJECTION=1 python scripts/smoke_test.py
smoke-maintenance:
SMOKE_EXPECT_MAINTENANCE_GATE=1 python scripts/smoke_test.py
smoke-tenant-control:
SMOKE_EXPECT_TENANT_CONTROL_GATE=1 python scripts/smoke_test.py
smoke-staging:
SMOKE_EXPECT_PRODUCTION_DOCS_CLOSED=1 python scripts/smoke_test.py
SMOKE_EXPECT_MAINTENANCE_GATE=1 python scripts/smoke_test.py
SMOKE_EXPECT_TENANT_CONTROL_GATE=1 python scripts/smoke_test.py
SMOKE_EXPECT_TENANT_REJECTION=1 python scripts/smoke_test.py
alertmanager-delivery-check:
python scripts/alertmanager_delivery_check.py
alertmanager-delivery-execute:
python scripts/alertmanager_delivery_check.py --execute
log-export-plan:
python scripts/log_export.py
log-export-execute:
python scripts/log_export.py --execute
release-check:
python scripts/release_checklist.py
release-plan:
python scripts/release_orchestrator.py
staging-release-plan:
python scripts/staging_release_gate.py
staging-release-gate:
python scripts/staging_release_gate.py --execute
incident-drill:
python scripts/incident_drill.py