CM2Walki / CSGO

Dockerfile for automated build of a CS:GO gameserver: https://hub.docker.com/r/cm2network/csgo/
https://CM2.Network
MIT License
246 stars 76 forks source link

How to set a name for my server #21

Closed luizjr closed 4 years ago

luizjr commented 4 years ago

I found the format very interesting, but I miss more instructions, besides, I don't know how to define a name for my server.

Can you help me with that?

CM2Walki commented 4 years ago

Hey @luizjr,

docker exec -it [containername] bash
vim /home/steam/csgo-dedicated/csgo/cfg/server.cfg

Change the hostname, then restart the container. If I find some time this weekend I will finally expose that as an environment variables, so it's easier to override.

luizjr commented 4 years ago

Change the hostname, then restart the container. If I find some time this weekend I will finally expose that as an environment variables, so it's easier to override.

Thanks! If you put it as an environment variable, I believe it can be set when starting the container.

So only the part of adding admins to sourcemod would be pending to explain

CM2Walki commented 4 years ago

https://wiki.alliedmods.net/Adding_Admins_(SourceMod)

/home/steam/csgo-dedicated/csgo/addons/sourcemod/configs/admins_simple.ini

luizjr commented 4 years ago

https://wiki.alliedmods.net/Adding_Admins_(SourceMod)

/home/steam/csgo-dedicated/csgo/addons/sourcemod/configs/admins_simple.ini

I did it by following the information and the file path you provided! Thank you, I look forward to configuring these settings as environment variables (-e)

I will take some time to suggest a modification, I hope it will help me make the pull request, I have a suggestion in mind, as soon as I edit I will let you know.

CM2Walki commented 4 years ago

Closed by #26. Introduced SRCDS_HOSTNAME