Created
July 16, 2020 16:49
-
-
Save nicholaslck/bcb60e536024ee668e85226b06e6f927 to your computer and use it in GitHub Desktop.
Amazon Linux2 Basic Install Commands
This file contains hidden or 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 node 10 | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash | |
. ~/.nvm/nvm.sh | |
nvm install 10.21 | |
nvm use 10.21 | |
node -e "console.log('Running Node.js ' + process.version)" | |
# Install Git | |
sudo yum update -y | |
sudo yum install git -y | |
git version | |
# Install Docker | |
sudo yum install docker -y | |
sudo service docker start | |
# Install Docker Compose | |
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/bin/docker-compose | |
sudo chmod +x /usr/bin/docker-compose | |
sudo docker-compose version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment