#Setting up Puppeteer in Pterodactyl
83 messages · Page 1 of 1 (latest)
last time I tryed it needs chromium what is not a issue in the image but it requires the container to run as root
how would I do that in the panel?
Or is it possible by just doing it via cli: docker run --user <root-id> puppeteer
with ptero , easy not
So the simpler way is just setting up a normal docker container?
yes
Is it possible to add a existing container to wings?
no , wings only manage container made thru ptero and do not run with just regual docker images
Isn't it possible to do like docker network connect pterodactyl_nw <container_id> ?
no
does the docker file meets ptero requirements?
🤷🏻♂️ No Idea, what are those requirements?
like run as the container user, with the entrypoint and not root..
it runs as root, can you link the requirements?
if it runs as root then ptero will not run it
so adding this would be enough?
no
Pterodactyl is an open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
the container user must container
it home dir must be /home/container
you need to use the entrypoint.sh
it can not run as root
it can only contain packages and not any game / bot files
is the entry point defined by pterodactyl, or do I need to create one myself?
because there is COPY ./entrypoint.sh /entrypoint.sh
you have to make it and it needs follow some rules as it eval and sed the startup script
have a look at some examples
Sorry, another stupid question but
https://cloud.yi5.dev/s/FtxmM6nemYipaZP
Why don't they need to add the container user
you are blindly coppy and pasting there example that will not work with ptero
you are also using just from node withoud even setting a specific version
alright changed that to node:17-slim
your useradd command is also wrong
Yes, that is why i was wondering
Because when not adding the user the container says "user not found"
you can just send the file here and I have a quick look
I've copy pasted the entrypoint from the nodejs example of parkervcp https://github.com/parkervcp/yolks/tree/master/nodejs
I am also not quite sure what "startup" and "modified_startup" is in relation to pterodactyl, if you could show me a documentation?
startup is litterly ptero egg startup cmd, it is stored in json format so escaped so it unescapes it and parses it to a other variable what then gets ran
How long will you be available for questions today?
Since you are helping me(us) alot but I have to go soon
For about 1h
I have no idea what time it is in your timezone but for me it is 16:53 and I will be here until 18:45
I am studdying so my pc is open
bc ill be back around or just after 6 (yes its me who will be gone for an your not @azure panther lol)
but its on my server so yeah
@quick herald Hey we are back, how do I implement those two files now?
Do I need to create a package on github like the example?
you have to build them, can be on your machine can be with github and push them to like docker hub or ghcr
When I try to build I get this error:
https://cloud.yi5.dev/s/oPc82P9yLfg5ej6
Also the envoirement variable $TARGETOS is not defined
yea you are not on github
so change that to --platform=linux/amd64
after its done, can I simply specify the container to be puppeteer2:latest ?
yea now set that as the server docker image
no, remove the whole line, and not in the egg, in that server specific
Can you be more specific please, I don't know what you are explaining
wait what do i need to fill in in the whole egg configuration?
like docker images, startup command, stop command, log config, config files and start config?
to to the server on the admin side , startup , custom docker image
I have no time for that
alright but what do i have to do now?
https://<domain>/admin/servers/view/<Internal Identifier>/startup
so i need to create a new server?
no this is for a existing server
so the one my bot runs on currently?
im sorry i indeed dont really know too much about this
thats why we're asking for help lol
however
i think it might have just worked
it didnt crash when i used puppeteer
then it worked likly
thank you for helping!!!