mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-25 21:41:12 -07:00
1.8 KiB
1.8 KiB
Phase 1 Sub-plan: The Workspace Core
1. Objective
Establish the foundational execution environment (Container Image) and the initial management service (Hub API).
2. Tasks
Task 1.1: Define and Build Workspace Image
Create a Dockerfile that provides a complete, persistent development environment
for gemini-cli.
- Create
packages/workspace-manager/docker/Dockerfile. - Include:
node:20-slim,git,gh,rsync,tmux,shpool. - Add the pre-built
gemini-clibinary. - Define
entrypoint.shwith secret injection andshpooldaemon startup. - Verify image build locally:
docker build -t gemini-workspace:v1 ..
Task 1.2: Workspace Hub API (v1)
Implement the core API to manage GCE-based workspaces.
- Initialize
packages/workspace-manager/. - Implement Express server for
/workspaces(List, Create, Delete). - Integrate Firestore to track workspace state (owner, instance_id, status).
- Integrate
@google-cloud/computefor GCE instance lifecycle. - Provision a VM with
Container-on-VMsettings pointing to thegemini-workspaceimage.
Task 1.3: Cloud Run Deployment (v1)
Prepare the Hub for self-service deployment.
- Create
packages/workspace-manager/terraform/for basic Hub provisioning. - Provide a
scripts/deploy-hub.shusinggcloudfor a zero-install alternative.
3. Verification & Success Criteria
- Image: A container started from the image must have
gemini --versionandgh --versionavailable. - API: A
POST /workspacescall must result in a new VM appearing in the specified GCP project with the correct container image. - State: Firestore must correctly reflect the VM's
PROVISIONINGandREADYstatus.
4. Next Steps
- Milestone 2: Basic CLI Management (Phase 2). Add
workspacecommands to the CLI.