This will let you easily bring up a container running a One Hour One Life game server.
Make sure you've got Docker installed. Then clone the repo and you're ready to build the image.
You will need to have Docker installed to build and run the image. From the repo root in your terminal run:
$ docker-compose build
Once the Docker image has been built, you can bring up a container:
$ ./utils/up
up
will also implicitly run the logwatch
command
To stop the server and preserve state:
$ ./utils/halt
To stop the server and remove the persisted state:
$ ./utils/destroy
To restart a running server:
$ ./utils/bounce
To restart destructively (remove the persisted state):
$ ./utils/bounce hard
bounce
will also implicitly run the following command
To view and follow the server's log output
$ ./utils/logwatch
To shell into the Alpine Linux environment running the server:
$ ./utils/shell
Right now, the game and its data are installed into the Docker image. This is probably fine for casual play, running a home server, etc. If you want to run this as a persistent, public server though, you may not like this setup and want things like game data to be external. I've tried running a setup with a Docker volume mounted, but the server does not seem to start properly, and I haven't been able to get it working yet. If you have any success in this area, please send a PR.