Skip to content

Instantly share code, notes, and snippets.

@sowmenappd
Last active Mar 4, 2021
Embed
What would you like to do?
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