Software required to be installed: just the docker engine in Docker Desktop.
And having access to some kind of command-line terminal.
- In Windows, execute (
Windows Key + r
) the commandcmd
. - In Mac OS, open the Terminal App (or use
Cmd + spacebar
and typeTerminal
). - In any kind of Unix/Linux, you know what we are talking about.
-
Use the image:
- Download the image from the repository
docker pull ghcr.io/maldorne/hexagon:latest
- or generate it yourself
docker build --no-cache . -t ghcr.io/maldorne/hexagon:latest
- Download the image from the repository
-
Run the container in background:
docker run --rm -d -p 23:5000 --name hexagon ghcr.io/maldorne/hexagon:latest
docker stop hexagon
will stop the container.
-
Connect to the container if needed (it has to be running, see previous step):
docker exec -it hexagon bash
If you make changes to the image, push it after building it:
docker push ghcr.io/maldorne/hexagon:latest
but have in mind it will add to the image anything you have in your hexagon
directory. It is better to rely on the automatic image creation done by the CI/CD pipeline (every time code is pushed to the master
branch).
To update the version you have in your computer, pull the image from the repository:
docker pull ghcr.io/maldorne/hexagon:latest
We are mapping the 23 port in the host machine to the 5000 port in the container, so if we execute telnet localhost
in the host machine it will connect to the mud in the container.
- Use in your local machine
telnet localhost
(it will use the default port 23) to connect to the mud inside the container and see if everything is working.
By default you will have an administrator account created, with username admin
, email [email protected]
and password hexagon
.