GeyserDockerBuilder/Readme.md

38 lines
1.1 KiB
Markdown
Raw Normal View History

2024-01-16 16:51:00 +01:00
# GeyserDockerBuilder
Jenkins pipeline to build a Docker image of Geyser Standalone.
```bash
2024-01-18 15:05:35 +01:00
Dockerfile # used to build the Docker image
Jenkinsfile # the pipeline file
2024-01-16 16:51:00 +01:00
Readme.md # you are reading this file
2024-01-18 15:05:35 +01:00
run.sh # entrypoint of the Docker image
2024-01-16 16:51:00 +01:00
```
## Pipeline process
2024-01-18 15:05:35 +01:00
1. Fetches the information about the latest build of Geyser (version, build number), from the [GeyserMC API](https://download.geysermc.org/v2/projects)
2. Downloads the Geyser Standalone jar file.
3. Builds the docker image with the downloaded jar and the entrypoint script.
4. Pushes the image to the container registry with the tags `latest` and `$geyser_version-$geyser_build` (e.g. `2.2.0-408`)
2024-01-16 16:51:00 +01:00
## Docker Compose Example
2023-04-07 15:19:09 +02:00
```yml
version: "3"
services:
2024-01-16 16:51:00 +01:00
geyser:
image: "cr.pandacube.fr/geyser:latest"
2023-04-07 15:19:09 +02:00
stdin_open: true # docker run -i
tty: true # docker run -t
user: "1000:1000" # uid and gid of owner of working dir
environment:
- MAXMEM=2048M # Java max heap size
restart: always
volumes:
- .:/data/workdir
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
2023-04-07 16:04:06 +02:00
- "0.0.0.0:(port):19132/udp"
2023-04-07 15:19:09 +02:00
```