Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mmjr-x/dockerize-tcpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dockerize-tcpp

Attempt at creating an easy to use and customizable dockerizeation method for TCPP ( https://github.com/The-Cataclysm-Preservation-Project ) codebases (or forks thereof)

This doesnt work git clone -c core.autocrlf=false https://github.com/The-Cataclysm-Preservation-Project/TrinityCore.git tcpp-repo <-- does not work git init tcpp-repo && cd tcpp-repo && git config core.autocrlf false && git remote add origin https://github.com/The-Cataclysm-Preservation-Project/TrinityCore.git && git pull origin master

MAKE SURE YOU CHECK OUT EVERYTHING WHILE MAINTAINING THE CORRECT LINE ENDINGS (windows fill screw you on this by converting everything to CRLF....)

set trinity core db user to root (or make it so that it can create the required databases) ^ No longer required

run server

change database in character update table 2021_07_29_00_characters.sql.sql -> 2021_07_29_00_characters.sql and change the checksum to BCD64CE7EB34E6054D14A6C7F33B2ADC0678092C (sha1) ^ No longer required

Manual step's after upping the containers (Only required if your starting off a clean database!)

  1. Attach to the worldserver container using docker attach $(docker ps -f name=tcpp-worldserver --quiet)
  2. Type yes followed by an enter to populate the database
  3. Wait till step 2 is done
  4. Repeat steps 2. and 3. untill all database are set up (should be 4 in total, auth, characters, hotfixes and world)
  5. Server should now start and you will end up in the console
  6. Detach from the container using Ctrl^z+Ctrl^c
  7. You are good to go

How do I attach to my world server so I can acctually get to the console?

docker attach $(docker ps -f name=tcpp-worldserver --quiet)

How do I deattach without closing the server?

Ctrl^z+Ctrl^c or Ctrl^p+Ctrl^q or Ctrl^p+q (supposedly although this does not work in the vscode terminal)

TODO:

  • Enable telnet and make it accessable
  • Make shutdown gracefuller (fix SIGTERM passthrough in worldserver and see if adding a saveall is possible before halting)
  • See if we need to store the acctual repo in a named volume (to prevent accidantel loss of unsaved data)
  • Document more
  • Look into starting everything in a tmux session
  • Maybe simplify the Docker image into a single image (with multiple starting options)
  • See if we can make it so that the realmlist settings are set correctly for connections from the host
  • Optimize DockerFile's
  • Improve the way configs are processed
  • See if we can make it so custom sql's can be added (and will be applied on server boot)
  • Make integration with vscode better (predefined the required plugin's before attaching and stuff)
  • Might be nice to add a simple signup page/webserver (dust off the old SOAP project)?

About

Attempt at creating an easy to use and customizable dockerizeation method for TCPP ( https://github.com/The-Cataclysm-Preservation-Project ) codebases (or forks thereof)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published