Merge branch 'pr-improvements' into pr-improvements

This commit is contained in:
Nils Bergmann 2021-12-09 17:43:52 +01:00 committed by GitHub
commit 619eec8335
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 16 deletions

View File

@ -5,11 +5,12 @@ BUILD_THREADS=1
# Updates NET_VERSION in CMakeVariables.txt # Updates NET_VERSION in CMakeVariables.txt
BUILD_VERSION=171022 BUILD_VERSION=171022
# make sure this is a long random string # make sure this is a long random string
# grab a "SHA 256-bit Key" from here: https://keygen.io/
ACCOUNT_MANAGER_SECRET= ACCOUNT_MANAGER_SECRET=
# Should be the externally facing IP of your server host # Should be the externally facing IP of your server host
EXTERNAL_IP=localhost EXTERNAL_IP=localhost
# Database values # Database values
MARIADB_USER=SECRET_VALUE_CHANGE_ME MARIADB_USER=darkflame
MARIADB_PASSWORD=SECRET_VALUE_CHANGE_ME MARIADB_PASSWORD=SECRET_VALUE_CHANGE_ME
MARIADB_ROOT_PASSWORD=SECRET_VALUE_CHANGE_ME MARIADB_ROOT_PASSWORD=SECRET_VALUE_CHANGE_ME
MARIADB_DATABASE=SECRET_VALUE_CHANGE_ME MARIADB_DATABASE=darkflame

View File

@ -14,8 +14,11 @@
4. Run `docker-compose up --build setup` 4. Run `docker-compose up --build setup`
5. Run `docker-compose up -d database` 5. Run `docker-compose up -d database`
6. Run `docker-compose up --build -d account-manager brickbuildfix` 6. Run `docker-compose up --build -d account-manager brickbuildfix`
7. Run `docker-compose up --build -d darkflame` 7. Run `docker-compose build darkflame`
8. Now you can see the output of the server with `docker compose logs -f --tail 100` or `docker-compose logs -f --tail 100`. This can help you understand issues and there you can also see when the server finishes it's startup. 8. Run `docker-compose exec darkflame /app/MasterServer -a` and setup your admin account
9. Run `docker-compose up -d darkflame`
10. Now you can see the output of the server with `docker compose logs -f --tail 100` or `docker-compose logs -f --tail 100`. This can help you understand issues and there you can also see when the server finishes it's startup.
11. You're ready to connect your client!
## Disable brickbuildfix ## Disable brickbuildfix

View File

@ -30,10 +30,9 @@ services:
- database:/var/lib/mysql - database:/var/lib/mysql
networks: networks:
- darkflame - darkflame
# (optional) ports only exposed so that DB management tools can connect # You can expose these so that DB management tools can connect (WARNING: INSECURE)
# Remove the # of the next two lines to expose your database
# ports: # ports:
# - 3306:3306 # - 3306:3306
darkflame: darkflame:
container_name: DarkflameServer container_name: DarkflameServer

View File

@ -58,7 +58,7 @@ update_ini_values
if [[ ! -d "/client" ]]; then if [[ ! -d "/client" ]]; then
echo "Client not found." echo "Client not found."
echo "Did you forgot to mount the client into the \"/client\" directory?" echo "Did you forget to mount the client into the \"/client\" directory?"
exit 1 exit 1
fi fi
@ -69,8 +69,8 @@ if [[ ! -f "/client/extracted" ]]; then
touch /client/extracted touch /client/extracted
else else
echo "Client already extracted. Skip this step" echo "Client already extracted. Skip this step..."
echo "If you want to force re-extract, just delete the file called \"extracted\" in the client directory" echo "If you want to force a re-extract, just delete the file called \"extracted\" in the client directory"
fi fi
if [[ ! -f "/client/migrated" ]]; then if [[ ! -f "/client/migrated" ]]; then
@ -80,6 +80,6 @@ if [[ ! -f "/client/migrated" ]]; then
touch /client/migrated touch /client/migrated
else else
echo "Client db already migrated. Skip this step" echo "Client db already migrated. Skip this step..."
echo "If you want to force re-migrate, just delete the file called \"migrated\" in the client directory" echo "If you want to force a re-migrate, just delete the file called \"migrated\" in the client directory"
fi fi

View File

@ -37,12 +37,13 @@ else
echo "Server already initialized" echo "Server already initialized"
fi fi
while [ ! -f "/client/migrated" ]; do # check to make sure the setup has completed
echo "Client setup not finished. Waiting for setup container to complete" while [ ! -f "/client/extracted" ] || [ ! -f "/client/migrated" ]; do
sleep 1 echo "Client setup not finished. Waiting for setup container to complete..."
sleep 5
done done
# start the server # start the server
echo "Start MasterServer" echo "Starting MasterServer"
./MasterServer ./MasterServer
tail -f /dev/null tail -f /dev/null