mirror of
				https://github.com/mr-vercetti/tf-aws-demo.git
				synced 2025-11-04 09:15:47 +01:00 
			
		
		
		
	Add demo-app autoscaling group
This commit is contained in:
		
							
								
								
									
										12
									
								
								modules/app/resources/bootstrap.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										12
									
								
								modules/app/resources/bootstrap.sh
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
#!/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
 | 
			
		||||
		Reference in New Issue
	
	Block a user