summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Proest <marcus@proest.net>2020-04-25 17:52:25 +0200
committerMarcus Proest <marcus@proest.net>2020-04-25 17:52:25 +0200
commitf2af461e570002fad70081b28f35051e70739b23 (patch)
treec9e6ad54afe77742dc84ea972fcc31c8cd7430ff
parentee9007aeee8deda8d649848f5c8c076c05c7ce02 (diff)
downloadBedrockConnect-f2af461e570002fad70081b28f35051e70739b23.tar.gz
BedrockConnect-f2af461e570002fad70081b28f35051e70739b23.tar.bz2
BedrockConnect-f2af461e570002fad70081b28f35051e70739b23.zip
add Dockerfile
-rw-r--r--docker/Dockerfile6
-rw-r--r--docker/README.md7
2 files changed, 13 insertions, 0 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
new file mode 100644
index 0000000..f01c64b
--- /dev/null
+++ b/docker/Dockerfile
@@ -0,0 +1,6 @@
+FROM hypriot/rpi-java
+RUN mkdir /brc
+COPY BedrockConnect-1.0-SNAPSHOT.jar /brc
+WORKDIR /brc
+EXPOSE 19132/udp
+CMD ["java", "-Xms1G", "-Xmx1G", "-jar", "BedrockConnect-1.0-SNAPSHOT.jar", "nodb=true"]
diff --git a/docker/README.md b/docker/README.md
new file mode 100644
index 0000000..7ff3bec
--- /dev/null
+++ b/docker/README.md
@@ -0,0 +1,7 @@
+# BedrockConnect on Docker on Raspberry Pi
+
+- Put the `Dockerfile` and the `BedrockConnect-1.0-SNAPSHOT.jar` in one directory
+- Configure the `CMD` line in the `Dockerfile` to fit your needs
+ - `generatedns` will not work, as it wants user input
+- run `docker build -t bedrock-connect .`
+- run `docker run --name "bedrock-c" -d --restart always -p 19132:19132/udp bedrock-connect`