Your first job
From a project with a .devcontainer/ or a Dockerfile (without one, its jobs run only on your machine: see No image yet?):
takt run --name "webapp: tests" -- bin/rails test
Takt snapshots your checkout, uncommitted changes included, and runs the command in the project’s image on whichever machine has the most room. takt run streams the log, then prints what the job used and exits with its code:
takt: 20261201-142210-8c1f3a2e done (exit 0; used 3.1G of 8G asked, 4.7 of 6 cores, 1m36s, [ship 0.4s, checkout 0.9s, run 1m35s] on build-box)
Open http://127.0.0.1:7742 on the coordinator to watch it on the dashboard. While the fleet has run only a few jobs, its event log starts open, with each job, the machine it ran on and how it ended.
Say what it needs
Never name a machine. Say what the job needs, and Takt finds one:
takt run --name "ios: tests" --feature xcode -- xcodebuild test
takt run --name "cli: windows" --feature windows -- cargo test
takt run --name "video: render" --feature nvenc --gpu-mem 8000 -- script/render
Leave out --mem and --cores for a job you run often: Takt sizes it from its past runs. --priority P0 to P3 sets its class; P1 is the default.
Name it
Put the jobs a project runs again and again in a takt.yml, then run them by name:
jobs:
test: { run: bin/rails test, mem: 6G }
ios: { run: xcodebuild test, runs-on: [darwin, xcode] }
takt run test
takt init writes a commented takt.yml for the project.
No image yet?
A project with neither a devcontainer nor a Dockerfile runs --here: on the machine that sent the job, in the checkout as it is, and Takt says so. See Project images.
Next: Use Takt with agents.