chore: infrastructure — docker, makefile, dependencies
Update docker-compose configs (dev + main). Refine infra makefile. Update npm dependencies. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
23487d8723
commit
79220284d7
5 changed files with 37 additions and 12 deletions
|
|
@ -75,10 +75,10 @@ services:
|
|||
volumes:
|
||||
- rabbitmq_data:/var/lib/rabbitmq
|
||||
healthcheck:
|
||||
test: rabbitmq-diagnostics -q ping
|
||||
test: rabbitmq-diagnostics -q check_port_connectivity
|
||||
interval: 5s
|
||||
timeout: 5s
|
||||
retries: 10
|
||||
retries: 12
|
||||
start_period: 40s
|
||||
networks:
|
||||
- veza-net
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ services:
|
|||
volumes:
|
||||
- rabbitmq_data:/var/lib/rabbitmq
|
||||
healthcheck:
|
||||
test: rabbitmq-diagnostics -q ping
|
||||
test: rabbitmq-diagnostics -q check_port_connectivity
|
||||
interval: 10s
|
||||
timeout: 10s
|
||||
retries: 12
|
||||
|
|
@ -161,11 +161,13 @@ services:
|
|||
profiles:
|
||||
- payments
|
||||
|
||||
# Backend API (Docker dev)
|
||||
# Backend API (Docker dev) — only started with: docker compose --profile docker-dev up
|
||||
backend-api:
|
||||
build:
|
||||
context: ./veza-backend-api
|
||||
container_name: veza_backend_dev
|
||||
profiles:
|
||||
- docker-dev
|
||||
environment:
|
||||
- APP_ENV=development
|
||||
- DATABASE_URL=postgresql://${POSTGRES_USER:-veza}:${POSTGRES_PASSWORD:-devpassword}@postgres:5432/${POSTGRES_DB:-veza}?sslmode=disable
|
||||
|
|
@ -228,12 +230,14 @@ services:
|
|||
profiles:
|
||||
- live
|
||||
|
||||
# Stream Server (Rust) - v0.101
|
||||
# Stream Server (Rust) - v0.101 — only started with: docker compose --profile docker-dev up
|
||||
stream-server:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: veza-stream-server/Dockerfile
|
||||
container_name: veza_stream_dev
|
||||
profiles:
|
||||
- docker-dev
|
||||
environment:
|
||||
- DATABASE_URL=postgresql://${POSTGRES_USER:-veza}:${POSTGRES_PASSWORD:-devpassword}@postgres:5432/${POSTGRES_DB:-veza}?sslmode=disable
|
||||
- REDIS_URL=redis://:${REDIS_PASSWORD:-devpassword}@redis:6379
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ wait-for-infra: ## [LOW] Wait for infrastructure to be ready (Postgres, Redis, R
|
|||
@printf "${BLUE}⏳ Waiting for services...${NC}"
|
||||
@until docker compose -f $(COMPOSE_FILE) exec -T postgres pg_isready -U $(DB_USER) > /dev/null 2>&1; do printf "."; sleep 1; done
|
||||
@until docker compose -f $(COMPOSE_FILE) exec -T redis redis-cli ping > /dev/null 2>&1; do printf "."; sleep 1; done
|
||||
@until docker compose -f $(COMPOSE_FILE) exec -T rabbitmq rabbitmq-diagnostics -q ping > /dev/null 2>&1; do printf "."; sleep 1; done
|
||||
@until docker compose -f $(COMPOSE_FILE) exec -T rabbitmq rabbitmq-diagnostics -q check_port_connectivity > /dev/null 2>&1; do printf "."; sleep 1; done
|
||||
@$(ECHO_CMD) " ${GREEN}OK${NC}"
|
||||
|
||||
wait-for-services: ## [LOW] Wait for all application services
|
||||
|
|
|
|||
22
package-lock.json
generated
22
package-lock.json
generated
|
|
@ -12,6 +12,7 @@
|
|||
"veza-stream-server"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@axe-core/playwright": "^4.11.1",
|
||||
"@eslint/js": "^9.39.1",
|
||||
"@playwright/test": "^1.57.0",
|
||||
"@types/node": "^25.0.3",
|
||||
|
|
@ -66,7 +67,6 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@openapitools/openapi-generator-cli": "^2.27.0",
|
||||
"@playwright/test": "^1.58.2",
|
||||
"@storybook/addon-a11y": "^8.6.15",
|
||||
"@storybook/addon-essentials": "^8.6.15",
|
||||
"@storybook/addon-interactions": "^8.6.15",
|
||||
|
|
@ -103,7 +103,6 @@
|
|||
"msw": "^2.11.2",
|
||||
"msw-storybook-addon": "^2.0.6",
|
||||
"pixelmatch": "^5.3.0",
|
||||
"playwright": "^1.58.1",
|
||||
"pngjs": "^7.0.0",
|
||||
"prettier": "^3.2.5",
|
||||
"rollup-plugin-visualizer": "^6.0.5",
|
||||
|
|
@ -508,6 +507,19 @@
|
|||
"dev": true,
|
||||
"license": "ISC"
|
||||
},
|
||||
"node_modules/@axe-core/playwright": {
|
||||
"version": "4.11.1",
|
||||
"resolved": "https://registry.npmjs.org/@axe-core/playwright/-/playwright-4.11.1.tgz",
|
||||
"integrity": "sha512-mKEfoUIB1MkVTht0BGZFXtSAEKXMJoDkyV5YZ9jbBmZCcWDz71tegNsdTkIN8zc/yMi5Gm2kx7Z5YQ9PfWNAWw==",
|
||||
"dev": true,
|
||||
"license": "MPL-2.0",
|
||||
"dependencies": {
|
||||
"axe-core": "~4.11.1"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"playwright-core": ">= 1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/code-frame": {
|
||||
"version": "7.27.1",
|
||||
"resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",
|
||||
|
|
@ -7294,9 +7306,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/axe-core": {
|
||||
"version": "4.11.0",
|
||||
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.11.0.tgz",
|
||||
"integrity": "sha512-ilYanEU8vxxBexpJd8cWM4ElSQq4QctCLKih0TSfjIfCQTeyH/6zVrmIJfLPrKTKJRbiG+cfnZbQIjAlJmF1jQ==",
|
||||
"version": "4.11.1",
|
||||
"resolved": "https://registry.npmjs.org/axe-core/-/axe-core-4.11.1.tgz",
|
||||
"integrity": "sha512-BASOg+YwO2C+346x3LZOeoovTIoTrRqEsqMa6fmfAV0P+U9mFr9NsyOEpiYvFjbc64NMrSswhV50WdXzdb/Z5A==",
|
||||
"dev": true,
|
||||
"license": "MPL-2.0",
|
||||
"engines": {
|
||||
|
|
|
|||
11
package.json
11
package.json
|
|
@ -12,6 +12,7 @@
|
|||
"axios": ">=1.13.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@axe-core/playwright": "^4.11.1",
|
||||
"@eslint/js": "^9.39.1",
|
||||
"@playwright/test": "^1.57.0",
|
||||
"@types/node": "^25.0.3",
|
||||
|
|
@ -38,6 +39,14 @@
|
|||
"e2e:ui": "VEZA_ENV=test npx playwright test --config=tests/e2e/playwright.config.ts --ui",
|
||||
"e2e:routes": "VEZA_ENV=test npx playwright test --config=tests/e2e/playwright.config.ts --grep @route-coverage",
|
||||
"e2e:visual": "VEZA_ENV=test npx playwright test --config=tests/e2e/playwright.config.ts --grep @visual",
|
||||
"e2e:visual:update": "VEZA_ENV=test npx playwright test --config=tests/e2e/playwright.config.ts --grep @visual --update-snapshots"
|
||||
"e2e:visual:update": "VEZA_ENV=test npx playwright test --config=tests/e2e/playwright.config.ts --grep @visual --update-snapshots",
|
||||
"audit": "VEZA_ENV=test npx playwright test --config=tests/e2e/audit/audit.config.ts; node tests/e2e/audit/scripts/generate-report.mjs && (xdg-open tests/e2e/audit/results/AUDIT_REPORT.html 2>/dev/null || open tests/e2e/audit/results/AUDIT_REPORT.html 2>/dev/null || true)",
|
||||
"audit:functional": "VEZA_ENV=test npx playwright test --config=tests/e2e/audit/audit.config.ts tests/e2e/audit/functional/",
|
||||
"audit:visual": "VEZA_ENV=test npx playwright test --config=tests/e2e/audit/audit.config.ts tests/e2e/audit/pixel-perfect/",
|
||||
"audit:a11y": "VEZA_ENV=test npx playwright test --config=tests/e2e/audit/audit.config.ts tests/e2e/audit/accessibility/",
|
||||
"audit:interactions": "VEZA_ENV=test npx playwright test --config=tests/e2e/audit/audit.config.ts tests/e2e/audit/interaction/",
|
||||
"audit:ethical": "VEZA_ENV=test npx playwright test --config=tests/e2e/audit/audit.config.ts tests/e2e/audit/ethical/",
|
||||
"audit:screenshots": "VEZA_ENV=test npx playwright test --config=tests/e2e/audit/audit.config.ts tests/e2e/audit/screenshots/",
|
||||
"audit:screenshots:update": "VEZA_ENV=test npx playwright test --config=tests/e2e/audit/audit.config.ts tests/e2e/audit/screenshots/ --update-snapshots"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue