feat: add compose deployment baseline

This commit is contained in:
2026-09-22 02:14:32 +08:00
parent 6db60bd13b
commit e97b76fe5f
7 changed files with 278 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
GO ?= go
.PHONY: fmt test vet build image integration console-e2e mysql-replication mysql-compatibility sdk-check protocol-check docs-check schedule-backlog release-manifest release-local-check
.PHONY: fmt test vet build image integration console-e2e compose-check mysql-replication mysql-compatibility sdk-check protocol-check docs-check schedule-backlog release-manifest release-local-check
fmt:
$(GO) fmt ./...
cd sdk/go && $(GO) fmt ./...
@@ -35,6 +35,12 @@ integration:
console-e2e:
./scripts/test-console-e2e.sh
compose-check:
@test -n "$${ORBIT_DB_USER:-}" || (echo 'ORBIT_DB_USER is required' >&2; exit 1)
@test -n "$${ORBIT_DB_PASSWORD:-}" || (echo 'ORBIT_DB_PASSWORD is required' >&2; exit 1)
@test -n "$${ORBIT_DB_ROOT_PASSWORD:-}" || (echo 'ORBIT_DB_ROOT_PASSWORD is required' >&2; exit 1)
@docker compose -f deploy/docker-compose.yml config >/dev/null
mysql-replication:
./scripts/test-mysql-replication.sh