Ctrl K
ComunidadGuías…

docs/examples/compose.toolbox.yml

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
# Opt-in Codewhale toolbox workflow.
#
# The published base is currently 0.10.0. Build current main from the root
# Dockerfile when testing unreleased source.
#
# Usage:
#   CODEWHALE_IMAGE=ghcr.io/hmbown/codewhale:v0.10.0 \
#   CODEWHALE_TOOLBOX_IMAGE=codewhale-toolbox:my-project \
#   CODEWHALE_HOME_VOLUME=codewhale-my-project-home \
#   CODEWHALE_WORKSPACE="$PWD" \
#   docker compose -f docs/examples/compose.toolbox.yml run --rm codewhale
#
# Keep CODEWHALE_HOME_VOLUME distinct per project so sessions, config, skills,
# memory, and queued work do not bleed across workspaces.

services:
  codewhale:
    image: ${CODEWHALE_TOOLBOX_IMAGE:-codewhale-toolbox:local}
    build:
      context: ../..
      dockerfile: docs/examples/Dockerfile.toolbox
      args:
        CODEWHALE_IMAGE: ${CODEWHALE_IMAGE:-ghcr.io/hmbown/codewhale:latest}
        TOOLBOX_PACKAGES: ${TOOLBOX_PACKAGES:-git openssh-client curl build-essential pkg-config python3 python3-pip nodejs npm}
    environment:
      - DEEPSEEK_API_KEY=${DEEPSEEK_API_KEY:?set DEEPSEEK_API_KEY}
      - DEEPSEEK_BASE_URL
      - DEEPSEEK_NO_COLOR
    volumes:
      - codewhale-home:/home/codewhale/.codewhale
      - ${CODEWHALE_WORKSPACE:?set CODEWHALE_WORKSPACE to the project directory}:/workspace
      # Mount SSH material only for projects that need it, and prefer read-only.
      # - ${HOME}/.ssh:/home/codewhale/.ssh:ro
      # Mount local CA certificates only when starting through a command that
      # runs `sudo update-ca-certificates` inside this toolbox image.
      # - ${CODEWHALE_CERTS_DIR:-../../docker/certs}:/usr/local/share/ca-certificates/local:ro
    working_dir: /workspace
    stdin_open: true
    tty: true

volumes:
  codewhale-home:
    name: ${CODEWHALE_HOME_VOLUME:-codewhale-toolbox-home}