pzc-hetzner/balancer/user_data.py
Andrzej Preibisz 509b3bf63b AWS
2023-01-15 19:31:36 +01:00

13 lines
313 B
Python

user_data = f'''
#!/bin/bash
sudo yum update -y
sudo yum install git -y
git clone https://git.wmi.amu.edu.pl/s444465/pzc-hetzner
cd pzc-hetzner/balancer
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
'''