From 32575fe8bb0b4f169b86fa59216b8d6cf1b2bded Mon Sep 17 00:00:00 2001 From: korne Date: Sun, 15 Jan 2023 20:34:02 +0100 Subject: [PATCH] zadanie 4 hetzner --- {zadania 4 => zadania4}/hetzner/create.py | 3 ++- {zadania 4 => zadania4}/hetzner/delete.py | 0 {zadania 4 => zadania4}/hetzner/run.sh | 0 {zadania 4 => zadania4}/webservice | Bin 4 files changed, 2 insertions(+), 1 deletion(-) rename {zadania 4 => zadania4}/hetzner/create.py (99%) rename {zadania 4 => zadania4}/hetzner/delete.py (100%) rename {zadania 4 => zadania4}/hetzner/run.sh (100%) rename {zadania 4 => zadania4}/webservice (100%) diff --git a/zadania 4/hetzner/create.py b/zadania4/hetzner/create.py similarity index 99% rename from zadania 4/hetzner/create.py rename to zadania4/hetzner/create.py index c07486a..a98cc17 100644 --- a/zadania 4/hetzner/create.py +++ b/zadania4/hetzner/create.py @@ -38,11 +38,12 @@ runcmd: - systemctl start docker - systemctl enable docker - git clone https://git.wmi.amu.edu.pl/s478815/PZC.git - - cd PZC/zadania 4 + - cd PZC/zadania4 - docker build -t webservice . - docker run -d -p 80:8080 -t webservice ''' + vnet_name = f"{PREFIX}-network" vnet = client.networks.get_by_name(vnet_name) or None if not vnet: diff --git a/zadania 4/hetzner/delete.py b/zadania4/hetzner/delete.py similarity index 100% rename from zadania 4/hetzner/delete.py rename to zadania4/hetzner/delete.py diff --git a/zadania 4/hetzner/run.sh b/zadania4/hetzner/run.sh similarity index 100% rename from zadania 4/hetzner/run.sh rename to zadania4/hetzner/run.sh diff --git a/zadania 4/webservice b/zadania4/webservice similarity index 100% rename from zadania 4/webservice rename to zadania4/webservice