12 lines
312 B
Python
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
|
||
|
'''
|