PolMine / dbpedia

R Wrapper for Corpus Annotation with DBpedia Spotlight
3 stars 0 forks source link

Use stevedore R package to interact with Docker #2

Open ablaette opened 1 year ago

ablaette commented 1 year ago

https://github.com/richfitz/stevedore https://cran.r-project.org/web/packages/stevedore/index.html

ablaette commented 1 year ago

As of now, we need to start the docker container as follows:

docker run -tid --restart unless-stopped --name dbpedia-spotlight.de --mount source=spotlight-model,target=/opt/spotlight -p 2222:80 dbpedia/dbpedia-spotlight spotlight.sh de

How would you do that with devedore?

ablaette commented 7 months ago

I had (another) quick look at stevedore. It offers a lot, the question is how to map the commands we now run on the command line on stevedore syntax.

To start a Spotlight container, something like this:

library(stevedore)
spot <- docker$container$run()

But what to infuse into the brackets?!