#GitHub - FoerMaster/garrysmod-to-docker:...

1 messages · Page 1 of 1 (latest)

fluid rivet
#

Quite nice, though I think in this case youd want your image published on a public container registry (could be the github one), because cloning a repo to run the image defeats the purpose IMO

high temple
#

does it handle gmod updates fine? also can I switch to different branches? anyway awesome work!

acoustic kestrel
high temple
#

no longer having to deal with installing servers is a good thing act_dance

acoustic kestrel
high temple
#

does it have to be a different image?

#

im not an expert with docker, but if it can be like just GMOD_BRANCH in env then it would be awesome/easy

acoustic kestrel
# high temple does it have to be a different image?

I decided to abandon the idea of running SteamCMD every time before starting the server, so I wrote a script that monitors the current Garry’s Mod server build and automatically builds new images (versions) when an update is detected.

fluid rivet
#

TBF it does make sense

#

each version would be a specific gmod version

acoustic kestrel
#

I hope this will actually turn out to be a useful tool. In the future, I plan to add automatic Lua code minification to obfuscate it from ScriptHook and to optimize bundle size.

high temple
acoustic kestrel
high temple
#

if its possible, could have an interval option, to check like every x for updates, if theres anything to save states in?

#

to also have updating and avoiding the steamcmd run every single time

#

GMOD_AUTO_UPDATE (default = false):
GMOD_AUTO_UPDATE_INTERVAL (default = 1d):

fluid rivet
#

personally when i update servers i already have to ssh ec

high temple
#

I mean dev branch would be annoying to keep up with lol

fluid rivet
#

so changing the number of the image doesnt seem far fetched

acoustic kestrel
fluid rivet
#

yes and in most cases theyd need to update themselves

acoustic kestrel
high temple
#

why not just dev

#

me changing it from main to dev, no image, wtf is happening?

#

oh I have to add -branch

#

would it be possible to also add like a flag to select a specific gmod version?

#

main-352352
dev-35325

fluid rivet
acoustic kestrel
acoustic kestrel
#

oh :)

high temple
#

anyway this all looks cool, branch/autoupdate/specific version is gonna be like full package to use it

acoustic kestrel
#

Thanks!
I’ll be working on updates and adding new features this week!

fluid rivet
#

btw how are addons supported, do you mount a volume?

#

or is it fully within the image

acoustic kestrel
fluid rivet
#

that doesnt answer my question

#

ill just assume its within the image

acoustic kestrel
fluid rivet
#

yea

acoustic kestrel
# fluid rivet yea

Ah, sorry.. I didn’t fully understand your question at first. Here’s how it works:

The src directory is mounted into the container and synced with an internal upd directory. A dedicated script periodically monitors this folder for any changes.

When new files appear or existing ones are modified, they are automatically copied into the game server directory, replacing the current versions.

If you modify a file that originally belongs to the server build, its original version is backed up first. Your modified file is then used, and if it gets removed, the original file is automatically restored.

fluid rivet
#

🤔