LinuxGSM-Docker
LinuxGSM-Docker copied to clipboard
improvement: let docker do what tmux used to. and define gameserver as an environment variable.
Hi, people. I guess there is no easy way to run the server in foreground other than debug mode, right?
However, I did this, and it probably no longer needs tmux. (I don't know LinuxGSM well enough and I only tested Quake2)
If there are nontrivial consequences from running a server permanently in debug mode, please tell me.
I've been trying to go through lgsm's source to see if I could avoid the ugly hack "echo Y | ./gameserver debug" but I had no luck.
it could be possible to add either a new command or a setting to remove tmux ./csgoserver docker-start
or somthing like that maybe?
I guess a command like ./csgoserver foreground
could be more appropriate, but yeah, it makes sense.
relevant https://github.com/GameServerManagers/LinuxGSM/pull/2026/files
GitHubDocker support. Start game without tmux and game runs in foreground. Why without tmux? Hope it helps to push forward your docker repository.
I am currently thinking about LinuxGSM commands as arguments might be implemented moving forward so the command might end up being ./csgoserver start --forground
for example.
also to answer your question there are no issues running your server in debug mode apart from needing an active terminal which shouldn't be an issue in docker
I like this idea of using command arguments.
And yeah, in docker it is expected that applications run in foreground, and if they exit the container itself exits (and docker restarts it if the restart policy says so).
On another note: I am working on a separate branch to avoid installing every dependency for every server at once, it's a lot faster to bring up. :D