Skip to content
runtimeconditionsPublic

About

A repository of end-to-end demos that show how RC Profiles can benefit developers and platform teams

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Runtime Conditions Demos

rc-demos is the hands-on playground for Runtime Conditions: runnable workload apps, committed Runtime Conditions Profiles generated from them, and downstream adapter demos that fulfill those profiles with real platforms: a local development binder, Kratix, and a KinD + Cilium + Backstage lab.

A Runtime Conditions Profile is a portable, machine-readable list of what one workload needs at runtime: the APIs, caches, datastores, and environment configuration it depends on. The demos here show the whole loop. The workload declares the need once in its source, the rc-cli generates the Profile, validation checks it against the spec, and a platform fulfills it.

Example scenario: everything in this repo revolves around one workload, the request logger. It depends on a Todos API reachable at TODOS_API_URL and a Redis cache at REDIS_URL. Its committed Profile, artifacts/request-logger-http.profile.yaml, is exactly what the demos in this repo fulfill, in a local dev environment and on Kratix.

Quickstart

Check the committed demo Profile against the core schema embedded in rc and the definitions of the extensions it declares:

$ git clone https://github.com/runtimeconditions/rc-demos.git
$ rc profile validate rc-demos/artifacts/request-logger-http.profile.yaml
runtimeconditions: profile validated

Install rc-cli first if you don't have it; it provides the rc executable you run below. Either use Homebrew, or configure the apt / dnf repositories that setup.sh provides:

brew install runtimeconditions/tools/rc-cli
curl -fsSL https://runtimeconditions.io/packages/setup.sh | sudo sh
sudo apt install rc-cli          # or: sudo dnf install rc-cli

Then pick a demo to run end to end: Running the Kratix demo spins up a full KinD cluster with Kratix, while the other guides cover the lighter-weight experiments.

What's here

Path What it is
docs/ How-to guides for this repo: the request logger apps, generating profiles, running the Kratix demo
apps/request-logger-http/ Go workload that imports first-party declaration packages and demonstrates explicit profile declarations
apps/request-logger-http-java/ Java workload with matching explicit declarations for the same Conditions as the Go request logger
apps/request-logger-http-python/ Python workload declaring the same Conditions via the PyPI bindings
apps/todos-api/ Simple provider API used by the request logger demo
artifacts/ The generated, committed request-logger Profile (request-logger-http.profile.yaml) shared by the consumers
catalog/apis/ OpenAPI and catalog files for the Todos API, used by the adapter demos
portable-profile/ One generated request-logger Profile consumed by both a local development environment and the Kratix deployment path
kratix/ Kratix Promises, manifests, and scripts that fulfill the Profile on a cluster
validated-profile-handoff/ Verifying trusted upstream validation evidence for exact Profile and extension artifacts before consumer support evaluation
dev-container-profile/ Development scaffold and acceptance contract for a build-time Profile composition demo
cilium-policy/ A complete KinD, Cilium, Backstage, and microservice lab for building an RCProfile-to-CiliumNetworkPolicy adapter

Documentation

Guides for this repo:

Each demo has its own guide:

Ecosystem

The full list of Runtime Conditions repositories lives on the organization page and in rc-cli's README. The repos this demo repo connects to directly:

  • rc-cli: the rc binary that generates (rc profile generate) and validates (rc profile validate) the profiles in artifacts/; the quickstart validates one of them
  • spec: defines the Profile format; rc pins the core schema at build time and the committed Profiles follow it
  • extensions: the extension vocabulary and schemas the Profiles declare; the apps import the published binding packages built from it
  • go-rc-profiler: compiled into rc, profiles the Go app
  • java-rc-profiler and python-rc-profiler: add-ons that profile the Java and Python request loggers
  • backstage-plugin: consumes profiles in Backstage; exercised by the cilium-policy lab

Contributing

See CONTRIBUTING.md.

License

MIT: Copyright (c) 2026 Runtime Conditions.

About

A repository of end-to-end demos that show how RC Profiles can benefit developers and platform teams

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages