refactor(images): pull from registry instead of building; add build.sh for local dev
This commit is contained in:
parent
ff9ed447c0
commit
2d822305d1
6 changed files with 48 additions and 18 deletions
16
claude.sh
16
claude.sh
|
|
@ -122,12 +122,8 @@ dc() { docker compose -f "$COMPOSE_FILE" -p "$PROJECT" "$@"; }
|
|||
cmd_start() {
|
||||
check_deps
|
||||
load_env
|
||||
info "Building images..."
|
||||
dc build
|
||||
info "Starting proxy sidecar..."
|
||||
dc up -d proxy
|
||||
info "Waiting for proxy health check..."
|
||||
dc up -d proxy # no-op if already healthy; compose waits via depends_on
|
||||
info "Launching Claude Code..."
|
||||
# shellcheck disable=SC2046
|
||||
dc run --rm --service-ports $(workspace_flag) $(kube_flag) claude "$@"
|
||||
|
|
@ -152,8 +148,8 @@ cmd_run() {
|
|||
|
||||
cmd_update() {
|
||||
check_deps
|
||||
info "Rebuilding images (no cache)..."
|
||||
dc build --no-cache
|
||||
info "Pulling latest images from registry..."
|
||||
dc pull
|
||||
info "Update complete. Run './claude.sh start' to launch."
|
||||
}
|
||||
|
||||
|
|
@ -183,8 +179,6 @@ cmd_web() {
|
|||
error "WEBUI_PASSWORD is not set. Add it to .env before starting the web interface."
|
||||
exit 1
|
||||
fi
|
||||
info "Building images..."
|
||||
dc build
|
||||
info "Starting proxy and web interface..."
|
||||
dc up -d webui
|
||||
local port=7681
|
||||
|
|
@ -206,12 +200,12 @@ cmd_help() {
|
|||
Usage: $(basename "$0") <command> [args]
|
||||
|
||||
Commands:
|
||||
start [args] Build images, start proxy, launch Claude Code (CLI)
|
||||
start [args] Start proxy, launch Claude Code (CLI)
|
||||
run [args] Start proxy if needed, launch Claude Code (CLI)
|
||||
web Build images, start proxy + web interface (browser terminal)
|
||||
web Start proxy + web interface (browser terminal)
|
||||
web-stop Stop the web interface (keeps proxy running)
|
||||
stop Stop and remove all containers
|
||||
update Rebuild images without cache
|
||||
update Pull latest images from the registry
|
||||
logs [svc] Tail logs (default: proxy)
|
||||
status Show container status
|
||||
shell Open a bash shell in the Claude container (debug)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue