Skip to content

Repository files navigation

sccache-deploy

Helm chart and Docker Compose setup for deploying a sccache distributed compilation cluster.

Ways of deploying

Docker (local)

# 1. Edit tokens in scheduler/worker configs
vim docker/scheduler.conf docker/worker.conf

# 2. Start the cluster
docker compose -f docker/compose.yml up -d

Scheduler listens on :7634, worker on :10501.

Kubernetes (Helm)

# 1. Create a values.local.yaml
cp values.example.yaml values.local.yaml

# 2. Label nodes that will run the compilation jobs
kubectl label node <worker-node> sccache_worker=true

# 3. Install the chart, adding values.local.yaml as an additional values file
helm upgrade --install sccache . -f values.local.yaml

The helm chart deploys:

  • Scheduler (Deployment + Service) — orchestrates build distribution
  • Worker (DaemonSet + Service) — runs on labeled nodes, executes builds in sandboxed environments via bubblewrap
  • Ingress (optional) — for external client access to the scheduler

Docs

About

Fiels to deploy sccache-dist in Docker/etc.. or Kubernetes

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Packages

Contributors

Languages