GithubHelp home page GithubHelp logo

Comments (26)

nepcore avatar nepcore commented on June 26, 2024 1

and contradicts what you had said.

How so? I said what is written in the Dockerfile doesn't need to be done in PufferPanel, everything installed there is already in the image once it's built, most Docker images do however not include the actual game files and instead download them when the container is started if they're not there, so the install section of a template is still relevant since PufferPanel ignores the images preconfigured start command and replaces that with what's in the template because PufferPanel uses Docker images pretty much as dependency bundles that support strong system isolation


A bit senseles to allow users to use every image;

Docker images are meant to be build once, run on anywhere (so long as the CPU arch is supported by the image), there is no reasonable way to differentiate Docker images into different categories, though I don't see what for in the first place
Since the Docker image a server uses can only be changed by an admin, an arbitrary user cannot use that as a way to run whatever they want (and if that's your concern, good luck with e.g. user provided Minecraft plugins/mods)

Docker is the future in hosting and the pufferpanel team, if it wants to survive, should think about implementing it properly; especially in such a time where a canadian scammer, with Ptero no longer makes ;)

Docker is one of many approaches. LXC, Podman and friends don't exist for no reason and Docker isn't always flat out the right choice for everything (nothing ever is, use cases are always important to consider), so claiming it to be the only thing that needs to be supported is rather short sighted

But let's keep that, it being off topic here, elsewhere, feel free to talk about it on discord or open a separate issue

from pufferpanel.

gOOvER avatar gOOvER commented on June 26, 2024 1

I think i Give up for now. I can't make it work, when i pull jammsen/sons-of-the-forest-dedicated-server I have problems with permissions, and when i pull scottyhardy/docker-wine:stable it has problem with xvfb which I cant install. Now I am trying it with FragSoc/steamcmd-wine-xvfb-docker but cant make it work for now.

played around a bit with a Templates, but IT looks Like, Pufferpanel is not really designed to run Games with wine.

from pufferpanel.

gOOvER avatar gOOvER commented on June 26, 2024

is there any wine Image for Pufferpanel?

from pufferpanel.

SpeeDFireCZE avatar SpeeDFireCZE commented on June 26, 2024

is there any wine Image for Pufferpanel?

Docker server (SoF) running/using wine and xvfb. Or how did you mean that ?

There is one more way to do that but I can't make it work as well : https://www.ionos.com/digitalguide/server/know-how/sons-of-the-forest-server-ubuntu-2204/

from pufferpanel.

gOOvER avatar gOOvER commented on June 26, 2024

You cant use the image above. As i know, you need special images for Pufferpanel

from pufferpanel.

nepcore avatar nepcore commented on June 26, 2024

@gOOvER That is incorrect, you can use any Docker image with PufferPanel, however their default run commands are ignored and always replaced with what is set as the run command in the PufferPanel template

@SpeeDFireCZE Could you please be a bit more explicit about what you tried and in what way it didn't work? It's rather hard to help you figure out the issue without knowing more than something doesn't do what one specific user (you) expects, it could be anything from a misunderstanding to a bug to some unsupported detail and many other things in between

from pufferpanel.

gOOvER avatar gOOvER commented on June 26, 2024

@gOOvER That is incorrect, you can use any Docker image with PufferPanel, however their default run commands are ignored and always replaced with what is set as the run command in the PufferPanel template

is there any example for an image?

@SpeeDFireCZE Could you please be a bit more explicit about what you tried and in what way it didn't work? It's rather hard to help you figure out the issue without knowing more than something doesn't do what one specific user (you) expects, it could be anything from a misunderstanding to a bug to some unsupported detail and many other things in between

He want to run the image above in Pufferpanel :)

https://github.com/jammsen/docker-sons-of-the-forest-dedicated-server

from pufferpanel.

nepcore avatar nepcore commented on June 26, 2024

is there any example for an image?

As said, any Docker image is fine, they'll all work, they just aren't started with their default start command, they're pretty much used as nothing but dependency bundles

He want to run the image above in Pufferpanel :)

Yes, I got that much, that doesn't tell me anything about how they tried to build their template though and by extension I can't tell where they might have made a wrong assumption or hit something that seems like a bug I'd need to investigate more closely etc

from pufferpanel.

SpeeDFireCZE avatar SpeeDFireCZE commented on June 26, 2024

@SpeeDFireCZE Could you please be a bit more explicit about what you tried and in what way it didn't work? It's rather hard to help you figure out the issue without knowing more than something doesn't do what one specific user (you) expects, it could be anything from a misunderstanding to a bug to some unsupported detail and many other things in between

Hi,
I tried to remake commands from steamcmdinstall.txt (https://github.com/jammsen/docker-sons-of-the-forest-dedicated-server/blob/master/steamcmdinstall.txt):
force_install_dir /sonsoftheforest
login anonymous
app_update 2465200 validate
quit
(this command works and app is installed but next commands dont).

and dockerfile (https://github.com/jammsen/docker-sons-of-the-forest-dedicated-server/blob/master/Dockerfile) to puffer template. But it looks like when I add command to install which have to install some app (sudo apt install), that this command didnt do anything, it doesnt start install only gets to first apt install command and dont continue to next command (in puffer terminal).

Next i try to start it using: https://github.com/jammsen/docker-sons-of-the-forest-dedicated-server/blob/master/usr/bin/servermanager.sh

I think I only desn't 100% understand to template pattern, and i dont know which commands works and which don't in terminal.

I will make some screens and send it in next answer.

from pufferpanel.

SpeeDFireCZE avatar SpeeDFireCZE commented on June 26, 2024

image
image
image

image

image

As you can see in third image, puffer execute only first command and skip next.

If i delete all commands in second command form then it start installing steam app:
image
image
It install it but cant start because sh script doesnt exist and doesnt have requirements (wine...)

If i add some commands in same commands form right behind install:
image
it start install normaly:
image
after steam app install it again execute only first command:
image

Its probably some fault on my side, as i said I am not really sure how to import docker run/ docker compose repositories to template. I didnt find any tutorial for it.

thank you for your help guys.

from pufferpanel.

SpeeDFireCZE avatar SpeeDFireCZE commented on June 26, 2024

I think that I finally starting to understand to templates. But now when I get to start server over docker I have problem with permisions.
image
How can I escalate permisions to puffer? Adding puffer user to adm or sudo dont work.
Thanks

from pufferpanel.

gOOvER avatar gOOvER commented on June 26, 2024

i would use a pure wine stable Image and let Pufferpanel Install the game

from pufferpanel.

SpeeDFireCZE avatar SpeeDFireCZE commented on June 26, 2024

i would use a pure wine stable Image and let Pufferpanel Install the game

I dont know how did you mean it. I want it in docker and I cant install any aplication in created docker with template, puffer dont have rights as you can see in images. Or what was you idea, how did you mean it ?

from pufferpanel.

gOOvER avatar gOOvER commented on June 26, 2024

I my eye's you CANT use the image you posted above. The image install all.

Use:
scottyhardy/docker-wine:stable

as image and build a template around that. BUT, you must download the Windows version from Steam, else it dont work

from pufferpanel.

SpeeDFireCZE avatar SpeeDFireCZE commented on June 26, 2024

I my eye's you CANT use the image you posted above. The image install all.

Use: scottyhardy/docker-wine:stable

as image and build a template around that. BUT, you must download the Windows version from Steam, else it dont work

I dont have connected any display to server so i need to install xvbf but I am again stuck with premissions :/

from pufferpanel.

gOOvER avatar gOOvER commented on June 26, 2024

I my eye's you CANT use the image you posted above. The image install all.
Use: scottyhardy/docker-wine:stable
as image and build a template around that. BUT, you must download the Windows version from Steam, else it dont work

I dont have connected any display to server so i need to install xvbf but I am again stuck with premissions :/

you dont need any display for the server.

from pufferpanel.

SpeeDFireCZE avatar SpeeDFireCZE commented on June 26, 2024

I my eye's you CANT use the image you posted above. The image install all.
Use: scottyhardy/docker-wine:stable
as image and build a template around that. BUT, you must download the Windows version from Steam, else it dont work. Dont ask me why but you need it

I dont have connected any display to server so i need to install xvbf but I am again stuck with premissions :/

you dont need any display for the server.

specificaly for SoF you need to have connected display or xvbf for fake display. In process of instalation it will fail on display if you dont. Dont ask me why but you need it, maybe on win server its not needed but on linux it is.

from pufferpanel.

gOOvER avatar gOOvER commented on June 26, 2024

I my eye's you CANT use the image you posted above. The image install all.
Use: scottyhardy/docker-wine:stable
as image and build a template around that. BUT, you must download the Windows version from Steam, else it dont work. Dont ask me why but you need it

I dont have connected any display to server so i need to install xvbf but I am again stuck with premissions :/

you dont need any display for the server.

specificaly for SoF you need to have connected display or xvbf for fake display. In process of instalation it will fail on display if you dont. Dont ask me why but you need it, maybe on win server its not needed but on linux it is.

no, thats wrong. You do not have a display with XVFB. I wrote an egg for Pterodactyl without XVFB

from pufferpanel.

nepcore avatar nepcore commented on June 26, 2024

you dont need any display for the server.

I wouldn't be so sure about that, I've seen games do completely off the rocker stuff like exposing their console via telnet instead of the standard in/out streams, it wouldn't surprise me if someone managed to think that a server absolutely needs a UI, because oh look, literally any distraction what were we talking about?
But I don't know for sure either way, just wouldn't be surprised by it

Adding puffer user to adm or sudo dont work.

First of all, I'd strongly recommend undoing that, PufferPanel should not have access to sudo or similar
Also, adding the user to any group won't show effect for dockerized servers as all install commands are run inside a container, therefore isolated from the host system, just like the run command
Let alone that if you use the Docker image you linked you don't need to run anything noted in its Dockerfile, the Dockerfile is used by Docker to build the image, the resulting image already has those packages installed etc

Next i try to start it using: https://github.com/jammsen/docker-sons-of-the-forest-dedicated-server/blob/master/usr/bin/servermanager.sh

That script is quite heavily hardcoded to use very specific paths in the container, so even if you got it the permissions it wants it would loose save data as PufferPanel removes containers when they're not needed as it expects that the save data lives in the directory it mounts the server files into, which that script doesn't care about

To make it work you'll probably have to take that script and more or less rewrite it as part of the PufferPanel template to get everything to go where it needs to

from pufferpanel.

gOOvER avatar gOOvER commented on June 26, 2024

you dont need any display for the server.

I wouldn't be so sure about that, I've seen games do completely off the rocker stuff like exposing their console via telnet instead of the standard in/out streams, it wouldn't surprise me if someone managed to think that a server absolutely needs a UI, because oh look, literally any distraction what were we talking about? But I don't know for sure either way, just wouldn't be surprised by it

believe me, i wrote allready an egg for ptero. No display is needed. The server runs fine in a wine stable env, without XVFB

from pufferpanel.

SpeeDFireCZE avatar SpeeDFireCZE commented on June 26, 2024

@gOOvER image

@nepcore and is there any way to use apt install in docker containers made by puffer ? Some way to get rights ?

from pufferpanel.

nepcore avatar nepcore commented on June 26, 2024

You don't need to, the image already has it all installed, the commands in the Dockerfile run as part of the image creation process, so if you can use the image the commands have been run already

from pufferpanel.

SpeeDFireCZE avatar SpeeDFireCZE commented on June 26, 2024

You don't need to, the image already has it all installed, the commands in the Dockerfile run as part of the image creation process, so if you can use the image the commands have been run already

Ok thanks I didnt know that. so when i choose docker image it automaticaly install all aplications in that image and i need only to start it ? I dont need to use install, for docker then ?

from pufferpanel.

nepcore avatar nepcore commented on June 26, 2024

That is not what I said, a Dockerfile tells Docker what image to use as a starting point, Docker takes that base image and runs all the commands given in the Dockerfile, the result of that is the new image, that means that anything that Dockerfile asked for and anything already in its base image are available in the image without further setup, but e.g. game files usually need to be installed separately, so the install section of a template is still relevant

from pufferpanel.

gOOvER avatar gOOvER commented on June 26, 2024

That is not what I said, a Dockerfile tells Docker what image to use as a starting point, Docker takes that base image and runs all the commands given in the Dockerfile, the result of that is the new image, that means that anything that Dockerfile asked for and anything already in its base image are available in the image without further setup, but e.g. game files usually need to be installed separately, so the install section of a template is still relevant

and contradicts what you had said.

Docker is the future in hosting and the pufferpanel team, if it wants to survive, should think about implementing it properly; especially in such a time where a canadian scammer, with Ptero no longer makes ;)

from pufferpanel.

SpeeDFireCZE avatar SpeeDFireCZE commented on June 26, 2024

I think i Give up for now. I can't make it work, when i pull jammsen/sons-of-the-forest-dedicated-server I have problems with permissions, and when i pull scottyhardy/docker-wine:stable it has problem with xvfb which I cant install. Now I am trying it with FragSoc/steamcmd-wine-xvfb-docker but cant make it work for now.

from pufferpanel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.