Container user linuxgsm crontab can be saved optionally - #94
Conversation
|
I've noticed there used to be similar pull requests previously. However this one is more simple and sometimes setting a crontab within the container is a requested feature. I don't personally need it and I understand if this is not desired for some reason (keeping the Dockerfile simple?). This will save the crontab in |
This should be transparent to users and requires no intervention if they do not wish to use a custom crontab. Current behavior is retained. To actually use the custom crontab, the user needs to set LGSM_SAVE_CRONTAB to true. If set to false, the container will function exactly as it functions now. This variable needs to be documented in the downstream (docker image) repository.
|
This would fix GameServerManagers/LinuxGSM#4584 . |
|
It would also be a good idea to use something like supercronic, since that would allow us to run the container with stricter security options (e.g., |
|
I've never heard of supercronic before and I'm not familiar with it, but after a quick glance it might be a good idea indeed. |
|
Yes, it would be ideal to rely as little as possible on root (which currently runs |
This should be transparent to users and requires no intervention if they do not wish to use a custom crontab. Current behavior is retained.
To actually use the custom crontab, the user needs to set LGSM_SAVE_CRONTAB to true. If set to false, the container will function exactly as it functions now. This variable needs to be documented in the downstream (docker image) repository.