Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 867 Bytes

File metadata and controls

27 lines (18 loc) · 867 Bytes

Minecraft Server

My Minecraft server on GKE with preemptible nodes.

Contributing

If you want to add yourself to the whitelist:

  • Fork the repo
  • Edit k8s/whitelist.yml to add your desired username, and its offline UUID. THIS IS CASE SENSITIVE
  • You can find your offline UUID using this api. Cmd example: where YOUR_USERNAME is your name
    • curl -s http://tools.glowingmines.eu/convertor/nick/YOUR_USERNAME | jq '.offlinesplitteduuid'
  • Make a PR and tag me for review

Use locally

Mount a map as a volume at /home/minecraft/server

Optionally mount a whitelist at /home/minecraft/config/whitelist.json Set the heapsize with the HEAPSIZE env var

Example:

docker build -t minecraft:$(cat VERSION) .
docker run -p 25565:25565 -e HEAPSIZE=3G -v /tmp:/home/minecraft/server minecraft:$(cat VERSION) .