Skip to content

Commit

Permalink
docs: update asciinema videos
Browse files Browse the repository at this point in the history
  • Loading branch information
m1ghtym0 committed Dec 27, 2023
1 parent 2ce73c1 commit 1d67da9
Show file tree
Hide file tree
Showing 9 changed files with 2,764 additions and 2,676 deletions.
11 changes: 3 additions & 8 deletions docs/screencasts/docker/create-cluster.expect
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,21 @@ spawn asciinema rec --overwrite /recordings/create-cluster.cast
send "\r"
expect_prompt

run_command "# Step 1: Create cloud environment"
run_command "# Step 1: Create the Constellation cluster"
expect_prompt
run_command "constellation create"
run_command "constellation apply"
expect -re "y\/n"
send "y"
send "\r"
expect_prompt

run_command "# Step 2: Initialize Constellation"
expect_prompt
run_command "constellation apply"
expect_prompt

run_command "# Wait for cluster to finish bootstrapping..."
expect_prompt
# Without a sleep we only see a single node, not 5.
run_command "sleep 300"
expect_prompt

run_command "# Step 3: Connect to Constellation"
run_command "# Step 2: Connect to Constellation"
expect_prompt
run_command "export KUBECONFIG=/constellation/constellation-admin.conf"
expect_prompt
Expand Down
9 changes: 4 additions & 5 deletions docs/screencasts/docker/github-readme.expect
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,12 @@ spawn asciinema rec --overwrite /recordings/github-readme.cast
send "\r"
expect_prompt

run_command "constellation create"
expect -re "y\/n"
send "y"
send "\r"
run_command "constellation config generate gcp"
expect_prompt
run_command "constellation iam create gcp --update-config --projectID constellation-331613 --serviceAccountID constellation-demo --zone europe-west3-b -y"
expect_prompt

run_command "constellation apply"
run_command "constellation apply -y"
expect_prompt

run_command "export KUBECONFIG=/constellation/constellation-admin.conf"
Expand Down
9 changes: 1 addition & 8 deletions docs/screencasts/generate-readme-svg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
# screenrecordings container. A full script run takes ~20min.
#

# Create IAM configuration
docker run -it \
-v "${HOME}"/.config/gcloud:/root/.config/gcloud \
-v "$(pwd)"/recordings:/recordings \
-v "$(pwd)"/constellation:/constellation \
screenrecodings /scripts/configure-cluster.expect

docker build -t screenrecodings docker

# Create cast
Expand All @@ -34,7 +27,7 @@ tail -n+2 recordings/github-readme.cast >> new_header.cast

# Then render cast into svg using:
# https://github.com/nbedos/termtosvg
termtosvg render new_header.cast readme.svg -t window-frame.svg -D 1ms
python3 -m termtosvg render new_header.cast readme.svg -t window-frame.svg -D 1ms

# Copy and cleanup
cp readme.svg ../static/img/shell-windowframe.svg
Expand Down
Loading

0 comments on commit 1d67da9

Please sign in to comment.