saas-chmurki/user_data.py
2023-01-27 21:36:03 +01:00

12 lines
312 B
Python

user_data = '''
#!/bin/bash
sudo yum update -y
sudo yum install git -y
git clone https://git.wmi.amu.edu.pl/s444391/saas-chmurki.git
cd saas-chmurki
sudo yum install docker -y
sudo service docker start
sudo usermod -a -G docker ec2-user
sudo docker build -t invoice .
sudo docker run -d -p 80:8000 -t invoice
'''