How can I make software / a workflow portable, OS agnostic, and immutable?

I have a workflow that uses a handful of applications. Most of them are either aimed at Linux, or at least have a Linux release. One crucial piece of software however is firmly Windows only. It can run under WINE but not without a few issues. The main problem is though that it’s a pain to install and maintain.

Plus my workflow is for creating assets for software that is over 20 years old. So software tools have a a habit of been rendered broken by OS updates, or maybe they’re simply not usable on newer operating systems. Some features might get removed or changed, or they might drop support for something that is no longer used by 99.9% of current users.

So I’m looking for a way of making this software into something akin to a container. A self contained, portable thing that does not require a specific host OS, and that won’t be effected by updates. Something that I can configure just the way I want, and then make immutable / restorable to a working state. Something that can has to be able to run on Linux as a requirement, and Windows as a bonus.

I was wondering whether a virtual machine image would be the correct solution?.. Non of the software is GPU heavy. So even a VirtualBox image might work. It would seam to be a pretty heavy handed solution though.

Is there a better solution?

If it Just Werks™ in Windows, then a VM is the way to go for now. Use the best tool for the job.

1 Like

The only other things I can think of that are really os agnostic is something opened with a web browser, Java, or Python. Don’t think any of that will fit your use case though.

I think the only way is a virtual machine because that’s the only way you can package the Windows OS you need to run the application. So VirtualBox or other software like VMWare workstation/player is the way to go.

1 Like

I would prefer to avoid Windows if possible. I’m not totally against it though but as I said, the Windows application does have the functionality I need when running under WINE. It’s just that I don’t know whether any of the other functionality that I may need in the future, has any issues.

If I can get a fully working Linux based container / VM up and running, then that would be my first choice.

What are my options if I’m running the Windows application using WINE? Is there anything as portable as a VM but that is a little lighter?

So if I understand correctly, your workflow has a Windows component that you want to set and forget. The VM also works, but is too heavy to contain.
Wine works, but you want a reproducible config?

Also I haven’t personally tried these solutions, but these were solutions I found online

If that’s the case, have you already looked into wine registry keys?
https://superuser.com/questions/1692789/backup-wine-configurations-in-linux

If you are using NixOS or the nix package manager, people have tried packaging wine apps declaratively. NixOS and the package manager is similar to docker but lighter and worth looking into.

There is a project that allow you to “freeze” a Wine environment so it becomes kinda like a container where you can reset it to default state and so on. Automating what @bedHedd said.
It relies on Flatpak software stack for its snapshots and containerization functions.
I never used it so I cannot really comment on how good it is, but I know it exists and it has a big enough community at this point. You can look up youtube tutorials and more in depth explanations
Wine Bottles

https://www.youtube.com/results?search_query=wine+bottles+flatpak+linux

EDIT: for obvious reasons, this is only portable between Linux systems, as Flatpak/Wine Bottles runs only on Linux.

1 Like