Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hey, buddy, can you build a docker container for pterodactyl panel? #49

Open
Shuazijun opened this issue Nov 12, 2022 · 10 comments
Open

Comments

@Shuazijun
Copy link

Like this。
https://github.com/pterodactyl/panel
temp eggs。
https://github.com/parkervcp/eggs/tree/master/game_eggs/steamcmd_servers/project_zomboid

@Renegade-Master
Copy link
Owner

That sounds like it would be pretty far outside of the scope of this project.

By the looks of the Pterodactyl project, the expectation is on you to configure an "egg" to use this Docker image. The JSON file you sent seems to pretty much cover it; you would only need to change some of the parameters. 🙂

However, I would like to create some K8S configuration files to support installation that way (once the current issues with permissions are dealt with).
While creating those files, I may consider also creating an "egg" so that Pterodactyl can be used to deploy the image.

@Shuazijun
Copy link
Author

Shuazijun commented Nov 12, 2022 via email

@Shuazijun
Copy link
Author

Shuazijun commented Nov 12, 2022 via email

@Renegade-Master
Copy link
Owner

Renegade-Master commented Nov 14, 2022

Best thing I can suggest is to modify that egg file to use my image instead:
https://github.com/parkervcp/eggs/blob/master/game_eggs/steamcmd_servers/project_zomboid/egg-project-zomboid.json#L15

I don't really understand what this section is for. Maybe you can delete it?
https://github.com/parkervcp/eggs/blob/master/game_eggs/steamcmd_servers/project_zomboid/egg-project-zomboid.json#L25

Then just modify the variables here to match the ones I expose in this image:
https://github.com/parkervcp/eggs/blob/master/game_eggs/steamcmd_servers/project_zomboid/egg-project-zomboid.json#L32

My variables are laid out in tables in the README of this project.

If you edit it correctly, maybe Pterodactyl can just import the file.

@Shuazijun
Copy link
Author

For #L25 , This is the script that needs to be executed when the server defined by the pterosaur panel is started for the first time after a new installation. The current script is used to install steamcmd and the server.
For #32 ,For variables, these variables are only used at startup, and most variables do not need to be modified.

In addition, the server installation path cannot be modified. It seems that you can only use the directory in the egg, otherwise the folder contents cannot be displayed in the panel after the container is started.

@Renegade-Master
Copy link
Owner

Sounds like you already know what needs to be done 🙂

What is stopping you from contributing your changes to the repository you linked?

@Shuazijun
Copy link
Author

How do you solve the problem that the Docker container cannot run mod?
i will rebuild docker image,But ,not suppout mod,The error message is consistent with the above。

https://github.com/Shuazijun/ProjectZomboidEgg

@Renegade-Master
Copy link
Owner

Renegade-Master commented Nov 19, 2022

Well, this image definitely supports mods, so once you change the target image to this one, you should be able to use the environment variables to configure mods.

@Shuazijun
Copy link
Author

maybe ,you can test this config.
pelican-eggs/eggs#1958 (comment)
I guess this may be caused by the container using an account with non root permissions, and the official support personnel did not give specific instructions.

@Shuazijun
Copy link
Author

i will test root acces docker container,but still crash with my mod config。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants