Skip to content

Instantly share code, notes, and snippets.

@sowmenappd
Last active January 19, 2023 23:16
Show Gist options
  • Save sowmenappd/3dfd5fded57cabbbe9f51605fc8e63f1 to your computer and use it in GitHub Desktop.
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
#!/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