Files
minecraft_vanilla/README.md
ducoterra 5f0e0b41f7
All checks were successful
Minecraft Java Image / build-and-push (push) Successful in 18s
switch to amazon corretto
2025-11-07 10:02:48 -05:00

60 lines
923 B
Markdown

# Minecraft
## Running Locally
```bash
# Build
make build
# download the most recent version of minecraft
make get-server
# Run the server
make run
# Stop the server
make stop
```
## Uploading to Docker Hub
1. Update the version in the VERSION file.
2. Build and push the new version
```bash
make build
make push
```
## Running in kubernetes
Requires helm v3. Edit values.yaml and run the following:
```bash
helm upgrade --install minecraft
```
Your minecraft server will be available on port 25565 by default.
### Create a Backup in Kubernetes
```bash
kubectl cp <pod_name>:/mc_data <backup>
```
### Restore from Backup in Kubernetes
```bash
kubectl cp <backup> <pod_name>:/mc_data
```
## Cool seeds
### 7485786574821478084
Spawns you next to a nether portal with golden axe and pickaxe. River and Village close by.
### -8018833100564192815
Use with an amplified world, massive island