docker-minecraft-server icon indicating copy to clipboard operation
docker-minecraft-server copied to clipboard

different start command on version change

Open hrolofs opened this issue 2 years ago • 1 comments

Enhancement Type

A completely new feature

Describe the enhancement

Hello,

im using docker-minecraft-server for my spigot server with docker compose.

from my docker-compose.yml: i don't use VERSION in the environment.

image: itzg/minecraft-server
command: --forceUpgrade --eraseCache
environment:
  - TYPE=SPIGOT

Everytime when i restart the container the newest version of spigot.jar are downloaded if a newer version available. In the command i use --forceUpgrade --eraseCache to make sure that in case of a newer version the world data are upgraded. This works fine. :-)

The forceUpgrade is done on every restart of the container and it takes time and make for some minutes havy load on the server. Is it possible to use a different command in case of a version change of spigot (new version downloaded)? So that the forceUpgrade is only done when the version changed.

in my case:

without version change command:

with version change command: --forceUpgrade --eraseCache

Regards, Henry

hrolofs avatar Aug 30 '22 16:08 hrolofs

All the command arguments are passed as is to the server, so I can't influence that behavior. Please provide full container config so I can provide any specific advice.

itzg avatar Aug 30 '22 22:08 itzg

This issue is stale because it has been open 30 days with no activity. Please add a comment describing the reason to keep this issue open.

github-actions[bot] avatar Sep 30 '22 03:09 github-actions[bot]