Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DOML Model Checker
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
PIACERE
public
The Platform
DOML Model Checker
Commits
dd561686
Unverified
Commit
dd561686
authored
2 years ago
by
Andrea Franchini
Browse files
Options
Downloads
Patches
Plain Diff
dockerfile port update
parent
a6d09a01
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+1
-1
1 addition, 1 deletion
Dockerfile
README.md
+2
-2
2 additions, 2 deletions
README.md
mc_openapi/doml_mc/xmi_parser/doml_model.py
+1
-1
1 addition, 1 deletion
mc_openapi/doml_mc/xmi_parser/doml_model.py
with
4 additions
and
4 deletions
Dockerfile
+
1
−
1
View file @
dd561686
...
...
@@ -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=80
80
\
UVICORN_HOST=0.0.0.0
CMD
["uvicorn", "--interface", "wsgi", "mc_openapi.app_config:app"]
This diff is collapsed.
Click to expand it.
README.md
+
2
−
2
View file @
dd561686
...
...
@@ -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
`
80
80`
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:80
80
/tcp`
to the
`docker run`
command.
## Building the Documentation
...
...
This diff is collapsed.
Click to expand it.
mc_openapi/doml_mc/xmi_parser/doml_model.py
+
1
−
1
View file @
dd561686
...
...
@@ -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.
\n
In use version is:
{
DOMLVersion
.
V2_
1
}
"
)
raise
RuntimeError
(
f
"
Supplied with malformed DOMLX model or unsupported DOML version.
\n
In use version is:
{
DOMLVersion
.
V2_
0
}
"
)
def
parse_doml_model
(
raw_model
:
bytes
,
doml_version
:
Optional
[
DOMLVersion
])
->
Tuple
[
IntermediateModel
,
DOMLVersion
]:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment