daid / EmptyEpsilon

Open source bridge simulator. Build with the SeriousProton engine.
https://daid.github.io/EmptyEpsilon/
GNU General Public License v2.0
534 stars 181 forks source link

[Feature Suggestion/Question] Dockerfile / Containerfile Addition? #2240

Open Da-Geek opened 4 hours ago

Da-Geek commented 4 hours ago

Well, as the suggestion/question states,

I have been using EE exclusively on Linux (Red Hat Based Operating Systems/Fedora/CentOS and so on) to run the Headless Dedicated Servers.

I created a Containerfile (Most people know it as a Dockerfile) to allow me to run the Headless server, repeatedly but most importantly, cleanly each time. I supply multiple Environment Vars, and it runs really nicely.

I wondered if this would be a useful/helpful addition to the project? I am not 100% happy with how I have done it so far, and I need to clean-up some of the Syntax of the Containerfile, but I could create a PR if needed/wanted by the Project.

Maybe even add an GitHub Image Build Workflow to the release and make it available via ghcr.io

If it is not needed/wanted I will just use it myself.

Da-Geek commented 3 hours ago

My current command line to use the image looks like this:

podman run --rm -it -p 35666:35666 \
 -e EE_SCENARIO=scenario_20_training1.lua -e EE_SERVERNAME=Federation \
 -e EE_PASSWD=supersecretpassword -e EE_INTERNET=0 \
 -e EE_ENABLELOG=0 \
 quay.io/da_geek/emptyepsilon-headless:rpmfusion-pre23
Da-Geek commented 3 hours ago

As I said, I am not 100% happy with it, but to get a basic Headless Server running it is very simple. I am still messing around with it, in an effort to allow users to supply a complete config file, instead of just a few select features/options, as you can see from my cmd line example

I just wondered if this would be of interest to anyone else here in the project.