aws-chmurki/user_data.py

12 lines
311 B
Python
Raw Normal View History

2023-01-26 19:40:53 +01:00
user_data = f'''
#!/bin/bash
sudo yum update -y
sudo yum install git -y
git clone https://git.wmi.amu.edu.pl/s444391/aws-chmurki.git
2023-01-29 23:37:24 +01:00
cd aws-chmurki/get
2023-01-26 19:40:53 +01:00
sudo yum install docker -y
sudo service docker start
sudo usermod -a -G docker ec2-user
docker build -t webservice .
docker run -d -p 80:8080 -t webservice
'''