Greetings,
I have been building a daemon in C++ on a Raspberry Pi 4 for some time now, and recently I've been looking into converting it to run under Docker. I'm pretty new to Docker, and I'm having a little trouble finding some answers to a few questions:
1) What is best base for the Docker image? Will any ARM64 do?
2) Currently I'm using the fork command to split the process and run it as a daemon. I'm guessing that this isn't really the best way to do this Docker. Is that correct?
3) My daemon needs access to the GPIO pins. I've seen information about doing this through the pigpio networking interface or by mounting some /dev/mem devices. However some of this information was very old. What is the current best way to do this?
Thanks,
Shawn
I have been building a daemon in C++ on a Raspberry Pi 4 for some time now, and recently I've been looking into converting it to run under Docker. I'm pretty new to Docker, and I'm having a little trouble finding some answers to a few questions:
1) What is best base for the Docker image? Will any ARM64 do?
2) Currently I'm using the fork command to split the process and run it as a daemon. I'm guessing that this isn't really the best way to do this Docker. Is that correct?
3) My daemon needs access to the GPIO pins. I've seen information about doing this through the pigpio networking interface or by mounting some /dev/mem devices. However some of this information was very old. What is the current best way to do this?
Thanks,
Shawn
Statistics: Posted by Light — Mon Sep 02, 2024 10:16 pm — Replies 0 — Views 10