contrib/Docker/README.md
The Circle CI Linux pch job uses the Dockerfile contained in the same folder as this README to create an image with the binaries built for Linux, and stores that in the job artifacts. For the 3.3.5 and master branches, it also pushes the images to https://hub.docker.com/r/trinitycore/trinitycore .
The instructions below expect a basic knowledge of how to configure TrinityCore and how to use Docker.
For the 3.3.5 and master branches, it's possible to pull the images from DockerHub.
docker pull trinitycore/trinitycore:3.3.5
docker pull trinitycore/trinitycore:master
docker pull trinitycore/trinitycore:commit_hash
For Pull Requests or branches other than 3.3.5 or master, follow the steps below to load the image from Circle CI:
docker load -i docker.tar.gz
".;/var/run/mysqld/mysqld.sock;username;password;database""/trinity/data"bnetserver
docker run --entrypoint=bnetserver -it --volume=/host/path/to/configs:/home/circleci/project/bin/check_install/etc --volume=/var/run/mysqld/mysqld.sock:/var/run/mysqld/mysqld.sock -p=1119:1119 -p 8081:8081 "image name"
worldserver
docker run --entrypoint=worldserver -it --volume=/host/path/to/configs:/home/circleci/project/bin/check_install/etc --volume=/var/run/mysqld/mysqld.sock:/var/run/mysqld/mysqld.sock --volume=/path/to/data/directory:/trinity/data -p=8085:8085 -p 8086:8086 "image name"
Change the ports and other parameters as needed. Consult Docker documentation for additional details about possible configuration settings.
The image contains:
You can explore the image using
docker run --entrypoint=/bin/bash -it "image name"
Note that the WORKDIR is set to /home/circleci and all logs will be saved to that folder by default. You can export the logs from the container with
docker cp "container name":/home/circleci/name.log name.log
For more instructions, please check the official docker documentation.
docker run parameters and .conf settings to fit your scenario.--volume=/path/to/TDB_full_name.sql:/home/circleci/TDB_full_name.sql added to the commands specified in the main steps above.