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
# Live Vertex native E2E: gateway + integration tests against real Vertex AI.
#
# Requires ./service-account.json (gitignored). Example:
# docker compose -f docker-compose.e2e.yml up --build --abort-on-container-exit
services:
gateway:
build: .
ports:
- "18080:8080"
environment:
GOOGLE_APPLICATION_CREDENTIALS: /secrets/service-account.json
VERTEX_PROJECT_ID: ${VERTEX_PROJECT_ID:-qa1-us-central1-vpc-63b3e2}
VERTEX_LOCATION: ${VERTEX_LOCATION:-us-central1}
SYNAPSE_ROUTES_PATH: /app/config/e2e/routes.toml
SYNAPSE_PRICING_PATH: /app/config/e2e/pricing.toml
SYNAPSE_LEDGER_BACKENDS: sqlite
SYNAPSE_REQUEST_TIMEOUT_SECS: "180"
volumes:
- ./service-account.json:/secrets/service-account.json:ro
- ./config/e2e:/app/config/e2e:ro
e2e:
image: rust:1-bookworm
working_dir: /workspace
depends_on:
- gateway
environment:
GOOGLE_APPLICATION_CREDENTIALS: /secrets/service-account.json
VERTEX_PROJECT_ID: ${VERTEX_PROJECT_ID:-qa1-us-central1-vpc-63b3e2}
VERTEX_LOCATION: ${VERTEX_LOCATION:-us-central1}
VERTEX_E2E_MODEL: ${VERTEX_E2E_MODEL:-gemini-2.5-flash}
GATEWAY_URL: http://gateway:8080
RUST_BACKTRACE: "1"
volumes:
- .:/workspace
- ./service-account.json:/secrets/service-account.json:ro
- e2e-cargo-registry:/usr/local/cargo/registry
- e2e-cargo-git:/usr/local/cargo/git
- e2e-target:/workspace/target
command:
- bash
- -lc
- |
set -euo pipefail
export PATH="/usr/local/cargo/bin:${PATH}"
apt-get update -qq
apt-get install -y --no-install-recommends cmake protobuf-compiler pkg-config libssl-dev curl ca-certificates
scripts/wait-for-gateway.sh
cargo test --test vertex_native_e2e -- --ignored --nocapture --test-threads=1
volumes:
e2e-cargo-registry:
e2e-cargo-git:
e2e-target: