Skip to content
Snippets Groups Projects
Commit 4a2b6fc7 authored by Michele Chiari's avatar Michele Chiari
Browse files

Update Dockerfile

parent 34b195b4
No related branches found
No related tags found
No related merge requests found
FROM python:3.8.12-bullseye
FROM python:3.9.12-bullseye
COPY . /opt/mc_openapi
......
......@@ -6,34 +6,34 @@ This project is packaged with [Poetry](https://python-poetry.org/).
Build with
```sh
$ poetry install
poetry install
```
then run with
```sh
$ poetry run python -m mc_openapi
poetry run python -m mc_openapi
```
Run tests with:
```sh
$ poetry run python -m pytest
poetry run python -m pytest
```
## Run with uWSGI
The project may be run with [uWSGI](https://uwsgi-docs.readthedocs.io/) as follows:
```sh
$ uwsgi --http :8080 -w mc_openapi.app_config -p 4
uwsgi --http :8080 -w mc_openapi.app_config -p 4
```
## Run with Docker
First, build the docker image with the usual
```sh
$ docker build -t wp4/dmc .
docker build -t wp4/dmc .
```
And then run it with
```sh
$ docker run -d wp4/dmc
docker run -d wp4/dmc
```
The uWSGI server will be running and listening on port 80 of the container.
......
__version__ = '0.1.0'
__version__ = '0.2.0'
[tool.poetry]
name = "mc_openapi"
version = "0.1.0"
version = "0.2.0"
description = "OpenAPI interface for the PIACERE DOML model checker."
authors = ["Michele Chiari <michele.chiari@polimi.it>", "Michele De Pascalis <michele.de.pascalis.1024@gmail.com>"]
license = "Apache-2.0"
......
This diff is collapsed.
......@@ -3,7 +3,7 @@ import requests
def test_version():
assert __version__ == '0.1.0'
assert __version__ == '0.2.0'
def test_post_sat():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment