Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update asciinema videos #2777

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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