Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
senpy
plugin-example
Commits
4ec98ef7
Commit
4ec98ef7
authored
Jun 12, 2017
by
J. Fernando Sánchez
Browse files
Added README and docker-compose, updated data
parent
8bbd2f7b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Dockerfile
0 → 100644
View file @
4ec98ef7
FROM
gsiupm/senpy:0.8.8
MAINTAINER
jfernando@dit.upm.es
COPY
data /
\ No newline at end of file
README.md
0 → 100644
View file @
4ec98ef7
# 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
)
.
data
@
45d81050
Compare
9dcdfdd7
...
45d81050
Subproject commit
9dcdfdd7bd1758f8a0e32dfbb3510fa6f4e5d2b4
Subproject commit
45d810504172e2361277556a1a1f81660920e6d7
docker-compose.yaml
0 → 100644
View file @
4ec98ef7
version
:
'
2'
services
:
senpy-example
:
build
:
.
volumes
:
-
.:/usr/src/app/
-
data:/data
ports
:
-
"
5000:5000"
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment