ZhengPeiRu21 / mod-playerbots

AzerothCore Playerbots Module
MIT License
194 stars 93 forks source link

Failed to build docker container with Playerbot branch of AzerothCore #97

Open davidonete opened 2 years ago

davidonete commented 2 years ago

Hi, I am currently trying to build a docker container using the forked branch for playerbots (https://github.com/ZhengPeiRu21/azerothcore-wotlk/tree/Playerbot) but the build fails when executing "acore.sh docker build" with the following message:

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:117 (find_package): Could not find a package configuration file provided by "boost_thread" (requested version 1.71.0) with any of the following names: boost_threadConfig.cmake boost_thread-config.cmake

Add the installation prefix of "boost_thread" to CMAKE_PREFIX_PATH or set "boost_thread_DIR" to a directory containing one of the above files. If "boost_thread" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): /usr/lib/x86_64-linux-gnu/cmake/Boost-1.71.0/BoostConfig.cmake:182 (boost_find_component) /usr/share/cmake-3.16/Modules/FindBoost.cmake:443 (find_package) deps/boost/CMakeLists.txt:35 (find_package)

This are the steps I am following to download and build it:

And I am currently building on my Windows 10 PC and using Docker Desktop

Please let me know if you need any more information. All the help is very much appreciated, Thanks

hallinbirch commented 1 year ago

Alright Dude here is how i got docker to work but know I'm on Arch Linux so this may or may not be as helpful as intended first off you need the latest mod-playerbots the acore-wotlk branch has an outdated version.

git clone -b Playerbot https://github.com/ZhengPeiRu21/azerothcore-wotlk.git cd azerothcore-wotlk rm -rf modules/mod-playerbots cd modules git clone https://github.com/ZhengPeiRu21/mod-playerbots.git cd ..

next I opened ./apps/docker/Dockerfile in a text editor and add "libboost-thread-dev" (without quotes) to the three lines with other libboost stuff this will fix your first issue then I ran

./acore docker build

then i edited PlayerbotsDatabaseInfo in the docker playerbots config ./env/docker/etc/modules PlayerbotsDatabaseInfo = "127.0.0.1;3306;acore;acore;acore_playerbots" to PlayerbotsDatabaseInfo = "ac-database;3306;acore;acore;acore_playerbots"

( if that didn't work you can try the default acore-db root SQL account

PlayerbotsDatabaseInfo = "ac-database;3306;root;password;acore_playerbots"

otherwise someone with more SQL knowledge then me can offer a more secure fix if acore:acore doesn't work ) then run

./acore docker start:app

you may have to restart the container twice to get desired results. I really hope this helps