#Setting up Puppeteer in Pterodactyl

83 messages · Page 1 of 1 (latest)

swift panther
#

(@azure panther is helping me with my stuff btw)

quick herald
#

last time I tryed it needs chromium what is not a issue in the image but it requires the container to run as root

azure panther
#

how would I do that in the panel?
Or is it possible by just doing it via cli: docker run --user <root-id> puppeteer

quick herald
#

with ptero , easy not

azure panther
#

So the simpler way is just setting up a normal docker container?

torn matrix
#

yes

azure panther
#

Is it possible to add a existing container to wings?

quick herald
azure panther
#

Isn't it possible to do like docker network connect pterodactyl_nw <container_id> ?

quick herald
#

no

azure panther
#

Sadge

#

I have a working Dockerfile, how do I create a egg based on that?

quick herald
#

does the docker file meets ptero requirements?

azure panther
#

🤷🏻‍♂️ No Idea, what are those requirements?

quick herald
#

like run as the container user, with the entrypoint and not root..

azure panther
#

it runs as root, can you link the requirements?

quick herald
azure panther
#

so adding this would be enough?

quick herald
#

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

azure panther
#

is the entry point defined by pterodactyl, or do I need to create one myself?
because there is COPY ./entrypoint.sh /entrypoint.sh

quick herald
#

have a look at some examples

azure panther
#

Why don't they need to add the container user

quick herald
#

you are also using just from node withoud even setting a specific version

azure panther
#

alright changed that to node:17-slim

quick herald
azure panther
#

Yes, that is why i was wondering

#

Because when not adding the user the container says "user not found"

quick herald
#

you can just send the file here and I have a quick look

azure panther
#

This is what I have got currently

azure panther
azure panther
# azure panther

I am also not quite sure what "startup" and "modified_startup" is in relation to pterodactyl, if you could show me a documentation?

quick herald
quick herald
azure panther
#

Since you are helping me(us) alot but I have to go soon

#

For about 1h

quick herald
#

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

swift panther
#

same timezone

#

aka you'll have another like 2 hours?

quick herald
#

I am studdying so my pc is open

swift panther
#

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

azure panther
#

@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?

quick herald
#

you have to build them, can be on your machine can be with github and push them to like docker hub or ghcr

azure panther
#

Also the envoirement variable $TARGETOS is not defined

quick herald
#

so change that to --platform=linux/amd64

azure panther
#

after its done, can I simply specify the container to be puppeteer2:latest ?

quick herald
azure panther
quick herald
azure panther
swift panther
#

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?

quick herald
swift panther
#

what?

#

@quick herald would you like to join a vc with us so it's easier to do?

quick herald
#

I have no time for that

swift panther
#

alright but what do i have to do now?

quick herald
swift panther
#

so i need to create a new server?

quick herald
#

no this is for a existing server

swift panther
#

so the one my bot runs on currently?

quick herald
#

yes

#

It looks like you have no idea what your doining, I don't have all day

swift panther
#

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

quick herald
#

then it worked likly

swift panther
#

thank you for helping!!!