The idea is to have a docker image, or something similar, where I configure a whole bunch of hardware-unrelated things, and then deploy that to an actual device like a raspberry pi or plain x64 server.
I'm assuming this is not possible to do it this straightforward, since docker has some virtualized hardware that will mismatch the target? And I don't want to run a docker-image in a container on a fresh linux install, I need everything to run native.
Can someone point me in the right direction how to achieve this, what kind of dev-ops software I should think of when starting this. Other than making a few install-scripts and copying over the configs (which is what is basically pretty much is really).
Where I want to get is to have a restore-image, that I preferably am configuring in a virtual machine, en then have a starting point where I install that image on (virtually) any hardware and it will boot...
Or do I have misconceptions on how linux handles changing hardware? (I have bad experience with GPUs changing)
(Looking around it seems like docker is the best and most sensible solution for this, using docker export, but I'm curious if there are even simpler solutions, perhaps a program that can export the specific applications/configs that I specify, instead of manually writing a script, not because lazy, but because of human error)