Automated asciinema recordings using expect scripts.
# Install dependencies
sudo apt-get install asciinema expect
# Record basic demo
./record.sh demo
# Record snapshot demo
./record.sh snapshot
# Play back
asciinema play spinbox-demo.cast./record.sh [demo|snapshot] [output-name]| Mode | Description | Default Output |
|---|---|---|
demo |
Basic demo (boot, Docker) | spinbox-demo.cast |
snapshot |
Snapshot demo (persist state) | spinbox-snapshot-demo.cast |
Basic Demo (demo):
- Pull spinbox sandbox image
- Boot VM with spinbox runtime
- Show systemd boot analysis
- Run Docker inside VM
Snapshot Demo (snapshot):
- Run VM and make changes (files, packages)
- Commit running VM to new image
- Run new VM from committed image
- Verify changes persisted
Adjust timing in .exp files:
set TYPING_DELAY 0.04 # Character delay (lower = faster)
set CMD_DELAY 1 # Pause after commands
set LONG_DELAY 2 # Pause for long operations
asciinema upload spinbox-demo.castLogin credentials: root / spinbox
Test without recording:
expect spinbox.expManual cleanup:
./cleanup.sh demo-vm
./cleanup.sh snapshot-demo snapshot-new