Skip to content

Commit b14efa8

Browse files
committed
Updated README
1 parent eec72a4 commit b14efa8

File tree

1 file changed

+6
-51
lines changed

1 file changed

+6
-51
lines changed

README.md

Lines changed: 6 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,10 @@
1-
# brat docker
1+
# brat docker para GIA
22

3-
This is a docker container deploying an instance of [brat](http://brat.nlplab.org/).
3+
Simplemente correr `docker-compose up` y luego abrir la [interfaz web](http://localhost:8080).
44

5+
Abrir la carpeta `gia`, dentro están las diversas tareas:
56

6-
### Installation
7+
* `TASS18-objects-actions-functions`: es la tarea para enviar al TASS 2018.
8+
El [primer documento](http://localhost:8080/#/gia/TASS18-object-action-function/doc001) de la tarea contiene las instrucciones para taggear.
79

8-
You will need two volumes to pass annotation data and user configuration to the container.
9-
Start by creating a named volume for each of them like this:
10-
11-
```bash
12-
$ docker volume create --name brat-data
13-
$ docker volume create --name brat-cfg
14-
```
15-
16-
The `brat-data` volume should be linked to your annotation data, and the `brat-cfg` volume should contain a file called `users.json`.
17-
To add multiple users to the server use `users.json` to list your users and their passwords like so:
18-
19-
```javascript
20-
{
21-
"user1": "password",
22-
"user2": "password",
23-
...
24-
}
25-
```
26-
27-
The data in these directories will persist even after stopping or removing the container.
28-
You can then start another brat container as above and you should see the same data.
29-
Note that if you are using `docker < 1.9.0` named volumes are not available and
30-
you'll have to use a data-only container and `--volumes-from` instead.
31-
32-
You can also add data and edit the users from within the container. To add some data directly inside the container do something like:
33-
``` bash
34-
$ docker run --name=brat-tmp -it -v brat-data:/bratdata cassj/brat /bin/bash
35-
$ cd /bratdata
36-
$ wget http://my.url/some-dataset.tgz
37-
$ tar -xvzf some-dataset.tgz
38-
$ exit
39-
$ docker rm brat-tmp
40-
```
41-
42-
Or, if you have data on the host machine, you can check where docker is keeping the named volume with:
43-
44-
```bash
45-
$ docker volume inspect brat-data
46-
```
47-
and you can just copy the data into there from your host.
48-
49-
50-
### Running
51-
52-
To run the container you need to specify a username, password and email address for BRAT as environment variables when you start the container. This user will have editor permissions.
53-
```bash
54-
$ docker run --name=brat -d -p 80:80 -v brat-data:/bratdata -v brat-cfg:/bratcfg -e BRAT_USERNAME=brat -e BRAT_PASSWORD=brat -e BRAT_EMAIL=brat@example.com cassj/brat
55-
```
10+
Para poder editar en la esquina superior derecha hacer click en `Login` y usar `gia` como usuario **y** password.

0 commit comments

Comments
 (0)