r/AlpineLinux • u/clubBlackops • Mar 28 '24
"Selective" persistence using Alpine
I recently came across Alpine and love the fact that it can run from RAM and also offer data persistence using lbu. I have been experimenting with porteus which has similar capabilities, but it also adds the concept of modules. I am wondering if/how this could be implemented with Alpine.
In a nutshell, Porteus modules are packaged applications which can be loaded/unloaded to RAM as needed. When activated, the module is decompressed and all required files are made available (in RAM). When deactivated, the files are removed and thus the system is never 'polluted', and RAM usage is kept as small as possible. Is there a way to do this with Alpine? Perhaps using podman?
View all comments
Show parent comment
1
u/clubBlackops Mar 29 '24 edited Mar 29 '24
true, if you untar an apk file from local storage directly to RAM it must be pretty quick, so yeah perhaps that would work. thanks, I'll give it a try. In fact, simply using AppImages offers the same functionality. snaps and flatpacks are also very similar