From dd561686f5967bf5a9cd2bb1a919132d187f3795 Mon Sep 17 00:00:00 2001 From: Andrea Franchini <hello@andreafranchini.com> Date: Mon, 27 Feb 2023 19:08:19 +0100 Subject: [PATCH] dockerfile port update --- Dockerfile | 2 +- README.md | 4 ++-- mc_openapi/doml_mc/xmi_parser/doml_model.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index bfdfb93..91058b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ RUN pip install --upgrade pip \ && pip install -r /opt/mc_openapi/requirements.txt WORKDIR /opt/mc_openapi -ENV UVICORN_PORT=80 \ +ENV UVICORN_PORT=8080 \ UVICORN_HOST=0.0.0.0 CMD ["uvicorn", "--interface", "wsgi", "mc_openapi.app_config:app"] diff --git a/README.md b/README.md index 4c4b860..12333fd 100644 --- a/README.md +++ b/README.md @@ -57,9 +57,9 @@ And then run it with ```sh docker run -d wp4/dmc ``` -The Uvicorn server will be running and listening on port 80 of the container. +The Uvicorn server will be running and listening on port `8080` of the container. To use it locally, you may bind it with port `8080` of `localhost` -by adding `-p 127.0.0.1:8080:80/tcp` to the `docker run` command. +by adding `-p 127.0.0.1:8080:8080/tcp` to the `docker run` command. ## Building the Documentation diff --git a/mc_openapi/doml_mc/xmi_parser/doml_model.py b/mc_openapi/doml_mc/xmi_parser/doml_model.py index 7866e34..8aaf11b 100644 --- a/mc_openapi/doml_mc/xmi_parser/doml_model.py +++ b/mc_openapi/doml_mc/xmi_parser/doml_model.py @@ -62,7 +62,7 @@ def infer_domlx_version(raw_model: bytes) -> DOMLVersion: else: return DOMLVersion.V2_0 # Should be DOMLVersion.V1_0, but we use V2_0 because the 2.1 IDE doesn't fill it else: - raise RuntimeError(f"Supplied with malformed DOMLX model or unsupported DOML version.\nIn use version is: {DOMLVersion.V2_1}") + raise RuntimeError(f"Supplied with malformed DOMLX model or unsupported DOML version.\nIn use version is: {DOMLVersion.V2_0}") def parse_doml_model(raw_model: bytes, doml_version: Optional[DOMLVersion]) -> Tuple[IntermediateModel, DOMLVersion]: -- GitLab