FROM node:12.19.0 AS base
RUN apt-get update
RUN apt-get install -y apt-transport-https apt-utils
RUN bash -c 'echo "deb https://labs.picotech.com/debian/ picoscope main" >/etc/apt/sources.list.d/picoscope.list'
RUN wget -O - https://labs.picotech.com/debian/dists/picoscope/Release.gpg.key | apt-key add -
# install DrDaq drivers
# This installation will fail in its post-installation script.
# The demanded drivers are being installed nevertheless.
# So to continue the build of this Dockerfile, status 0 is returned manually.
RUN apt-get install libusbdrdaq -y; exit 0
# manual reload of udev rules
RUN udevadm control --reload-rules && udevadm trigger
This workaround suits my needs for now, but I hope this flaw gets fixed soon.
Hope this helps anyone with a similiar problem.
I am facing the same issue, trying to make this run in Docker.
Why do I try running this in docker? The libraries from pico are not available in Arch linux repo, so I got the from the debian repo, converted them with `debtap` and installed them, but that didn't work. So next was to make this work in Ubuntu, which is supposed to be supported.
My docker file is the following and same error returns upon installing picoscope. I am not sure where to start investigating this though.