Last active
April 26, 2021 12:10
-
-
Save AwsafAlam/c49775d6c94d474ef5bc0d3451f7b783 to your computer and use it in GitHub Desktop.
docker installation script on instance startup
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 | |
# install latest version of docker the lazy way | |
curl -sSL https://get.docker.com | sh | |
# make it so you don't need to sudo to run docker commands | |
usermod -aG docker ubuntu | |
# install docker-compose | |
curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
chmod +x /usr/local/bin/docker-compose | |
sudo apt install make | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt update && sudo apt install yarn | |
sudo apt install node-typescript | |
git clone https://gitlab.com/onlinesohopathi/backend-services.git | |
echo "starting deployment" | |
cd ~/backend-services/ | |
make get |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment