This is an unofficial image, I just needed something to get it working easily.
You need docker to run this :)
First, clone the repository or download it:
git clone https://github.com/lascivaroma/blacklab-docker.git
Check Blacklab documentation, which is real good. Then, you have two places where you can have a look:
blacklab/formats/tei-msd.blf.yaml
allows you for adaptation at the indexing level with you TEI- Add you corpora in new folders under
corpora/
. Seecorpora/example
- Build with
docker build -t dockerlab .
(calls docker to build the current directory (.
) and name the imagedockerlab
) - Run with
docker run -it --rm -p 8888:8080 dockerlab:latest
: it asks docker to run the image nameddockerlab:latest
in interactive mode (-i
) with a terminal (t
in-ti
), redirect the virtual machine port8080
which is the one of Tomcat (the server runnnnig Blacklab) to8888
on your machine (-p 8888:8080
), while remove the machine after it's killed (--rm
) - You can either go on the server ( http://localhost:8888/blacklab-server ) or the GUI (http://localhost:8888/corpus-frontend ). You can also use exemple requests such as the one in
req.py