To contribute to this repository, start by installing the necessary dependencies and following the build steps, below!
Install asdf, followed by executing the dependencies script.
./scripts/dependencies.sh
This script will install all necessary tools and their versions as defined in the .tool-versions
-file at the root of this repository.
This project has primarily been developed on Docker. Please have a suitable version installed on your machine (25 and later). Please open an Issue in this repository if you have any issues running this container image.
Run the following Docker build and run commands to execute this codebase.
DOCKER_BUILDKIT=1 docker build --platform="linux/[amd64|arm64]" . -t directory-anarchy:latest
docker run -it -e DEBUG=true -n directory-anarchy-game directory-anarchy:latest
If you'd like to persist the game state, launch this container with a volume mapped to a local directory on your machine or mount a Docker volume.
mkdir ~/.anarchy_game_state
docker run -it -e DEBUG=true -v "$HOME"/.anarchy_game_state:/opt/anarchy -n directory-anarchy-game directory-anarchy:latest