Last active
January 19, 2023 23:16
-
-
Save sowmenappd/3dfd5fded57cabbbe9f51605fc8e63f1 to your computer and use it in GitHub Desktop.
Shell script for setting up Docker, docker-compose, and Node JS on Amazon Linux 2
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 | |
sudo amazon-linux-extras install -y docker | |
sudo service docker start | |
sudo usermod -a -G docker ec2-user | |
sudo chkconfig docker on | |
sudo curl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
sudo yum install -y gcc-c++ make | |
curl -sL https://rpm.nodesource.com/setup_14.x | sudo -E bash - | |
sudo yum install -y nodejs git | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment