2023-01-27 21:36:03 +01:00
|
|
|
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
|
2023-01-28 22:05:38 +01:00
|
|
|
docker build -t invoice .
|
|
|
|
docker run -d -p 80:8000 -t invoice
|
2023-01-27 21:36:03 +01:00
|
|
|
'''
|