mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-31 01:23:47 +00:00
chore(Docker): add comments to explain the building steps (#1638)
This commit is contained in:
committed by
Nefertumm
parent
6ccab63e7d
commit
c638ae859a
@@ -1,7 +1,9 @@
|
||||
FROM ubuntu:bionic
|
||||
|
||||
# install the required dependencies to compile AzerothCore
|
||||
RUN apt update && apt install -y git cmake make gcc g++ clang libmysqlclient-dev libssl-dev libbz2-dev libreadline-dev libncurses-dev libace-6.* libace-dev
|
||||
|
||||
# copy the sources from the host machine to the Docker container
|
||||
ADD .git /azerothcore/.git
|
||||
ADD deps /azerothcore/deps
|
||||
ADD conf/config.cmake.dist /azerothcore/conf/config.cmake.dist
|
||||
@@ -9,9 +11,15 @@ ADD src /azerothcore/src
|
||||
ADD CMakeLists.txt /azerothcore/CMakeLists.txt
|
||||
|
||||
ENTRYPOINT cd azerothcore/build && \
|
||||
# run cmake
|
||||
cmake ../ -DCMAKE_INSTALL_PREFIX=/azeroth-server -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ -DTOOLS=0 -DSCRIPTS=1 && \
|
||||
# calculate the optimal number of threads
|
||||
MTHREADS=`grep -c ^processor /proc/cpuinfo`; MTHREADS=$(($MTHREADS + 2)) && \
|
||||
# run compilation
|
||||
make -j $MTHREADS && \
|
||||
make install -j $MTHREADS && \
|
||||
# copy the binary files "authserver" and "worldserver" files back to the host
|
||||
# - the directories "/binworldserver" and "/binauthserver" are meant to be bound to the host directories
|
||||
# - see docker/build/README.md to view the bindings
|
||||
cp /azeroth-server/bin/worldserver /binworldserver && \
|
||||
cp /azeroth-server/bin/authserver /binauthserver
|
||||
|
||||
Reference in New Issue
Block a user