tf-aws-demo/modules/app/resources/bootstrap.sh

12 lines
207 B
Bash
Raw Permalink Normal View History

2022-08-25 15:00:54 +02:00
#!/bin/bash
yum update -y
amazon-linux-extras install docker
service docker start
usermod -a -G docker ec2-user
chkconfig docker on
docker run \
-p 80:80 \
--restart unless-stopped \
nginxdemos/hello