Passing additional parameters to docker run command in clickable
-
I am trying my hand at getting one of the GoCV examples to run on my Ubuntu Touch device. For the first step I thought I would just see if I could get it to run in an app built with
clickableon the desktop. The next step would then be to figure out how to get the OpenCV and GoCV bits into the click package to be able to run everything on the device itself.For convenience I created a custom docker image with all the OpenCV and GoCV bits already installed.
Now for where I need help: The example needs access to the video device (probably /dev/video0) from within the container. Normally this could be achieved by passing
--device=/dev/video0:/dev/video0todocker run. Is there any way to do this withclickable? -
Not sure but I don't think there is a way to do this with clickable directly. So you may either adapt https://github.com/bhdouglass/clickable/blob/master/clickable/commands/desktop.py to your needs, or adapt the docker commands clickable would execute and run them manually.(?)
-
Thanks @hummlbach, will try that.
-
@arubislander talking about parameters, you need to update your signature

-
@arubislander you see best/easiest what clickable does when it fails for some reason. ^^ So try to let it fail

-
@advocatux: Done! Thanks for the reminder.
@hummlbach: That should not be too difficult... Hehehe. I have to get back to it. Have been distracted by life...

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register Login