Code Monkey home page Code Monkey logo

docker-linuxgsm's People

Contributors

dependabot[bot] avatar dgibbs64 avatar feneralgeldmarschall avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-linuxgsm's Issues

dockerized instance in a K8 cluster network isnt ready

Have an issue with linuxgsm failing because the entrypoint.sh tries to download and install before the network is initialized.

can a delay be added to wait for a full response from the internet before it begins the processes in entrypoint-user.sh?

a simple while loop works but obviously not if I have to reload the docker image

#pause for network start
while ! ping -c 4 google.com > /dev/null;
do 
  echo -e "Waiting for internet connection."
  sleep 10
done

"Tail log files" in entrypoint-user creates log spam

When entrypoint-user.sh executes tail -F "${LGSM_LOGDIR}"/*/*.log &, it prints out the last few lines of log content to stdout. This means if you have a large amount of game server logs, a lot of logs are sent to stdout, which is rather spammy.

Can this be configurable? I don't necessarily need or want all my historical log files, that aren't going to be changing again) to be tailed every time I start the container.

[Feature] Make UID and GID of container linuxgsm user changeable via docker-compose.yml

I have a separate user for LGSM related docker images on my server. Following the new docker-compose examples from https://github.com/GameServerManagers/docker-gameserver/tree/main, the default linuxgsm user in the docker image has the default UID 1000, which leads to the mounted volumes changing ownership to the host user with UID 1000, which isn't the UID of my LGSM host user (note, I'm using bind mounts).
To retain the original host ownerships, I tried using the UID and GID environment variables in the docker-compose file to match the ones of my LGSM host user. This however leads to permission errors when installing the gameserver and fetching lgsm scripts, as the /app directory permissions are set to UID 1000.

Fixing this would be pretty straightforward by adding another chown to the entrypoint.sh, that changes ownership of /app to the UID and GID provided by docker compose.

Example docker compose:

version: '3.4'
services:
  linuxgsm:
    image: gameservermanagers/gameserver:mc
    container_name: mc_test
    volumes:
      - /home/gameservers/mc_test:/data
    restart: unless-stopped
    environment:
      - UID=1006
      - GID=1007
      - USER=linuxgsm

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.