Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use stevedore R package to interact with Docker #2

Open
ablaette opened this issue Apr 17, 2023 · 2 comments
Open

Use stevedore R package to interact with Docker #2

ablaette opened this issue Apr 17, 2023 · 2 comments

Comments

@ablaette
Copy link
Contributor

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

@ablaette
Copy link
Contributor Author

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
Copy link
Contributor Author

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?!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant