Commit 9006d602 authored by Zied SELLAMI's avatar Zied SELLAMI
Browse files

Update README.MD

parent d63367ac
......@@ -31,14 +31,24 @@ wget https://ci.linagora.com/zsellami/priority-inbox/raw/master/Dockerfile
docker build -t demo:priorityInbox .
```
## Building a storage volume for model data
```
docker volume create volume_name
```
## Running the image
**Before running the image**. Use the next command to get the full path for the docker storage volume:
```
docker volume inspect volume_name
```
**The image expose the port 9991 with the IP 0.0.0.0 .** To run the service on a host port do the next instruction:
```
docker run -it -p 5551:9991 demo:priorityInbox
docker run --volume volume_storage_path:/priority-inbox/priorityInbox/models/ -it -p 5551:9991 demo:priorityInbox
```
## Calling the service
### Keywords extractor service
### Get email type and score service
```
curl -X POST 'http://0.0.0.0:5551/rest/priorityinbox/parsejson' -F "file=@/path/to/email.json"
```
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment