Docker Xmage Files
Based on the work Goesta did, setup to build a fresh image each launch.
- Builds off Java 21 image (I wanted to use ZGC), you can easily flip this back in
Dockerfileto java 8. - There's a bunch of specific Java options I've set in
compose.yamlrelated to Java21, ZGC, and HugePages. Delete them if you don't want them.--add-opens=java.base/java.io=ALL-UNNAMEDis mandatory if you are using Java21. - Adds an environment variable to set an optional admin password, not the most secure way to do this but I wanted to see if it worked at all (it does). Admin Tools
- Points to Graths weekly builds. You can easily update this in
Dockerfileto point to whatever repo you want.
Clone the repo and make your changes.
Then from inside the directory run the following to download and build a fresh image:
docker compose up -d
Use this command to stop the stack and remove the image:
docker compose down mage_weekly --rmi local
Update the name if you change the service name in compose.yaml