Commit 4ec98ef7 authored by J. Fernando Sánchez's avatar J. Fernando Sánchez
Browse files

Added README and docker-compose, updated data

parent 8bbd2f7b
FROM gsiupm/senpy:0.8.8
MAINTAINER jfernando@dit.upm.es
COPY data /
\ No newline at end of file
# Senpy example plugin
This is the **Hello Senpy!** plugin.
In every request, it will replace the text of each entry with the contents of `data/datos.txt`.
## Installation
* Download
```
git clone https://lab.cluster.gsi.dit.upm.es/senpy/plugin-example.git
```
* Get data
```
cd plugin-example
git submodule update --init --recursive
```
* Run (docker compose)
```
docker-compose up
```
* Run (alternative, manual)
```
docker build . -t senpy-example
docker run -p 5000:5000 senpy-example
```
## Data format
`data/datos.txt` is a plain file.
## Development
The docker compose file included mounts the source code in the container.
After changing the code, you only need to restart the service:
```
docker-compose restart senpy-example
```
Or stop and run the docker container manually if you are not using compose.
## More information
[Senpy](http://senpy.readthedocs.io) is a semantic NLP framework developed at [GSI-UPM](https://www.gsi.dit.upm.es).
Subproject commit 9dcdfdd7bd1758f8a0e32dfbb3510fa6f4e5d2b4
Subproject commit 45d810504172e2361277556a1a1f81660920e6d7
version: '2'
services:
senpy-example:
build: .
volumes:
- .:/usr/src/app/
- data:/data
ports:
- "5000:5000"
\ No newline at end of file
Supports Markdown
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