mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-07-17 13:30:53 -07:00
6872805274
Separate the Google Chat bridge from the A2A agent server so each can scale independently on Cloud Run. The bridge is a lightweight proxy (concurrency=80) while the agent needs concurrency=1. - Add standalone entry point (src/chat-bridge/server.ts) - Add Dockerfile.chat-bridge and cloudbuild-chat-bridge.yaml - Remove chat bridge setup from app.ts - Inline A2UI constants in a2a-bridge-client.ts (no agent deps) - Update README for two-service architecture
36 lines
918 B
YAML
36 lines
918 B
YAML
steps:
|
|
# Step 1: Install all dependencies and build
|
|
- name: 'node:20-slim'
|
|
entrypoint: 'bash'
|
|
args:
|
|
- '-c'
|
|
- |
|
|
apt-get update && apt-get install -y python3 make g++ git
|
|
npm pkg delete scripts.prepare
|
|
npm install
|
|
npm run build
|
|
env:
|
|
- 'HUSKY=0'
|
|
|
|
# Step 2: Build Docker image for Chat bridge
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
args:
|
|
- 'build'
|
|
- '-t'
|
|
- 'us-central1-docker.pkg.dev/$PROJECT_ID/gemini-a2a/chat-bridge:latest'
|
|
- '-f'
|
|
- 'packages/a2a-server/Dockerfile.chat-bridge'
|
|
- '.'
|
|
|
|
# Step 3: Push to Artifact Registry
|
|
- name: 'gcr.io/cloud-builders/docker'
|
|
args:
|
|
- 'push'
|
|
- 'us-central1-docker.pkg.dev/$PROJECT_ID/gemini-a2a/chat-bridge:latest'
|
|
|
|
images:
|
|
- 'us-central1-docker.pkg.dev/$PROJECT_ID/gemini-a2a/chat-bridge:latest'
|
|
timeout: '1800s'
|
|
options:
|
|
machineType: 'E2_HIGHCPU_8'
|