diff --git a/Dockerfile b/Dockerfile index bfdfb934d99907633722c02ff2c6d5f31d906017..91058b6e1cc012d8f53da9c33d1ee4b9a885162e 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 4c4b8601f9e28449055f8b757589cd8adabb5664..12333fd089a0b00d89c683d15378b51ff492c716 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 7866e3403439d7337fe2d648109767f87f31da91..8aaf11b240e9b21e05aee2fbe78455ef74789822 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]: