Skip to content

Contributing

Thanks for helping improve Ryot. This page shows how to run Ryot from source and what happens when you open a pull request.

  • Bun
  • Rust, using the toolchain pinned in kernel/sandbox/native/rust-toolchain.toml
  • Docker
  1. Install dependencies:

    Terminal window
    bun install
  2. Start PostgreSQL and local S3-compatible storage:

    Terminal window
    bun run docker:up

    This creates the postgres database and the local ryot storage bucket.

  3. Create apps/server/.env with these settings:

    apps/server/.env
    FILE_STORAGE_S3_BUCKET_NAME=ryot
    FRONTEND_URL=http://localhost:3005
    FILE_STORAGE_S3_URL=http://localhost:9000
    FILE_STORAGE_S3_ACCESS_KEY_ID=rustfsadmin
    FILE_STORAGE_S3_SECRET_ACCESS_KEY=rustfsadmin
    DATABASE_URL=postgresql://postgres:postgres@localhost:5432/postgres
    SERVER_ADMIN_ACCESS_TOKEN=super-secret-token-that-should-be-changed
  4. Start the server and the web app, each in its own terminal:

    Terminal window
    bun turbo --filter=@ryot-app/server dev
    bun turbo --filter=@ryot-app/kernel-client dev

    Open http://localhost:3005. The server task also builds the shipped plugins and rebuilds them when you change them.

Start the observability services and point the server at the collector:

Terminal window
docker compose -f ci/dev/docker-compose.yml --profile observability up -d

Then add OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 to apps/server/.env. Leave that setting out when the collector is not running.

Follow the validation steps in the root AGENTS.md before you submit: make the affected packages’ checks pass, then run their tests. At the end, bun run check must pass for the whole repository.

PR Validation runs on every pull request. It builds the Linux image for both architectures from the PR’s merge commit and checks all six sandbox runtime keys. Full sandbox and backend tests run when a change touches the backend, sandbox, server, packages, plugins or shared build inputs. Kubernetes acceptance tests run for chart, deployment or shared build-input changes. Release tags require full validation.

To try an open pull request from this repository as an image, wait for PR Validation to succeed, then run Publish PR Preview from the default branch with the PR number. Pull the result as ghcr.io/ignisda/ryot-preview:pr-<number>. The preview follows the validated merge commit. Use Main Publication on the default branch to republish the current main image.

External contributors must sign the Ryot Individual Contributor License Agreement before a pull request can be merged. CLA Assistant asks for an electronic signature on the pull request.

Only submit work that you have the right to contribute. If an employer or someone else may own rights in your contribution, get their permission first, and identify any third-party material and its license in the pull request.