From 069f482853f57e3d6383156ece3f5be83ac5c385 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 10 Jan 2024 21:47:27 +0000 Subject: [PATCH 1/4] Bump gitpython from 3.1.40 to 3.1.41 Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.40 to 3.1.41. - [Release notes](https://github.com/gitpython-developers/GitPython/releases) - [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES) - [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.40...3.1.41) --- updated-dependencies: - dependency-name: gitpython dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c4f3190..97a1dfa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ colorama==0.4.6 docker==6.1.3 Flask==3.0.0 gitdb==4.0.11 -GitPython==3.1.40 +GitPython==3.1.41 idna==3.6 itsdangerous==2.1.2 Jinja2==3.1.2 From 13506749002d471d55f524d4a12de056d2d7a9d7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 10:12:24 +0000 Subject: [PATCH 2/4] Bump flask from 3.0.0 to 3.0.2 Bumps [flask](https://github.com/pallets/flask) from 3.0.0 to 3.0.2. - [Release notes](https://github.com/pallets/flask/releases) - [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/flask/compare/3.0.0...3.0.2) --- updated-dependencies: - dependency-name: flask dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 97a1dfa..9749553 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,7 @@ charset-normalizer==3.2.0 click==8.1.7 colorama==0.4.6 docker==6.1.3 -Flask==3.0.0 +Flask==3.0.2 gitdb==4.0.11 GitPython==3.1.41 idna==3.6 From 334c8813fed5e734dae0ce0652cae71bbfb0d48d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 9 Feb 2024 10:12:28 +0000 Subject: [PATCH 3/4] Bump jinja2 from 3.1.2 to 3.1.3 Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.3. - [Release notes](https://github.com/pallets/jinja/releases) - [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst) - [Commits](https://github.com/pallets/jinja/compare/3.1.2...3.1.3) --- updated-dependencies: - dependency-name: jinja2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 97a1dfa..4b58f6c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ gitdb==4.0.11 GitPython==3.1.41 idna==3.6 itsdangerous==2.1.2 -Jinja2==3.1.2 +Jinja2==3.1.3 MarkupSafe==2.1.3 requests==2.31.0 six==1.16.0 From 1139c87889b7d4284ddcd43e1b4330907464f4b5 Mon Sep 17 00:00:00 2001 From: stolschm Date: Sun, 10 Mar 2024 01:28:15 +0100 Subject: [PATCH 4/4] Evaluation of port mappings disabled for Docker-Compose Closes #118 --- .idea/microservice-updater.iml | 2 +- .idea/misc.xml | 5 ++++- requirements.txt | 14 +++++++------- tasks/start_service.py | 7 ++++--- 4 files changed, 16 insertions(+), 12 deletions(-) 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 5a47989..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 +docker==7.0.0 Flask==3.0.2 gitdb==4.0.11 -GitPython==3.1.41 +GitPython==3.1.42 idna==3.6 itsdangerous==2.1.2 Jinja2==3.1.3 -MarkupSafe==2.1.3 +MarkupSafe==2.1.5 requests==2.31.0 six==1.16.0 smmap==5.0.1 -urllib3==2.1.0 -websocket-client==1.6.4 +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':