diff --git a/docker/Dockerfile b/Dockerfile old mode 100644 new mode 100755 similarity index 80% rename from docker/Dockerfile rename to Dockerfile index 2415c64..ffad2ca --- a/docker/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM openjdk:8-jre-slim +FROM openjdk:16-alpine RUN mkdir /gsc WORKDIR /gsc EXPOSE 19132/udp diff --git a/README.md b/README.md index 2437eb4..445ddbb 100644 --- a/README.md +++ b/README.md @@ -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 ` +2. Start geyser using this: +``` +docker run --name "geyser-c" -d --restart always -p 19132:19132/udp -v $(pwd)/data:/gsc +``` + #### DNS: [here](bind9) diff --git a/build-image.sh b/build-image.sh new file mode 100755 index 0000000..78b7dd7 --- /dev/null +++ b/build-image.sh @@ -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 . \ No newline at end of file diff --git a/docker/README.md b/docker/README.md deleted file mode 100644 index 7ef8aff..0000000 --- a/docker/README.md +++ /dev/null @@ -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 -``` \ No newline at end of file