From 64f6520d65b4bf34056473195813e5ffc8c522b7 Mon Sep 17 00:00:00 2001 From: James Blair Date: Wed, 20 Dec 2023 13:36:20 +1300 Subject: [PATCH] Added tapes for gifs as code. --- .../disconnected/connect-bastion-ec2.tape | 35 ++++++ .../images/disconnected/connect-prep-ec2.tape | 34 ++++++ .../images/disconnected/download-tools.tape | 81 ++++++++++++++ .../disconnected/launch-bastion-ec2.tape | 50 +++++++++ .../images/disconnected/launch-prep-ec2.tape | 43 ++++++++ .../disconnected/openshift-install.tape | 39 +++++++ .../images/disconnected/registry-install.tape | 42 ++++++++ .../images/disconnected/registry-push.tape | 47 ++++++++ .../images/disconnected/security-group.tape | 101 ++++++++++++++++++ .../disconnected/sneakernet-transfer.tape | 54 ++++++++++ .../images/disconnected/ssh-port-ingress.tape | 25 +++++ 11 files changed, 551 insertions(+) create mode 100644 public/static/images/disconnected/connect-bastion-ec2.tape create mode 100644 public/static/images/disconnected/connect-prep-ec2.tape create mode 100644 public/static/images/disconnected/download-tools.tape create mode 100644 public/static/images/disconnected/launch-bastion-ec2.tape create mode 100644 public/static/images/disconnected/launch-prep-ec2.tape create mode 100644 public/static/images/disconnected/openshift-install.tape create mode 100644 public/static/images/disconnected/registry-install.tape create mode 100644 public/static/images/disconnected/registry-push.tape create mode 100644 public/static/images/disconnected/security-group.tape create mode 100644 public/static/images/disconnected/sneakernet-transfer.tape create mode 100644 public/static/images/disconnected/ssh-port-ingress.tape diff --git a/public/static/images/disconnected/connect-bastion-ec2.tape b/public/static/images/disconnected/connect-bastion-ec2.tape new file mode 100644 index 0000000..416a78d --- /dev/null +++ b/public/static/images/disconnected/connect-bastion-ec2.tape @@ -0,0 +1,35 @@ +Output connect-bastion-ec2.gif + +Require echo + +Set Shell "bash" +Set FontSize 32 +Set Width 1920 +Set Height 800 + +Hide +Type `cd` +Enter 1 +Type `SBP_PATH=/home/james/Downloads/sbp` +Enter 1 +Type `source /home/james/Downloads/sbp/sbp.bash` +Enter 1 +Sleep 5s +Ctrl+L +Show + +Type `HIGHSIDE_BASTION_IP=$(aws ec2 describe-instances --filters "Name=tag:Name,Values=disco-bastion-server" | jq -r '.Reservations[0].Instances[0].PrivateIpAddress')` +Enter 1 Sleep 4s +Type `echo $HIGHSIDE_BASTION_IP` +Enter 1 Sleep 2s + +Type `PREP_SYSTEM_IP=$(aws ec2 describe-instances --filters "Name=tag:Name,Values=disco-prep-system" | jq -r '.Reservations[0].Instances[0].PublicIpAddress')` +Enter 1 Sleep 4s +Type `scp -i disco_key disco_key ec2-user@$PREP_SYSTEM_IP:/home/ec2-user/disco_key` +Enter 3 Sleep 4s + +Type `ssh -i disco_key ec2-user@$PREP_SYSTEM_IP "echo HIGHSIDE_BASTION_IP=$(echo $HIGHSIDE_BASTION_IP) > highside.env"` +Enter 3 Sleep 4s + +Type `ssh -t -i disco_key ec2-user@$PREP_SYSTEM_IP "ssh -t -i disco_key ec2-user@$HIGHSIDE_BASTION_IP"` +Enter 1 Sleep 10s diff --git a/public/static/images/disconnected/connect-prep-ec2.tape b/public/static/images/disconnected/connect-prep-ec2.tape new file mode 100644 index 0000000..a51b323 --- /dev/null +++ b/public/static/images/disconnected/connect-prep-ec2.tape @@ -0,0 +1,34 @@ +Output connect-prep-ec2.gif + +Require echo + +Set Shell "bash" +Set FontSize 32 +Set Width 1920 +Set Height 800 + +Hide +Type `cd` +Enter 1 +Type `SBP_PATH=/home/james/Downloads/sbp` +Enter 1 +Type `source /home/james/Downloads/sbp/sbp.bash` +Enter 1 +Type `SG_ID=$(aws ec2 describe-security-groups --filters "Name=tag:Name,Values=disco-sg" | jq -r '.SecurityGroups[0].GroupId')` +Enter 1 +Sleep 1s +Type `PUBLIC_SUBNET=$(aws ec2 describe-subnets | jq '.Subnets[] | select(.Tags[].Value=="Public Subnet - disco").SubnetId' -r)` +Enter 1 +Ctrl+L +Sleep 5s +Show + +Type `PREP_SYSTEM_IP=$(aws ec2 describe-instances --filters "Name=tag:Name,Values=disco-prep-system" | jq -r '.Reservations[0].Instances[0].PublicIpAddress')` +Enter 1 +Sleep 2s +Type `echo $PREP_SYSTEM_IP` +Enter 1 +Sleep 1s +Type `ssh -i ~/disco_key ec2-user@$PREP_SYSTEM_IP` +Enter 1 +Sleep 10s diff --git a/public/static/images/disconnected/download-tools.tape b/public/static/images/disconnected/download-tools.tape new file mode 100644 index 0000000..35473a3 --- /dev/null +++ b/public/static/images/disconnected/download-tools.tape @@ -0,0 +1,81 @@ +Output download-tools.gif + +Require echo + +Set Shell "bash" +Set FontSize 32 +Set Width 1920 +Set Height 800 + +Hide +Type `cd` +Enter 1 +Type `SBP_PATH=/home/james/Downloads/sbp` +Enter 1 +Type `source /home/james/Downloads/sbp/sbp.bash` +Enter 1 +Type `#SG_ID=$(aws ec2 describe-security-groups --filters "Name=tag:Name,Values=disco-sg" | jq -r '.SecurityGroups[0].GroupId')` +Enter 1 +Sleep 1s +Type `#PUBLIC_SUBNET=$(aws ec2 describe-subnets | jq '.Subnets[] | select(.Tags[].Value=="Public Subnet - disco").SubnetId' -r)` +Enter 1 +Sleep 5s +Type `PREP_SYSTEM_IP=$(aws ec2 describe-instances --filters "Name=tag:Name,Values=disco-prep-system" | jq -r '.Reservations[0].Instances[0].PublicIpAddress')` +Enter 1 +Sleep 2s +Type `echo $PREP_SYSTEM_IP` +Enter 1 +Sleep 2s +Type `ssh -i ~/disco_key ec2-user@$PREP_SYSTEM_IP` +Enter 1 +Sleep 3s +Ctrl+L +Sleep 2s +Show + + +Type `sudo mkfs -t xfs /dev/nvme1n1` +Enter 1 +Sleep 2s +Type `sudo mkdir /mnt/high-side` +Enter 1 +Sleep 2s +Type `sudo mount /dev/nvme1n1 /mnt/high-side` +Enter 1 +Sleep 2s +Type `sudo chown ec2-user:ec2-user /mnt/high-side` +Enter 1 +Sleep 2s +Type `cd /mnt/high-side` +Enter 1 +Sleep 8s + +Type `curl https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-client-linux.tar.gz -L -o oc.tar.gz` +Enter 1 Sleep 10s +Type `tar -xzf oc.tar.gz oc && rm -f oc.tar.gz` +Enter 1 Sleep 2s +Type `sudo cp oc /usr/local/bin/` +Enter 1 Sleep 4s + +Type `curl https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/oc-mirror.tar.gz -L -o oc-mirror.tar.gz` +Enter 1 Sleep 10s +Type `tar -xzf oc-mirror.tar.gz && rm -f oc-mirror.tar.gz` +Enter 1 Sleep 2s +Type `chmod +x oc-mirror` +Enter 1 Sleep 2s +Type `sudo cp oc-mirror /usr/local/bin/` +Enter 1 Sleep 4s + +Type `curl https://mirror.openshift.com/pub/openshift-v4/clients/mirror-registry/latest/mirror-registry.tar.gz -L -o mirror-registry.tar.gz` +Enter 1 Sleep 10s +Type `tar -xzf mirror-registry.tar.gz` +Enter 1 Sleep 2s +Type `rm -f mirror-registry.tar.gz` +Enter 1 Sleep 4s + +Type `curl https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable/openshift-install-linux.tar.gz -L -o openshift-installer.tar.gz` +Enter 1 Sleep 10s +Type `tar -xzf openshift-installer.tar.gz openshift-install` +Enter 1 Sleep 2s +Type `rm -f openshift-installer.tar.gz` +Enter 1 Sleep 4s diff --git a/public/static/images/disconnected/launch-bastion-ec2.tape b/public/static/images/disconnected/launch-bastion-ec2.tape new file mode 100644 index 0000000..7571b67 --- /dev/null +++ b/public/static/images/disconnected/launch-bastion-ec2.tape @@ -0,0 +1,50 @@ +Output launch-bastion-ec2.gif + +Require echo + +Set Shell "bash" +Set FontSize 32 +Set Width 1920 +Set Height 800 + +Hide +Type `cd` +Enter 1 +Type `SBP_PATH=/home/james/Downloads/sbp` +Enter 1 +Type `source /home/james/Downloads/sbp/sbp.bash` +Enter 1 +Sleep 5s +Ctrl+L +Show + +Type `PRIVATE_SUBNET=$(aws ec2 describe-subnets | jq '.Subnets[] | select(.Tags[].Value=="Private Subnet - disco").SubnetId' -r)` +Enter 1 +Sleep 4s +Type `echo $PRIVATE_SUBNET` +Enter 1 +Sleep 2s +Type `SG_ID=$(aws ec2 describe-security-groups --filters "Name=tag:Name,Values=disco-sg" | jq -r '.SecurityGroups[0].GroupId')` +Enter 1 +Sleep 4s +Type `echo $SG_ID` +Enter 3 +Sleep 2s + + +Type `aws ec2 run-instances --image-id $(cat ami.txt) \` +Enter 1 +Type ` --count 1 --instance-type t3.large \` +Enter 1 +Type ` --key-name disco-key \` +Enter 1 +Type ` --security-group-ids $SG_ID \` +Enter 1 +Type ` --subnet-id $PRIVATE_SUBNET \` +Enter 1 +Type ` --tag-specifications "ResourceType=instance,Tags=[{Key=Name,Value=disco-bastion-server}]" \` +Enter 1 +Type ` --block-device-mappings "DeviceName=/dev/sdh,Ebs={VolumeSize=50}"` +Enter 1 + +Sleep 10s diff --git a/public/static/images/disconnected/launch-prep-ec2.tape b/public/static/images/disconnected/launch-prep-ec2.tape new file mode 100644 index 0000000..0ca9acb --- /dev/null +++ b/public/static/images/disconnected/launch-prep-ec2.tape @@ -0,0 +1,43 @@ +Output launch-prep-ec2.gif + +Require echo + +Set Shell "bash" +Set FontSize 32 +Set Width 1920 +Set Height 800 + +Hide +Type `cd` +Enter 1 +Type `SBP_PATH=/home/james/Downloads/sbp` +Enter 1 +Type `source /home/james/Downloads/sbp/sbp.bash` +Enter 1 +Type `SG_ID=$(aws ec2 describe-security-groups --filters "Name=tag:Name,Values=disco-sg" | jq -r '.SecurityGroups[0].GroupId')` +Enter 1 +Sleep 1s +Type `PUBLIC_SUBNET=$(aws ec2 describe-subnets | jq '.Subnets[] | select(.Tags[].Value=="Public Subnet - disco").SubnetId' -r)` +Enter 1 +Ctrl+L +Sleep 5s +Show + +Type `aws ec2 run-instances --image-id "ami-092b43193629811af" \` +Enter 1 +Type ` --count 1 --instance-type t3.micro \` +Enter 1 +Type ` --key-name disco-key \` +Enter 1 +Type ` --security-group-ids $SG_ID \` +Enter 1 +Type ` --subnet-id $PUBLIC_SUBNET \` +Enter 1 +Type ` --associate-public-ip-address \` +Enter 1 +Type ` --tag-specifications "ResourceType=instance,Tags=[{Key=Name,Value=disco-prep-system}]" \` +Enter 1 +Type ` --block-device-mappings "DeviceName=/dev/sdh,Ebs={VolumeSize=50}"` +Enter 1 + +Sleep 10s diff --git a/public/static/images/disconnected/openshift-install.tape b/public/static/images/disconnected/openshift-install.tape new file mode 100644 index 0000000..2e9313d --- /dev/null +++ b/public/static/images/disconnected/openshift-install.tape @@ -0,0 +1,39 @@ +Output openshift-install.gif + +Require echo + +Set Shell "bash" +Set FontSize 32 +Set Width 1920 +Set Height 800 + +Hide +Type `cd` +Enter 1 +Type `SBP_PATH=/home/james/Downloads/sbp` +Enter 1 +Type `source /home/james/Downloads/sbp/sbp.bash` +Enter 1 +Type `#SG_ID=$(aws ec2 describe-security-groups --filters "Name=tag:Name,Values=disco-sg" | jq -r '.SecurityGroups[0].GroupId')` +Enter 1 +Sleep 1s +Type `#PUBLIC_SUBNET=$(aws ec2 describe-subnets | jq '.Subnets[] | select(.Tags[].Value=="Public Subnet - disco").SubnetId' -r)` +Enter 1 +Sleep 5s +Type `PREP_SYSTEM_IP=$(aws ec2 describe-instances --filters "Name=tag:Name,Values=disco-prep-system" | jq -r '.Reservations[0].Instances[0].PublicIpAddress')` +Enter 1 +Sleep 2s + +Type `HIGHSIDE_BASTION_IP=$(aws ec2 describe-instances --filters "Name=tag:Name,Values=disco-bastion-server" | jq -r '.Reservations[0].Instances[0].PrivateIpAddress')` +Enter 1 +Sleep 4s +Type `ssh -t -i disco_key ec2-user@$PREP_SYSTEM_IP "ssh -t -i disco_key ec2-user@$HIGHSIDE_BASTION_IP"` +Enter 3 +Sleep 4s +Ctrl+L +Sleep 4s +Show + +Type `/mnt/high-side/openshift-install create cluster --log-level=DEBUG` +Enter 1a +Sleep 60s diff --git a/public/static/images/disconnected/registry-install.tape b/public/static/images/disconnected/registry-install.tape new file mode 100644 index 0000000..0ee298b --- /dev/null +++ b/public/static/images/disconnected/registry-install.tape @@ -0,0 +1,42 @@ +Output registry-install.gif + +Require echo + +Set Shell "bash" +Set FontSize 32 +Set Width 1920 +Set Height 800 + +Hide +Type `cd` +Enter 1 +Type `SBP_PATH=/home/james/Downloads/sbp` +Enter 1 +Type `source /home/james/Downloads/sbp/sbp.bash` +Enter 1 +Type `#SG_ID=$(aws ec2 describe-security-groups --filters "Name=tag:Name,Values=disco-sg" | jq -r '.SecurityGroups[0].GroupId')` +Enter 1 +Sleep 1s +Type `#PUBLIC_SUBNET=$(aws ec2 describe-subnets | jq '.Subnets[] | select(.Tags[].Value=="Public Subnet - disco").SubnetId' -r)` +Enter 1 +Sleep 5s +Type `PREP_SYSTEM_IP=$(aws ec2 describe-instances --filters "Name=tag:Name,Values=disco-prep-system" | jq -r '.Reservations[0].Instances[0].PublicIpAddress')` +Enter 1 +Sleep 2s + +Type `HIGHSIDE_BASTION_IP=$(aws ec2 describe-instances --filters "Name=tag:Name,Values=disco-bastion-server" | jq -r '.Reservations[0].Instances[0].PrivateIpAddress')` +Enter 1 +Ctrl+L +Sleep 5s +Show +Sleep 4s +Type `ssh -t -i disco_key ec2-user@$PREP_SYSTEM_IP "ssh -t -i disco_key ec2-user@$HIGHSIDE_BASTION_IP"` +Enter 3 +Sleep 4s + +Type `cd /mnt/high-side` +Enter 1 +Sleep 2s +Type `./mirror-registry install --quayHostname $(hostname) --quayRoot /mnt/high-side/quay/quay-install --quayStorage /mnt/high-side/quay/quay-storage --pgStorage /mnt/high-side/quay/pg-data --initPassword discopass` +Enter 1 +Sleep 30 diff --git a/public/static/images/disconnected/registry-push.tape b/public/static/images/disconnected/registry-push.tape new file mode 100644 index 0000000..d97df6c --- /dev/null +++ b/public/static/images/disconnected/registry-push.tape @@ -0,0 +1,47 @@ +Output registry-push.gif + +Require echo + +Set Shell "bash" +Set FontSize 32 +Set Width 1920 +Set Height 800 + +Hide +Type `cd` +Enter 1 +Type `SBP_PATH=/home/james/Downloads/sbp` +Enter 1 +Type `source /home/james/Downloads/sbp/sbp.bash` +Enter 1 +Type `#SG_ID=$(aws ec2 describe-security-groups --filters "Name=tag:Name,Values=disco-sg" | jq -r '.SecurityGroups[0].GroupId')` +Enter 1 +Sleep 1s +Type `#PUBLIC_SUBNET=$(aws ec2 describe-subnets | jq '.Subnets[] | select(.Tags[].Value=="Public Subnet - disco").SubnetId' -r)` +Enter 1 +Sleep 5s +Type `PREP_SYSTEM_IP=$(aws ec2 describe-instances --filters "Name=tag:Name,Values=disco-prep-system" | jq -r '.Reservations[0].Instances[0].PublicIpAddress')` +Enter 1 +Sleep 2s + +Type `HIGHSIDE_BASTION_IP=$(aws ec2 describe-instances --filters "Name=tag:Name,Values=disco-bastion-server" | jq -r '.Reservations[0].Instances[0].PrivateIpAddress')` +Enter 1 +Sleep 4s +Type `ssh -t -i disco_key ec2-user@$PREP_SYSTEM_IP "ssh -t -i disco_key ec2-user@$HIGHSIDE_BASTION_IP"` +Enter 3 +Sleep 4s +Ctrl+L +Sleep 4s +Show + +Type `sudo cp /mnt/high-side/oc /usr/local/bin/` +Enter 1 +Sleep 2s +Type `sudo cp /mnt/high-side/oc-mirror /usr/local/bin/` +Enter 1 +Sleep 4s + +Enter 3 +Type `oc mirror --from=/mnt/high-side/mirror_seq1_000000.tar --dest-skip-tls docker://$(hostname):8443` +Enter 1 +Sleep 30s diff --git a/public/static/images/disconnected/security-group.tape b/public/static/images/disconnected/security-group.tape new file mode 100644 index 0000000..df6163b --- /dev/null +++ b/public/static/images/disconnected/security-group.tape @@ -0,0 +1,101 @@ +# VHS documentation +# +# Output: +# Output .gif Create a GIF output at the given +# Output .mp4 Create an MP4 output at the given +# Output .webm Create a WebM output at the given +# +# Require: +# Require Ensure a program is on the $PATH to proceed +# +# Settings: +# Set FontSize Set the font size of the terminal +# Set FontFamily Set the font family of the terminal +# Set Height Set the height of the terminal +# Set Width Set the width of the terminal +# Set LetterSpacing Set the font letter spacing (tracking) +# Set LineHeight Set the font line height +# Set LoopOffset % Set the starting frame offset for the GIF loop +# Set Theme Set the theme of the terminal +# Set Padding Set the padding of the terminal +# Set Framerate Set the framerate of the recording +# Set PlaybackSpeed Set the playback speed of the recording +# Set MarginFill Set the file or color the margin will be filled with. +# Set Margin Set the size of the margin. Has no effect if MarginFill isn't set. +# Set BorderRadius Set terminal border radius, in pixels. +# Set WindowBar Set window bar type. (one of: Rings, RingsRight, Colorful, ColorfulRight) +# Set WindowBarSize Set window bar size, in pixels. Default is 40. +# Set TypingSpeed