Skip to content

Deployment

Compute

Run the scripts from src/compute.

Script Purpose
deploy/scripts/build.sh Build the image
deploy/scripts/bootstrap.sh Create keys and trust file
deploy/scripts/up.sh Build, bootstrap and start
deploy/scripts/submit.sh Submit a task
deploy/scripts/e2e.sh End-to-end checks
deploy/scripts/logs.sh Follow logs
deploy/scripts/down.sh Stop. Keeps data
deploy/scripts/purge.sh --yes Delete keys, ledger and databases

No ports are published on the host. Use docker compose run as shown in Getting Started.

Kubernetes

KUBE_CONTEXT=my-cluster IMAGE=registry.example/dcompute TAG=1.0 deploy/scripts/k8s-deploy.sh

NAMESPACE is dcompute by default. Keys are created once for each context and namespace in deploy/.state. Further arguments are passed to Helm. deploy/scripts/k8s-remove.sh uninstalls.

Onboarding

Service Start
Registry service make docker-up in src/onboarding/registry-service
Verifier deployer Apply migrations/001_schema.sql, then go run ./cmd/server in src/onboarding/verifier-deployer
Verifier service Build the image in src/onboarding/verifier-service

Place these services behind a gateway that authenticates callers.

Production notes

  • Distribute ledger nodes, controllers and auditors among independent operators.
  • Move root/ of the state directory offline after issuing certificates.
  • Pin the enclave measurement in trust.json.
  • Back up wallets, the passphrase and the ledger.