aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2021-03-05 22:22:56 +0100
committerGitHub <noreply@github.com>2021-03-05 22:22:56 +0100
commit84ad438d15cffd7dca0e67d540cd41946b946bed (patch)
treee7c8e5b0140999cd5fae0339f633e05091f08b32 /contrib
parenta34519bded8ae45705e7dddf6346008eea88ed39 (diff)
Push docker images to DockerHub (#26177)
* CI/CircleCI: Push docker images to DockerHub Push docker image to DockerHub is DOCKERHUB_PUSH_IMAGES environmental variable is set to "TRUE". * Build in Release only if pushing the images to dockerhub * Move branch from repository name to tag name * Update docker readme Co-authored-by: Trond B. Krokli <38162891+illfated@users.noreply.github.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/Docker/README.md24
1 files changed, 21 insertions, 3 deletions
diff --git a/contrib/Docker/README.md b/contrib/Docker/README.md
index c6d726eaa9e..2971b558aea 100644
--- a/contrib/Docker/README.md
+++ b/contrib/Docker/README.md
@@ -1,8 +1,25 @@
# Docker
-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.
+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:
+The instructions below expect a basic knowledge of how to configure TrinityCore and how to use Docker.
+
+## Load the Docker image
+For the 3.3.5 and master branches, it's possible to pull the images from DockerHub.
+- For latest 3.3.5, use the following command:
+ ```
+ docker pull trinitycore/trinitycore:3.3.5
+ ```
+- For latest master, use the following command:
+ ```
+ docker pull trinitycore/trinitycore:master
+ ```
+- For a specific 3.3.5 or master commit, use the following command, replacing "commit_hash" with the hash of the commit:
+ ```
+ 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:
1. Click the green tick ✔ next to each commit.
1. Scroll to "ci/circleci: pch" and click "Details".
1. Log in to Circle CI if necessary. You may have to repeat the previous steps after logging in, to reach the correct page.
@@ -13,7 +30,8 @@ The instructions below expect a basic knowledge of how to configure TrinityCore
docker load -i docker.tar.gz
```
-1. Copy the .conf files from the TrinityCore GitHub repository to a local folder which will be passed on as a mapped volume to docker.
+## Start authserver/worldserver from Docker
+1. Copy the .conf files from the TrinityCore GitHub repository to a local folder which will be passed on as a mapped volume to Docker.
1. Set the MySQL host in the .conf files to use the UNIX socket of MySQL, i.e.: `".;/var/run/mysqld/mysqld.sock;username;password;database"`
1. Set the "DataDir" config in worldserver.conf to `"/trinity/data"`
1. Start authserver or worldserver as desired, mapping the required volumes: