feat: add goose

This commit is contained in:
Sun-ZhenXing
2026-01-02 22:06:24 +08:00
parent ab07facdb1
commit 25c618aa2e
17 changed files with 1241 additions and 150 deletions

64
builds/goose/.env.example Normal file
View File

@@ -0,0 +1,64 @@
# goose Configuration
# AI-powered developer agent by Block
# Global registry prefix (optional)
# Leave empty to pull from Docker Hub
GLOBAL_REGISTRY=
# goose version
# Default: latest
GOOSE_VERSION=1.18.0
# Timezone
# Default: UTC
TZ=UTC
# ============================================
# API Configuration
# ============================================
# OpenAI API Configuration
# Required if using OpenAI provider
OPENAI_API_KEY=
# Optional: Custom API base URL (e.g., for proxy or local deployment)
OPENAI_API_BASE=
# Anthropic API Configuration
# Required if using Anthropic provider
ANTHROPIC_API_KEY=
# Google API Configuration
# Required if using Google provider
GOOGLE_API_KEY=
# ============================================
# goose Configuration
# ============================================
# AI Provider
# Options: openai, anthropic, google
# Default: openai
GOOSE_PROVIDER=openai
# AI Model
# For OpenAI: gpt-4, gpt-4-turbo, gpt-3.5-turbo
# For Anthropic: claude-3-opus, claude-3-sonnet, claude-3-haiku
# For Google: gemini-pro
# Default: gpt-4
GOOSE_MODEL=gpt-4
# ============================================
# Resource Limits
# ============================================
# CPU limits
GOOSE_CPU_LIMIT=2.00
GOOSE_CPU_RESERVATION=0.50
# Memory limits
GOOSE_MEMORY_LIMIT=2G
GOOSE_MEMORY_RESERVATION=512M
# Logging limits
GOOSE_LOG_MAX_SIZE=100m
GOOSE_LOG_MAX_FILE=3