First, build the docker image:
docker build -t darkeden:dev . -f Dockerfile.devSecond, run the container
docker run -v `pwd`:/home/darkeden/vs/ -it darkeden:dev /bin/bashOn Windows pwd should be changed to %cd%
docker run -v %cd%/:/home/darkeden/vs/ -it darkeden:dev /bin/bash
Third, build the darkeden server binary files
make
and you can add -j 8 to the make command to accelerate the building process if you're using a 8-core machine.
When the build process finish, exit docker, and loginserver/sharedserver/gameserver are generated in the bin/ directory.
TODO
NOTE: standalone version only support deploying server and client on the same machine.
If you want to run server on one machine, and client on the other, you need to modify mysql DARKEDEN.GameServerInfo table and restart server.
docker build . -t darkeden:latest -f Dockerfile.pubcd docker
docker-compose up -dLogin to server container:
docker exec -w /home/darkeden/vs/bin -it docker_odk-server_1 /bin/bash
Run the server:
./start.sh
Stop all:
./stop.sh
docker-compose downdocker exec -it docker_odk-mysql_1 mysql -u elcastle -pelca110use DARKEDEN;
update GameServerInfo set IP = '192.168.0.16';docker tag c0bdad60a1a7(TAG) tiancaiamao/darkeden:latest
docker push tiancaiamao/darkeden:latest