Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

SpinBox Demo Recording

Automated asciinema recordings using expect scripts.

Quick Start

# 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

Usage

./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

What Gets Recorded

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

Customization

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

Upload

asciinema upload spinbox-demo.cast

Troubleshooting

Login credentials: root / spinbox

Test without recording:

expect spinbox.exp

Manual cleanup:

./cleanup.sh demo-vm
./cleanup.sh snapshot-demo snapshot-new