Giter Club home page Giter Club logo

Comments (6)

clairmont32 avatar clairmont32 commented on May 12, 2024 1

The Dockerfile has a user and group created on line 86

groupadd -g 750 -o linuxgsm; \
adduser --uid 750 --disabled-password --gecos "" --ingroup linuxgsm linuxgsm; \
. I think starting the server install process may be doable by passing in another script and a .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 vim to the image had been merged.

from linuxgsm-docker.

clairmont32 avatar clairmont32 commented on May 12, 2024 1

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.

from linuxgsm-docker.

cmprinho avatar cmprinho commented on May 12, 2024

I would have to test it, but is it possible to create groups and users in the Dockerfile? Afterwards you can switch using the USER docker statement and run the process as the given user. I think you should try to avoid running sudo commands.

from linuxgsm-docker.

takov751 avatar takov751 commented on May 12, 2024

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

from linuxgsm-docker.

takov751 avatar takov751 commented on May 12, 2024

@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

from linuxgsm-docker.

clairmont32 avatar clairmont32 commented on May 12, 2024

@takov751 lets bring this convo over to #27 (comment) so we dont clutter the issues with our back and forth.

from linuxgsm-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.