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/sh | |
| # https://stackoverflow.com/a/75036284/5371505 | |
| # Update all dependencies | |
| yum update -y | |
| # Install docker and git | |
| yum install docker git -y | |
| # Give user permissions | |
| usermod -a -G docker ec2-user | |
| id ec2-user | |
| newgrp docker |