Loading service-resource-manager-implementation/Dockerfiledeleted 100644 → 0 +0 −25 Original line number Diff line number Diff line FROM python:3.12-alpine RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY requirements.txt /usr/src/app/ ENV PYTHONUNBUFFERED=1 RUN python3 -m venv .venv RUN source .venv/bin/activate RUN pip3 install --upgrade pip RUN pip3 install wheel --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org RUN pip3 install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org --no-cache-dir -r requirements.txt COPY . /usr/src/app EXPOSE 8080 ENTRYPOINT ["python3"] CMD ["-m", "src"] service-resource-manager-implementation/src/controllers/edge_cloud_management_controller.py +4 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,10 @@ def _safe_http_json_response(response): if response is None: return {"error": "Adapter returned no response"}, 502 # Adapter returned a bare status code integer if isinstance(response, int): return {}, response # Adapter returned HTTP response try: return response.json(), response.status_code Loading Loading
service-resource-manager-implementation/Dockerfiledeleted 100644 → 0 +0 −25 Original line number Diff line number Diff line FROM python:3.12-alpine RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY requirements.txt /usr/src/app/ ENV PYTHONUNBUFFERED=1 RUN python3 -m venv .venv RUN source .venv/bin/activate RUN pip3 install --upgrade pip RUN pip3 install wheel --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org RUN pip3 install --trusted-host pypi.org --trusted-host pypi.python.org --trusted-host=files.pythonhosted.org --no-cache-dir -r requirements.txt COPY . /usr/src/app EXPOSE 8080 ENTRYPOINT ["python3"] CMD ["-m", "src"]
service-resource-manager-implementation/src/controllers/edge_cloud_management_controller.py +4 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,10 @@ def _safe_http_json_response(response): if response is None: return {"error": "Adapter returned no response"}, 502 # Adapter returned a bare status code integer if isinstance(response, int): return {}, response # Adapter returned HTTP response try: return response.json(), response.status_code Loading