Skip to content

Try Liftway locally

Two ways to run Liftway on your own machine. Neither is meant for a team: for that, follow the production install.

Local process Local Kubernetes (kind or k3d)
Command make dev make up ENGINE=k3d
Steps run As your user on your machine In Kubernetes Jobs, like production
Terraform Not available (needs Kubernetes) Available
Vault Optional, with a token make vault-dev adds a throwaway Vault
Good for Writing your first playbook workflow Testing images, Terraform, logs, HA

All commands run from the root of the backend repository (runway), not from the site or documentation repositories.

Requirements

  • Python 3.12 or 3.13 and uv
  • Docker (for PostgreSQL, and for the cluster option)
  • For Kubernetes: kubectl, Helm 3, and either kind or k3d

Option 1 — local process

uv sync --frozen
make dev

make dev starts PostgreSQL 17 in Docker on 127.0.0.1:54329 (data kept in a Docker volume), then the controller on http://127.0.0.1:8000.

Sign in as admin. The initial password is generated on first start and written to .data/admin-password. Read it in your editor; do not paste it into chat or commit it. After you change the password in Account → Change Password, the file no longer matches — that is expected.

Check that everything is up:

curl -s http://127.0.0.1:8000/healthz   # {"status":"ok"}
curl -s http://127.0.0.1:8000/readyz    # {"ready":true}
curl -s http://127.0.0.1:8000/api/config

The local executor is not a sandbox

In this mode playbooks and scripts run with your own user's permissions on your machine. Use trusted code and test targets only.

Stop with Ctrl+C. Data stays in PostgreSQL; the next make dev picks it up. make postgres-down stops the database without deleting data.

To use your own PostgreSQL instead, export RUNWAY_DATABASE_URL before running bash scripts/dev.sh.

Option 2 — local Kubernetes

make up ENGINE=k3d          # or: make kind-up
make ui ENGINE=k3d          # port-forward; keep it running

In another terminal:

make token ENGINE=k3d       # prints the initial admin password
make status ENGINE=k3d      # deployments, pods, jobs, PVCs

Open http://127.0.0.1:8080. The script builds the image, loads it into the cluster without a registry and installs the Helm chart with bundled PostgreSQL.

For the default cluster name runway-dev, the install is a disposable development profile: development mode, a memory-only Valkey cache and a local MinIO for archived logs. Any other cluster name gets the normal, non-development settings.

Variable Default Purpose
ENGINE kind kind or k3d; repeat it on every later command
CLUSTER runway-dev Cluster name; files go to .data/<engine>-<cluster>/
NAMESPACE, RELEASE runway Where the chart is installed
PORT 8080 Local port for make ui
HA, REPLICAS false, 1 HA=true REPLICAS=2 runs two controllers
CACHE_ENGINE auto valkey, redis, dragonfly or off
# A second, separate lab
make up ENGINE=k3d CLUSTER=runway-lab PORT=8081
make ui ENGINE=k3d CLUSTER=runway-lab PORT=8081

# kubectl against it without touching your normal kubeconfig
export KUBECONFIG="$(make -s kubeconfig ENGINE=k3d CLUSTER=runway-lab)"
kubectl -n runway get pods

Add a throwaway Vault

make vault-dev ENGINE=k3d

This installs an in-memory Vault in development mode, configures Kubernetes auth, a read-only runner role and a write role for the controller, and stores a demo secret at secret/runway/demo. Everything is lost when that Vault restarts; run the command again to recreate it. Never put real secrets there.

Rebuild after code changes

make build image-load install ENGINE=k3d

Do not add -j — the steps depend on each other.

Smoke tests

make smoke ENGINE=k3d             # success and failure workflows through the API
make smoke-resources ENGINE=k3d   # project + inventory + template + workflow

Remove the lab

make down ENGINE=k3d

This deletes the whole cluster and its data. To pause, just stop make ui.

k3d shows API port 0

Run make cluster-create ENGINE=k3d again. It re-exports the kubeconfig with the real port without deleting the cluster.

Next

Your first automation walks through a Bash job, an Ansible playbook from Git and a two-step workflow.