-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathdemo.yaml
112 lines (102 loc) · 2.37 KB
/
demo.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# demo.yaml
# autocast (https://github.com/k9withabone/autocast) configuration for podlet demo
# Convert to a GIF and optimize:
# agg --theme monokai --idle-time-limit 20 --font-size 20 demo.cast demo.gif
# gifsicle -O2 -k 64 -Okeep-empty --lossy=80 demo.gif -o demo-opt.gif
# mv demo-opt.gif demo.gif
settings:
width: 123
height: 47
title: Podlet v0.3.0 Demo
timeout: 90s
type_speed: 90ms
instructions:
# setup
- !Command
command: cargo build --profile dist
hidden: true
- !Command
command: alias podlet=target/dist/podlet
hidden: true
- !Command
command: podman pull quay.io/podman/hello:latest
hidden: true
- !Marker podlet help
- !Command
command: podlet -h
- !Wait 7s
- !Clear
- !Marker podlet podman help
- !Command
command: podlet podman -h
- !Wait 6s
- !Clear
- !Marker podlet podman run
- !Command
command: |
podlet
podman run
-p 8000:80
-p 8443:443
-v ./Caddyfile:/etc/caddy/Caddyfile:Z
-v caddy-data:/data
docker.io/library/caddy:latest
type_speed: 75ms
- !Wait 6s
- !Clear
- !Command
command: |
podlet --file . --install
podman run
--restart always
-p 8000:80
-p 8443:443
-v ./Caddyfile:/etc/caddy/Caddyfile:Z
-v caddy-data:/data
docker.io/library/caddy:latest
type_speed: 75ms
- !Wait 3s
- !Command
command: cat caddy.container
- !Wait 8s
- !Clear
- !Marker podlet compose
- !Command
command: cat compose-example.yaml
- !Wait 250ms
- !Command
command: podlet compose compose-example.yaml
- !Wait 5s
- !Command
command: podlet compose --pod compose-example.yaml
type_speed: 80ms
- !Wait 7s
- !Command
command: podlet compose --kube compose-example.yaml
type_speed: 80ms
- !Wait 7s
- !Clear
- !Marker podlet generate help
- !Command
command: podlet generate -h
- !Wait 6s
- !Clear
- !Marker podlet generate container
- !Command
command: podman container create --name hello quay.io/podman/hello:latest
type_speed: 80ms
- !Wait 2s
- !Command
command: podlet generate container hello
type_speed: 80ms
- !Wait 5s
# cleanup
- !Command
command: rm caddy.container
hidden: true
- !Command
command: podman rm hello
hidden: true
- !Command
command: unalias podlet
hidden: true