bgauduch / call-of-duty-2-docker-server

Minimal & lightweight Call of duty 2 server docker image - include libcod library
https://hub.docker.com/r/bgauduch/cod2server
MIT License
68 stars 17 forks source link

server log file is not in the game folder #50

Open LSL1337 opened 4 years ago

LSL1337 commented 4 years ago

server log file is not in the game folder. maybe the mounts are misconfigured?

Server "main" folder volume

VOLUME [ "/home/${SERVER_USER}/main" ]

redirect server multiplayer logs to container stdout

RUN mkdir -p /home/${SERVER_USER}/ .callofduty2 / main/ \ && ln -sf /dev/stdout /home/${SERVER_USER}/ .callofduty2 / main/games_mp.log

I'm not sure, maybe the bold part can be removed? and anyway, I don't think this is preferable to hardcode a log file, when the mods/configs can be executed from multiple directories (eg. pam, zombie, etc)

bgauduch commented 4 years ago

@LSL1337 Well you are pointing out something that needs to be clarified and fixed.

As discussed with you in #37 and especially in this comment, the way server logs are handled need to be fixed.

There a many things to consider here:

Putting it all together, I'm not sure how to properly handle logs ! Any advices on that matter ?

LSL1337 commented 3 years ago

Hi,

I run my docker cod2 server from the zpam mod folder (post arguments : +set fs_game zpam) In that case, if I mount the following folder to my host machine to whereever, I have access to the 2 server config files: /home/cod2/.callofduty2/zpam

this folder, or even the main folder is not mounted by default, so it can not be reached by the default volume mappings (I think)