bumped openjdk:8 <-> openjdk:16, added much easier setup instructions

This commit is contained in:
Sylensky 2021-11-03 19:40:08 +01:00 committed by BuildTools
parent e76c822442
commit 6484879aed
4 changed files with 17 additions and 12 deletions

2
docker/Dockerfile → Dockerfile Normal file → Executable file
View file

@ -1,4 +1,4 @@
FROM openjdk:8-jre-slim
FROM openjdk:16-alpine
RUN mkdir /gsc
WORKDIR /gsc
EXPOSE 19132/udp

View file

@ -15,5 +15,15 @@ GeyserConnect is a server that Minecraft: Bedrock Edition clients can connect to
**Please note, this project is still a work in progress and should not be used on production. Expect bugs!**
If you wish to run this in docker and/or use DNS redirection please see the appropriate folders in this repo.
#### Docker: [here](docker)
## GeyserConnect using Docker
This contains the docker image and a basic way of running GeyserConnect
### Setup
1. Download and build the docker file using `./build-image.sh <imagename>`
2. Start geyser using this:
```
docker run --name "geyser-c" -d --restart always -p 19132:19132/udp -v $(pwd)/data:/gsc <imagename>
```
#### DNS: [here](bind9)

5
build-image.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
wget -O ./data/GeyserConnect.jar https://ci.opencollab.dev//job/GeyserMC/job/GeyserConnect/job/master/lastSuccessfulBuild/artifact/target/GeyserConnect.jar --no-check-certificate
docker build -t $1 .

View file

@ -1,10 +0,0 @@
# GeyserConnect using Docker
This contains the docker image and a basic way of running GeyserConnect
## Setup
1. Download GeyserConnect to a subfolder called `data`
2. Build the docker file using `docker build -t geyser-connect .`
3. Start geyser using this:
```
docker run --name "geyser-c" -d --restart always -p 19132:19132/udp -v $(pwd)/data:/gsc geyser-connect
```