Created
August 10, 2020 20:02
-
-
Save AllieUbisse/5634fbe537b7b4eac1cb91d049f4a9c0 to your computer and use it in GitHub Desktop.
How to execute a Bash script from GitHub Gist?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
################################################################################## | |
# ---------------------------------------------------------------- | |
# THIS SCRIPT WILL HELP YOUR AUTOMATE THE DOCKER INSTALATION STEPS | |
# ---------------------------------------------------------------- | |
# Test was run via aws ec2 instance. | |
# | |
# AUTHOR: | |
# Name: Allie Silver Ubisse | |
# Email: AllieSilverUbisse@gmail.com | |
################################################################################## | |
# | |
# | |
# | |
echo "============================================================================" | |
echo "( 1 of 7 ) WARMING: You are about to install docker to your machine " | |
echo "============================================================================" | |
# | |
sudo apt-get update | |
echo "=========================================================================================================" | |
echo "( 2 of 7 ) Installing: curl apt-transport-https ca-certificates gnupg-agent software-properties-common " | |
echo "=========================================================================================================" | |
sudo apt-get install \ | |
apt-transport-https \ | |
ca-certificates\ | |
curl \ | |
gnupg-agent \ | |
software-properties-common -y | |
echo "============================================================================" | |
echo "( 3 of 7 ) TASK " | |
echo "============================================================================" | |
# | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
echo "============================================================================" | |
echo "( 4 of 7 ) INSTALLING: docker-ce docker-ce-cli containerd.io " | |
echo "============================================================================" | |
# | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
apt-cache madison docker-ce | |
echo "============================================================================" | |
echo "( 5 of 7 ) INSTALLING: install docker-ce docker-ce-cli containerd.io " | |
echo "============================================================================" | |
# | |
sudo apt-get install docker-ce docker-ce-cli containerd.io | |
echo "============================================================================" | |
echo "( 6 of 7 ) INSTALLING: docker.io " | |
echo "============================================================================" | |
# | |
sudo apt install docker.io | |
echo "============================================================================" | |
echo "( 7 of 7 ) INSTALLING: docker-compose " | |
echo "============================================================================" | |
# | |
sudo apt install docker-compose | |
echo "============================================================================" | |
echo "( 7 of 7 ) INSTALLING: docker-compose " | |
echo "============================================================================" | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment