diff --git a/.idea/microservice-updater.iml b/.idea/microservice-updater.iml index 46ff4c1..02d2170 100644 --- a/.idea/microservice-updater.iml +++ b/.idea/microservice-updater.iml @@ -7,7 +7,7 @@ - + diff --git a/.idea/misc.xml b/.idea/misc.xml index 31172cc..d8161aa 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,7 @@ - + + + \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 71d1bd9..57f0b0a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,18 +1,18 @@ -certifi==2023.11.17 -charset-normalizer==3.2.0 +certifi==2024.2.2 +charset-normalizer==3.3.2 click==8.1.7 colorama==0.4.6 -docker==6.1.3 -Flask==3.0.0 +docker==7.0.0 +Flask==3.0.2 gitdb==4.0.11 -GitPython==3.1.40 +GitPython==3.1.42 idna==3.6 itsdangerous==2.1.2 -Jinja2==3.1.2 -MarkupSafe==2.1.3 +Jinja2==3.1.3 +MarkupSafe==2.1.5 requests==2.31.0 six==1.16.0 smmap==5.0.1 -urllib3==2.1.0 +urllib3==2.2.1 websocket-client==1.7.0 Werkzeug==3.0.1 diff --git a/tasks/start_service.py b/tasks/start_service.py index beaa58a..ff8ca04 100644 --- a/tasks/start_service.py +++ b/tasks/start_service.py @@ -31,9 +31,10 @@ def start_service(service_id: str, mode: str, db, cursor, port, dockerfile, tag, ports = {} - for port_mapping in port.split(','): - ex_port, in_port = port_mapping.split(':') - ports[in_port] = ex_port + if docker_mode in ['docker', 'dockerfile']: + for port_mapping in port.split(','): + ex_port, in_port = port_mapping.split(':') + ports[in_port] = ex_port # docker image from git repository if mode == 'docker':