Skip to content

Instantly share code, notes, and snippets.

@AllieUbisse
Created August 10, 2020 20:02
Show Gist options
  • Save AllieUbisse/9eca9a1173f9e068009d602a5b648ff0 to your computer and use it in GitHub Desktop.
Save AllieUbisse/9eca9a1173f9e068009d602a5b648ff0 to your computer and use it in GitHub Desktop.
How to execute a Bash script from GitHub Gist?
#!/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