Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Passing additional parameters to docker run command in clickable

    App Development
    3
    6
    298
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • arubislander
      arubislander last edited by

      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 clickable on 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/video0 to docker run. Is there any way to do this with clickable?

      1 Reply Last reply Reply Quote 1
      • H
        hummlbach last edited by

        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.(?)

        1 Reply Last reply Reply Quote 1
        • arubislander
          arubislander last edited by

          Thanks @hummlbach, will try that.

          advocatux H 2 Replies Last reply Reply Quote 0
          • advocatux
            advocatux @arubislander last edited by

            @arubislander talking about parameters, you need to update your signature 😁

            1 Reply Last reply Reply Quote 0
            • H
              hummlbach @arubislander last edited by

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

              arubislander 1 Reply Last reply Reply Quote 0
              • arubislander
                arubislander @hummlbach last edited by

                @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... 😅

                1 Reply Last reply Reply Quote 1
                • First post
                  Last post