Files
lxd-profiles/mise.demo.toml
T
xavierandClaude Opus 5.5 372bf5d84b docs: Docker tutorial with recorded demos (demo/docker)
- demo/docker/README.md (fr) and README.en.md: step-by-step tutorial, from
  the clone of the repository to Docker used in an unprivileged LXD instance
- install and usage scenarios recorded with autocast, with their own hidden
  preamble (demo/docker/setup.sh) creating and removing what they need
- demo/castfix.py: puts back the shell prompt autocast drops and squeezes the
  cloud-init progress dots
- Tutorials section in the main READMEs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018inUJkPw1qcoCubeKqfffm
2026-11-21 18:39:35 +01:00

29 lines
1.3 KiB
TOML

# Environnement de production des démos (MISE_ENV=demo), en plus de mise.toml :
# ces outils ne sont installés que pour lui.
# MISE_ENV=demo mise run demo <scénario>
[tools]
"github:k9withabone/autocast" = "latest"
"github:asciinema/agg" = "latest"
# Polices pour agg (--font-dir) : rien n'est installé sur le système
"github:ryanoasis/nerd-fonts" = { version = "latest", asset_pattern = "Inconsolata.tar.xz", no_app = true }
"http:noto-color-emoji" = { version = "2026-09-24", url = "https://github.com/googlefonts/noto-emoji/raw/v2026-09-24-unicode18_0/2D/fonts/NotoColorEmoji.ttf" }
[tasks.demo]
description = "Enregistre une démo (demo/<nom>.cast avec autocast, retouché par demo/castfix.py, puis demo/<nom>.gif avec agg)"
usage = '''
arg "<name>" help="Scénario (demo/<name>.yaml)" {
choices "tour" "install" "lxc" "docker/install" "docker/usage"
}
'''
run = '''
autocast --overwrite "demo/${usage_name}.yaml" "demo/${usage_name}.cast"
python3 -I demo/castfix.py "demo/${usage_name}.cast"
agg --quiet --theme monokai \
--font-dir "$(mise where github:ryanoasis/nerd-fonts)" \
--font-dir "$(mise where http:noto-color-emoji)" \
--text-font-family "Inconsolata Nerd Font Mono" \
--emoji-font-family "Noto Color Emoji" \
"demo/${usage_name}.cast" "demo/${usage_name}.gif"
'''