Last active
July 22, 2023 05:46
-
-
Save ozzpy/fe8d26fe863b08f14cc77ef3a1338258 to your computer and use it in GitHub Desktop.
ubuntu-init
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
LANGUAGE=en_US.utf8 | |
LC_ALL=en_US.utf8 | |
LANGUAGE=en_US.UTF-8 | |
LC_ALL=en_US.UTF-8 | |
LC_TIME=en_US.UTF-8 | |
LC_MONETARY=en_US.UTF-8 | |
LC_CTYPE=en_US.UTF-8 | |
LC_ADDRESS=en_US.UTF-8 | |
LC_TELEPHONE=en_US.UTF-8 | |
LC_NAME=en_US.UTF-8 | |
LC_MEASUREMENT=en_US.UTF-8 | |
LC_IDENTIFICATION=en_US.UTF-8 | |
LC_NUMERIC=en_US.UTF-8 | |
LC_PAPER=en_US.UTF-8 | |
LANG=en_US.UTF-8 | |
sudo apt-get update -y | |
sudo apt-get install python3 -y | |
sudo apt-get install awscli -y | |
sudo apt-get install unzip -y | |
sudo apt-get install wget -y | |
sudo apt-get install mysql-client -y | |
sudo wget https://releases.hashicorp.com/terraform/1.5.2/terraform_1.5.2_linux_amd64.zip | |
sudo unzip terraform_1.5.2_linux_amd64.zip | |
sudo mv terraform /usr/local/bin/ | |
sudo apt-get remove docker docker-engine docker.io containerd runc -y | |
sudo apt-get update | |
sudo apt-get install \ | |
ca-certificates \ | |
curl \ | |
gnupg \ | |
lsb-release -y | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo \ | |
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get update -y | |
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin -y | |
sudo usermod -aG docker $USER | |
sudo docker swarm init | |
touch ~/user-data-done.log | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment