• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Passing additional parameters to docker run command in clickable

Scheduled Pinned Locked Moved App Development
6 Posts 3 Posters 807 Views 1 Watching
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.
    • A Offline
      arubislander
      last edited by 13 Feb 2019, 22:01

      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?

      πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
      Happily running Ubuntu Touch
      Google Pixel 3a (20.04 DEV)
      JingPad (24.04 preview)
      Meizu Pro 5 (16.04 DEV)

      1 Reply Last reply Reply Quote 1
      • H Offline
        hummlbach
        last edited by 14 Feb 2019, 13:57

        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
        • A Offline
          arubislander
          last edited by 20 Feb 2019, 05:27

          Thanks @hummlbach, will try that.

          πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
          Happily running Ubuntu Touch
          Google Pixel 3a (20.04 DEV)
          JingPad (24.04 preview)
          Meizu Pro 5 (16.04 DEV)

          A H 2 Replies Last reply 20 Feb 2019, 10:31 Reply Quote 0
          • A Offline
            advocatux @arubislander
            last edited by 20 Feb 2019, 10:31

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

            1 Reply Last reply Reply Quote 0
            • H Offline
              hummlbach @arubislander
              last edited by 20 Feb 2019, 22:19

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

              A 1 Reply Last reply 21 Feb 2019, 06:44 Reply Quote 0
              • A Offline
                arubislander @hummlbach
                last edited by 21 Feb 2019, 06:44

                @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... πŸ˜…

                πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                Happily running Ubuntu Touch
                Google Pixel 3a (20.04 DEV)
                JingPad (24.04 preview)
                Meizu Pro 5 (16.04 DEV)

                1 Reply Last reply Reply Quote 1
                2 out of 6
                • First post
                  2/6
                  Last post