gounthar Posted February 23, 2021 Posted February 23, 2021 Hi there, I would like to have a Docker container accessing the GPIO on the Orange Pi Zero. For the time being, I'm using OPi.GPIO as a library to make a LED blink, but will use Java-Periphery and SSD1306 later on. As for now, the LED is blinking, all is fine. What I would like to do now it to create a Docker image from Armbian doing the same thing, so I was thinking of starting the image from scratch with Armbian root directory. How could I find/make a minimal Armbian root directory to build my Docker image upon? Thanks.
tparys Posted February 24, 2021 Posted February 24, 2021 Armbian is little more than a stock Debian/Ubuntu installation with the aim of providing recent kernel, bootloaders, and some quality of life userspace customizations. None of those seem needed for a docker image. Maybe start with the upstream image of whichever version you're using for your Orange Pi? If you do need certain things from Armbian, you can always copy the apt configuration from /etc/apt/sources.list or sources.list.d into your Dockerfile and go from there. 1
gounthar Posted February 25, 2021 Author Posted February 25, 2021 That's right, I need the kernel headers for example, so that I can compile Java-Periphery from @sgjava. For the time being, my "code" is hosted there and the resulting image is there. Thanks for your input.
Recommended Posts