Closed dariodematties closed 2 years ago
Hello Dario, Thanks for the report.
First of all, all code running that requires the access to sensors we manage you must use pluginctl because Waggle sets up the environment for you to access to the microphone. We are documenting instructions on how to use pluginctl
. We will get back to you once the document is ready.
For the in-node code development, we are happy to announce that pluginctl exec
(>= 0.8.3) supports debugging codes inside a container (see New features. However, I am hesitant to support local Docker building and saving changes in to a built Docker image because it does not keep track of changes easily so when you push your app to ECR your Dockerfile may not have all you need. For this reason, it would be much better for you to launch a bootstrapping container using pluginctl
, resolve dependencies and debug your code inside the container, update your Dockerfile based on what you changed in that container, and push that Dockerfile to ECR. I think this is much better to ensure the Dockerfile has all the debugging you did with the dev container. Does this sound reasonable?
Closing for now: The expectation is that the container will be run within the Waggle Edge Stack environment, not a bare Docker container. Microphone access should work in that setting.
Hi there, here I am trying to run birdnet-lite using
pywaggle
from inside one of the waggle nodes. This is my repository From theDockerfile
I am bootstrappingFROM nvcr.io/nvidia/l4t-tensorflow:r32.4.4-tf2.3-py3
as you are able to see hereFrom inside the node I do
sudo docker run --rm -it --entrypoint bash birdnet-lite
And inside the containerized env I do
And receive the following error
I would really appreciate to work directly from the node in a containerized env before pushing the final version of the repo to ECR.
Unfortunately this is an impediment since I cannot run my code as it is from the node
Any help, suggestions etc?
Thanks!