- Checkout this repository
- Build image:
cd /path/to/textimager-server
mkdir duccDataContainer
docker-compose build
- Run server:
docker-compose up
or as deamon
docker-compose up -d
- Inspect server startup log:
docker exec -it textimager-server tail -f '/home/ducc/ducc_startup.log'
Startup will take about 5 min. As soon as the startup log prints 'All threads returned', the startup was successful.
Every class implementing the AnalysisComponent can be distributed as a service. Jars containing the class and all its dependencies have to be exported.
- Add service:
sh addService.sh [classpath] [classname]
Example:
sh addService.sh ducc/testService/ de.tudarmstadt.ukp.dkpro.core.tokit.BreakIteratorSegmenter
An instance of BreakIteratorSegmenter will be added to the Server. Call http://localhost:42133/services.jsp to see if service has been deployed.