Closed KingBBQ closed 2 years ago
mmm we are hardcoding the port likely because no one considered things like server.minetest.net I'll work on a PR tomorrow for an envar to support changing the port on the inside.
since the cli_args are checked before and the port is set after, it'll use the last entered variable which will always be 30000. We can potentially just move cli_args var to the end, or allow the internal port as a var itself. I'm more inclined to move the cli_args to the end for a quicker fix.
so something like
s6-setuidgid abc minetestserver --port 30000 \
--config /config/.minetest/main-config/minetest.conf ${CLI_ARGS}
perhaps? ill need to test
prelim results look good
__. __. __.
_____ |__| ____ _____ / |_ _____ _____ / |_
/ \| |/ \ / __ \ _\/ __ \/ __> _\
| Y Y \ | | \ ___/| | | ___/\___ \| |
|__|_| / |___| /\______> | \______>_____/| |
\/ \/ \/ \/ \/
2022-05-02 11:28:36: ACTION[Main]: World at [/config/.minetest/worlds/world]
2022-05-02 11:28:36: ACTION[Main]: Server for gameid="minetest" listening on 0.0.0.0:30002.
i will submit the PR and need you guys to test and report back please.
Just tested it—works perfectly - many, many thanks!!!!!
Expected Behavior
Current Behavior
Server always starts up under 30000
Steps to Reproduce
Result: 2022-04-28 12:15:12: ACTION[Main]: Server for gameid="xxxx" listening on 0.0.0.0:30000.
Environment
OS: Ubuntu CPU architecture: x86_64
Command used to create docker container (run/create/compose/screenshot)
Docker logs