itzg/minecraft-server docker container with pterodactyl
Has anyone had a success running
itzg/minecraft-server
docker container under pterodactyl's egg
configuration? I cant seem to successfully mount /data
directory to default /home/container
directory, since its being used by pterodactyl (and it doesnt allow mounting that directory)? Is there any way to get around this?21 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by dovias#0
I managed to create egg that runs that docker image, but could not start the server due to how access to
/data
inside the container itself is forbidden
i can probably use Docker inside of Docker, or even Docker outside of Docker approach to get around this, but this feels hacky, and with this im spawning 2 containers per instance instead of one as usual. :/why would you want to?
because i want a friendly UI interface for administrators to have
also i do have github actions connected with github repo which contains my server's configurations files that is built on top of that image
so i want to deploy it automatically when pull request merges changes into
main
branchwhy not just use the minecraft images ptero has builtin?
because i use interpolation feature from itzg's minecraft-server image which allows me to add environment variables to all config files within the server directory and it allows me to autodownload plugins by just specifying urls in the file
basically its not just a launcher for minecraft server
it allows you to do some preprocessing before your minecraft works also
could modify the install script to let you do that
in ptero its pretty simple
for example i can download folia from the paper api, by just specifying the server software type in an environment variable
its not pretty simple, i would need to create a separate script in bash that would query json responses from paper web api, then download the paperclip build, interpolate variables by looping for all files in the directory
sure i can make this
but the solution is already there
GitHub
parkervcp-eggs/game_eggs/minecraft/java/folia at master · gOOvER/pa...
Service eggs for the pterodactyl panel. Contribute to gOOvER/parkervcp-eggs development by creating an account on GitHub.
you know just
but its just that it doesnt work nicely with pterodactyl due to its nature of running code inside the container, and not providing way for docker images to rn them
use the proper egg
that's not even close to simple
this the script it uses
i meant the autodownload plugins etc
not the automatic server jar that checks for latest version/whats manually specified
+ most of that is failsaves
you know what
fuck it
ill build my own compilation script
in bash
that would function similarly to
itzg/minecraft-server
container's, with the only difference that it doesnt run the server automaticallyGitHub
GitHub - Dovias/interpolate.sh: Shell script for Unix-like systems ...
Shell script for Unix-like systems which interpolates shell and environment variables within the files - Dovias/interpolate.sh
done
also added support for default values
${VARIABLE_NAME:=default_value}
will now evaluate to default_value
if no environment variable or option variable was specified