-
Notifications
You must be signed in to change notification settings - Fork 72
Proposal for docker-compose #25
Comments
I would have to test it, but is it possible to create groups and users in the Dockerfile? Afterwards you can switch using the |
I tried that however it was causing permission issues as inside the docker user had no write permission . So really need some experiment . The whole Linuxgsm user specified. If there would be no user group specification in Dockerfile that might change things , would make your plan working , but that might break things inside LGSM |
The Dockerfile has a user and group created on line 86 Lines 86 to 87 in 6ee9dd3
.env for the users to fill out so when the container starts it'd automatically handle the user interaction for them but that concept would have to be proven out.
We're able to edit config files from inside the container since the PR to add |
@clairmont32 that is true , and even above all that we are already capable of using any editor as root with the same effect on host. Might be pointless to do indeed |
With the volume bind we can edit the configs under the user the container is started under on the host too. The changes made on the host will instantly reflect in the container but the game server still needs the initial, manual, interaction to be installed so we have access to those specific configs. |
@takov751 lets bring this convo over to #27 (comment) so we dont clutter the issues with our back and forth. |
I created a fork to create a docker-compose example , and I am trying to figure out an easy maintainable solution permission wise.
https://github.com/takov751/LinuxGSM-Docker
So far what seems to be a promising solution for that is that we would run before starting up docker-compose
as in the description with one extra step
sudo groupadd -g 750 lgsm && sudo usermod -aG lgsm $USER
inside the docker-compose we could use the function called `group_add:
The text was updated successfully, but these errors were encountered: