fix: improve our docker config (#1373)

* greatly simplify docker

* back to gcc since I can't the libs to load properly

* fix typo
add set -e to entrypoint
better copy of entrypoint.sh and use proper entrypoint

* use debian instead of gcc for runtime
comment and organize it a bit
drop gcc to 12 since we are using debian 12 as well

* explicitly include mariadb libs

* Make the server not crash in the case we are using only env-vars
make the dockerfile have configs in the expected location incase of bypassing entrypoint.sh

* remove unneede var from example, since it's in the container now

* coments to dockerfile

* Revert master server changes

* Resolve conflicting port options between chat, master, and world
move chat_server_port to shared since it's used by world and chat

* Don't error if file does not exists when updating a config option
move update before and use bin dir var
This commit is contained in:
Aaron Kimbrell
2024-01-03 02:36:17 -06:00
committed by GitHub
parent a84ca1f00d
commit 9116317834
38 changed files with 204 additions and 360 deletions

View File

@@ -1,5 +1,5 @@
# Port number. The client has the authserver port hardcoded to 1001
port=1001
auth_server_port=1001
# 0 or 1, should ignore playkeys
# If 1 everyone with an account will be able to login, regardless of if they have a key or not

View File

@@ -1,6 +1,3 @@
# Port number
port=2005
# If you would like to increase the maximum number of best friends a player can have on the server
# Change the value below to what you would like this to be (5 is live accurate)
max_number_of_best_friends=5

View File

@@ -2,7 +2,7 @@
master_ip=localhost
# Port number
port=2000
master_server_port=2000
# The port number to start world servers on. Will be incremented for each world
world_port_start=3000

View File

@@ -62,3 +62,7 @@ event_8=
version_major=1
version_current=10
version_minor=64
# The port the chat server is started and listening on
# Used in chat and world servers
chat_server_port=2005

View File

@@ -2,9 +2,6 @@
# If you fork this repository and/or make changes to the code, reflect that here to comply with AGPLv3
source=https://github.com/DarkflameUniverse/DarkflameServer
# Port to the chat server, same as in chatconfig.ini
chat_server_port=2005
# 0 or 1, should disable chat
disable_chat=0