Hi Julio,
thank you so much for the reply.
Yes I am on MacOS (MacBook Pro with a M1 Chip if that matters) and I managed to find a way to make some progress just now. But only without docker:
# download main jar
wget https://sourceforge.net/projects/dbpedia-spotlight/files/spotlight/dbpedia-spotlight-1.0.0.jar
# download latest model (assuming en model)
wget -O en.tar.gz http://downloads.dbpedia.org/repo/dbpedia/spotlight/spotlight-model/2020.11.18/spotlight-model_lang%3den.tar.gz
# extract model
tar xzf en.tar.gz
# run server
java -jar dbpedia-spotlight-1.0.0.jar en http://localhost:2222/rest
Doing that I encountered the issue that java was not installed so i got that and set the memory to export JAVA_OPTS=-Xmx16g
. I was then able to at least not get an empty response but a javax.servlet.ServletException
which I don’t understand.
But I am actually interested to get it running as a docker!
I set the docker application on Mac to this:
That should be more than enough.
I tried adding -e JAVA_OPTS='-Xmx16g'
as well to the docker run command, with no success.
docker run -ti \
-e JAVA_OPTS='-Xmx16g' --restart unless-stopped \
--name dbpedia-spotlight.de \
--mount source=spotlight-models,target=/opt/spotlight \
-p 2222:80 \
dbpedia/dbpedia-spotlight \
spotlight.sh de
With docker-compose I managed to get part of the logs you are talking about. I got everything until dbpedia-spotlight.it | /opt/spotlight/models/it http://0.0.0.0:80/rest/
but everything following just does not show up.
But I do get them when running the above java-command:
java -jar dbpedia-spotlight-1.0.0.jar de http://localhost:2222/rest
This is the output of docker-compose (when running it again):
docker-compose -f spotlight-compose.yml up
[+] Running 2/2
⠿ Network spotlight-docker_default Created 0.0s
⠿ Container dbpedia-spotlight.lt C... 0.1s
Attaching to dbpedia-spotlight.lt
dbpedia-spotlight.lt | Selected language: lt
dbpedia-spotlight.lt | /opt/spotlight/lt http://0.0.0.0:80/rest/
I am not able to insert anything suggesting something is happening in the background, but the logs only show this:
Selected language: lt
/opt/spotlight/lt http://0.0.0.0:80/rest/
Sending a curl just returns an empty reply.
Any ideas?