Added tapes for gifs as code.
This commit is contained in:
35
public/static/images/disconnected/connect-bastion-ec2.tape
Normal file
35
public/static/images/disconnected/connect-bastion-ec2.tape
Normal file
@ -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
|
||||
34
public/static/images/disconnected/connect-prep-ec2.tape
Normal file
34
public/static/images/disconnected/connect-prep-ec2.tape
Normal file
@ -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
|
||||
81
public/static/images/disconnected/download-tools.tape
Normal file
81
public/static/images/disconnected/download-tools.tape
Normal file
@ -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
|
||||
50
public/static/images/disconnected/launch-bastion-ec2.tape
Normal file
50
public/static/images/disconnected/launch-bastion-ec2.tape
Normal file
@ -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
|
||||
43
public/static/images/disconnected/launch-prep-ec2.tape
Normal file
43
public/static/images/disconnected/launch-prep-ec2.tape
Normal file
@ -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
|
||||
39
public/static/images/disconnected/openshift-install.tape
Normal file
39
public/static/images/disconnected/openshift-install.tape
Normal file
@ -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
|
||||
42
public/static/images/disconnected/registry-install.tape
Normal file
42
public/static/images/disconnected/registry-install.tape
Normal file
@ -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
|
||||
47
public/static/images/disconnected/registry-push.tape
Normal file
47
public/static/images/disconnected/registry-push.tape
Normal file
@ -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
|
||||
101
public/static/images/disconnected/security-group.tape
Normal file
101
public/static/images/disconnected/security-group.tape
Normal file
@ -0,0 +1,101 @@
|
||||
# VHS documentation
|
||||
#
|
||||
# Output:
|
||||
# Output <path>.gif Create a GIF output at the given <path>
|
||||
# Output <path>.mp4 Create an MP4 output at the given <path>
|
||||
# Output <path>.webm Create a WebM output at the given <path>
|
||||
#
|
||||
# Require:
|
||||
# Require <string> Ensure a program is on the $PATH to proceed
|
||||
#
|
||||
# Settings:
|
||||
# Set FontSize <number> Set the font size of the terminal
|
||||
# Set FontFamily <string> Set the font family of the terminal
|
||||
# Set Height <number> Set the height of the terminal
|
||||
# Set Width <number> Set the width of the terminal
|
||||
# Set LetterSpacing <float> Set the font letter spacing (tracking)
|
||||
# Set LineHeight <float> Set the font line height
|
||||
# Set LoopOffset <float>% Set the starting frame offset for the GIF loop
|
||||
# Set Theme <json|string> Set the theme of the terminal
|
||||
# Set Padding <number> Set the padding of the terminal
|
||||
# Set Framerate <number> Set the framerate of the recording
|
||||
# Set PlaybackSpeed <float> Set the playback speed of the recording
|
||||
# Set MarginFill <file|#000000> Set the file or color the margin will be filled with.
|
||||
# Set Margin <number> Set the size of the margin. Has no effect if MarginFill isn't set.
|
||||
# Set BorderRadius <number> Set terminal border radius, in pixels.
|
||||
# Set WindowBar <string> Set window bar type. (one of: Rings, RingsRight, Colorful, ColorfulRight)
|
||||
# Set WindowBarSize <number> Set window bar size, in pixels. Default is 40.
|
||||
# Set TypingSpeed <time> Set the typing speed of the terminal. Default is 50ms.
|
||||
#
|
||||
# Sleep:
|
||||
# Sleep <time> Sleep for a set amount of <time> in seconds
|
||||
#
|
||||
# Type:
|
||||
# Type[@<time>] "<characters>" Type <characters> into the terminal with a
|
||||
# <time> delay between each character
|
||||
#
|
||||
# Keys:
|
||||
# Escape[@<time>] [number] Press the Escape key
|
||||
# Backspace[@<time>] [number] Press the Backspace key
|
||||
# Delete[@<time>] [number] Press the Delete key
|
||||
# Insert[@<time>] [number] Press the Insert key
|
||||
# Down[@<time>] [number] Press the Down key
|
||||
# Enter[@<time>] [number] Press the Enter key
|
||||
# Space[@<time>] [number] Press the Space key
|
||||
# Tab[@<time>] [number] Press the Tab key
|
||||
# Left[@<time>] [number] Press the Left Arrow key
|
||||
# Right[@<time>] [number] Press the Right Arrow key
|
||||
# Up[@<time>] [number] Press the Up Arrow key
|
||||
# Down[@<time>] [number] Press the Down Arrow key
|
||||
# PageUp[@<time>] [number] Press the Page Up key
|
||||
# PageDown[@<time>] [number] Press the Page Down key
|
||||
# Ctrl+<key> Press the Control key + <key> (e.g. Ctrl+C)
|
||||
#
|
||||
# Display:
|
||||
# Hide Hide the subsequent commands from the output
|
||||
# Show Show the subsequent commands in the output
|
||||
|
||||
Output security-group.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
|
||||
Ctrl+L
|
||||
Show
|
||||
|
||||
# Obtain vpc id
|
||||
Type `VPC_ID=$(aws ec2 describe-vpcs | jq '.Vpcs[] | select(.Tags[].Value=="disco").VpcId' -r)`
|
||||
Enter 1
|
||||
Sleep 2s
|
||||
Type "echo Virtual private cloud id is: ${VPC_ID}"
|
||||
Enter 1
|
||||
Sleep 2s
|
||||
|
||||
# Obtain first public subnet id
|
||||
Type `PUBLIC_SUBNET=$(aws ec2 describe-subnets | jq '.Subnets[] | select(.Tags[].Value=="Public Subnet - disco").SubnetId' -r)`
|
||||
Enter 1
|
||||
Sleep 2s
|
||||
|
||||
# Create security group
|
||||
Type `aws ec2 create-security-group --group-name disco-sg --description disco-sg --vpc-id ${VPC_ID} --tag-specifications "ResourceType=security-group,Tags=[{Key=Name,Value=disco-sg}]"`
|
||||
Enter 1
|
||||
Sleep 2s
|
||||
|
||||
# Store security group id
|
||||
Type `SG_ID=$(aws ec2 describe-security-groups --filters "Name=tag:Name,Values=disco-sg" | jq -r '.SecurityGroups[0].GroupId')`
|
||||
Enter 1
|
||||
Type `echo "Security group id is: ${SG_ID}"`
|
||||
Enter 1
|
||||
|
||||
Sleep 2s
|
||||
54
public/static/images/disconnected/sneakernet-transfer.tape
Normal file
54
public/static/images/disconnected/sneakernet-transfer.tape
Normal file
@ -0,0 +1,54 @@
|
||||
Output sneakernet-transfer.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
|
||||
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 `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 `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 3
|
||||
Sleep 4s
|
||||
Type `exit`
|
||||
Enter 1
|
||||
Sleep 2s
|
||||
|
||||
Type `ssh -t -i disco_key ec2-user@$PREP_SYSTEM_IP "rsync -avP -e 'ssh -i disco_key' /mnt/high-side ec2-user@$HIGHSIDE_BASTION_IP:/mnt"`
|
||||
Enter 1
|
||||
Sleep 30
|
||||
25
public/static/images/disconnected/ssh-port-ingress.tape
Normal file
25
public/static/images/disconnected/ssh-port-ingress.tape
Normal file
@ -0,0 +1,25 @@
|
||||
Output ssh-port-ingress.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
|
||||
Ctrl+L
|
||||
Sleep 4s
|
||||
Show
|
||||
|
||||
Type `aws ec2 authorize-security-group-ingress --group-id $SG_ID --protocol tcp --port 22 --cidr 0.0.0.0/0`
|
||||
Enter 1
|
||||
Sleep 4s
|
||||
Reference in New Issue
Block a user