Skip to content

Instantly share code, notes, and snippets.

@nicholaslck
Created July 16, 2020 16:49
Show Gist options
  • Save nicholaslck/bcb60e536024ee668e85226b06e6f927 to your computer and use it in GitHub Desktop.
Save nicholaslck/bcb60e536024ee668e85226b06e6f927 to your computer and use it in GitHub Desktop.
Amazon Linux2 Basic Install Commands
#!/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