TLDR: Use one machine as full-time online server, and sporadically as workstation with monitor attached: what software setup, considering ease of use and security?
A little bit of context: I just bought parts for a PC build that our team will be using as a server to make builds, run tests, run gitlab, publish complete software packages, host the website. Now that I came to think of about: it would be nice to use this horsepower for good and let me use it as a high performance workstation as well, in comparison to my 5 y/o MacBook Pro.
Question: So, what should I use as software setup (OS, virtualisation, software, ...) to make this work nicely? I'd like to be able to log off my account, and have all server processes keep running. I'd even like to completely stop all workstation-related processes (GUI, login screen, etc).
My thoughts: I'm guessing some virtualisation, as we don't want potential vulnerabilities in the HTTP server to expose our entire internals. LXD/Docker? I'm guessing you would want to run the workstation in some virtualised environment, to make sure that if I'm interacting with it, the server is pretty much guaranteed to remain operational, even if I make the server crash? Or would that not by any of your concern, since I'd mainly run vim/gcc when I'm working.