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
Admincraft Meta
Admincraft Meta7mo ago
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
Dovias
DoviasOP7mo ago
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. :/
ProGamingDk
ProGamingDk7mo ago
why would you want to?
Dovias
DoviasOP7mo ago
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 branch
ProGamingDk
ProGamingDk7mo ago
why not just use the minecraft images ptero has builtin?
Dovias
DoviasOP7mo ago
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
ProGamingDk
ProGamingDk7mo ago
could modify the install script to let you do that in ptero its pretty simple
Dovias
DoviasOP7mo ago
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
ProGamingDk
ProGamingDk7mo ago
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.
ProGamingDk
ProGamingDk7mo ago
you know just
Dovias
DoviasOP7mo ago
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
ProGamingDk
ProGamingDk7mo ago
use the proper egg
Dovias
DoviasOP7mo ago
that's not even close to simple
Dovias
DoviasOP7mo ago
No description
Dovias
DoviasOP7mo ago
this the script it uses
ProGamingDk
ProGamingDk7mo ago
i meant the autodownload plugins etc not the automatic server jar that checks for latest version/whats manually specified + most of that is failsaves
Dovias
DoviasOP7mo ago
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 automatically
Dovias
DoviasOP7mo ago
GitHub
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
Dovias
DoviasOP7mo ago
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
Dovias
DoviasOP7mo ago
No description
Dovias
DoviasOP7mo ago
No description

Did you find this page helpful?