5.3
This commit is contained in:
parent
361ee542c2
commit
5557e1c2c9
@ -6,14 +6,14 @@
|
|||||||
var data = new FormData()
|
var data = new FormData()
|
||||||
data.append('file', document.getElementById("docpicker").files[0])
|
data.append('file', document.getElementById("docpicker").files[0])
|
||||||
document.getElementById("result").innerHTML = "Fetching..."
|
document.getElementById("result").innerHTML = "Fetching..."
|
||||||
resp = await fetch('http://:80/invoice', {method: "POST", body: data})
|
resp = await fetch('http://44.208.164.194:80/invoice', {method: "POST", body: data})
|
||||||
document.getElementById("result").innerHTML = "Fetched..."
|
document.getElementById("result").innerHTML = "Fetched..."
|
||||||
data = await resp.json()
|
data = await resp.json()
|
||||||
var result = JSON.stringify(data)
|
var result = JSON.stringify(data)
|
||||||
document.getElementById("result").innerHTML = result
|
document.getElementById("result").innerHTML = result
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<title>Chmuuuuuuurki</title>
|
<title>Chmura</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<input type="file" id="docpicker" accept=".pdf" onchange="parse()" />
|
<input type="file" id="docpicker" accept=".pdf" onchange="parse()" />
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
aws_access_key_id=''
|
aws_access_key_id="ASIATX53GASX2ATRMAQU"
|
||||||
aws_secret_access_key=''
|
aws_secret_access_key="u7/YjWsa9eOKEkO3V40nNHycBT2Dt3Ce0OEInYqi"
|
||||||
aws_session_token=''
|
aws_session_token="FwoGZXIvYXdzEP7//////////wEaDO/NQgbzkIfgxuWQZyLFAenjajTNxXGZeuKz9qrQYg3Qk8owHN4NF2boShuAvcdMaoN0uLag0TFN56rtRkMWzER8IaF9vy3CfHIwP/HZ2KBiYYD795rXPRGlvIr18ut1QJ2Sn0yX7U3ZTC+C44GtsDHppDBxUqISKw0URvMOehYANcIqgjIa++zEuV3AYNpADt/1qBdrADtSk8p4UQ016GRgEMp4yAmow1jJaJ3i7eoXxaXQzyuqH9jCCOFJVrvMpO8aqxK+u+Mz9KDTjyXCj4YqRgBPKL+L1p4GMi1QzeIQtQ2ZqFqXqYzpMWogji8zzQW9EeQkyoKENmcPV8PBIpa/YRHP/CzYvlg="
|
||||||
VPC=''
|
VPC='vpc-0e72b15a580db6483'
|
||||||
ID='444376'
|
ID='olaa'
|
||||||
|
|
||||||
import boto3
|
import boto3
|
||||||
ec2 = boto3.resource(
|
ec2 = boto3.resource(
|
||||||
@ -43,13 +43,13 @@ instances = ec2.create_instances(
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
sudo yum update -y
|
sudo yum update -y
|
||||||
sudo yum install git -y
|
sudo yum install git -y
|
||||||
git clone git clone https://git.wmi.amu.edu.pl/s444376/DPZC_Ola.git
|
git clone https://git.wmi.amu.edu.pl/s444376/DPZC_Ola.git
|
||||||
cd DPZC_Ola/Zadanie_5.2_5.3
|
cd DPZC_Ola/Zadanie_5.2_5.3
|
||||||
sudo yum install docker -y
|
sudo yum install docker -y
|
||||||
sudo service docker start
|
sudo service docker start
|
||||||
sudo usermod -a -G docker ec2-user
|
sudo usermod -a -G docker ec2-user
|
||||||
sudo docker build -t invoice .
|
docker build -t invoice .
|
||||||
sudo docker run -d -p 80:8000 -t invoice
|
docker run -d -p 80:8000 -t invoice
|
||||||
''',
|
''',
|
||||||
SecurityGroups=[security_group.group_name]
|
SecurityGroups=[security_group.group_name]
|
||||||
)
|
)
|
Loading…
Reference in New Issue
Block a user