Open DannyBoyKN opened 4 years ago
Hi,
this is due to the fact that the noble module has been abandoned. I've found an alternative and this one will be used by the image from now on. Fixing the "abandoment issues" used to require some hacky fixes with sed. This isn't necessary anymore. The next release is based upon the new build process used by the official Node-Red image and contains a shellscript to build your own container.
Ok, thanks!
Still if I want to use the image and doing some cpu load and temperature visualizations on my RaspberryPi4B I have to add the 'raspberrypi
' package by amending the Dockerfile
:
FROM ghcr.io/ct-open-source/ctnodered:latest
RUN set -ex && apk add --no-cache raspberrypi
For 'vcgencmd
' to work within the container the docker-compose.yml
needs also:
services:
nodered:
...
devices:
- /dev/vchiq:/dev/vchiq
Then adding package 'node-red-contrib-vcgencmd
' to node-RED some nice Dashboard view like that is possible:
One cannot add package 'raspberrypi
' to your Dockerfile nor the '/dev/vchiq
' device to docker-compose.yml
since this are specific to the Raspberry OS, right ?
Sure, I can adjust locally the Dockerfile and rebuild for my needs, but I wanted to keep the image up to date using watchtower, which is not working with my customized docker-compose. Could you show/give some advice on how to do that ?
I wanted to extend the image by inserting the apk package 'raspberrypi' in order to get utilities for reading eg. the temperature of the raspberrypi 4B (eg. vcgencmd).
Before doing so I tried to rebuild from the docker-image/Dockerfile but get plenty of warnings for deprecated npm packages
npm WARN deprecated
and builds for the USB module, see full build log below.Is that not the intended way ? How do I get the correct package/module dependencies solved ?
I can add the package manually by attaching a bash and enter:
Then everything is available under
/opt/vc/...
Many thanks in advance