- demo/backrest/README.md (fr) and README.en.md: a backup instance reading the data volume of another instance read-only, restic repository on its own volume, Backrest configured from the web UI, then restic on the command line and restoring a lost file - install and restore scenarios recorded with autocast; restore configures Backrest through its configuration file (autoInitialize) - UI screenshots made by screenshots.sh: a Debian instance with Chromium driven by Playwright fills in the forms - demo/lib.sh: helpers shared by the tutorial preambles - Docker tutorial: a filesystem volume can be shared by several instances, two Docker daemons must not share /var/lib/docker Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018inUJkPw1qcoCubeKqfffm
29 lines
1.3 KiB
TOML
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" "backrest/install" "backrest/restore"
|
|
}
|
|
'''
|
|
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"
|
|
'''
|