From ef0bd3757b5b4b3f2e600719531d711aa84551ea Mon Sep 17 00:00:00 2001 From: magmaus3 Date: Sat, 7 Sep 2024 19:19:20 +0200 Subject: [PATCH] init --- .dockerignore | 5 +++++ .gitattributes | 3 +++ .gitignore | 7 +++++++ Dockerfile | 10 ++++++++++ README.md | 13 +++++++++++++ config/server.properties | 6 ++++++ server.toml | 26 ++++++++++++++++++++++++++ 7 files changed, 70 insertions(+) create mode 100644 .dockerignore create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 config/server.properties create mode 100644 server.toml diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..1090558 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +.dockerignore +.git +.gitignore +Dockerfile +server/ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..b25dbd2 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ + +# mcman: use lfs for worlds +**/worlds/*.zip filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..31cfc80 --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ + +# mcman: Exclude mcman build outputs +**/server +# mcman: Exclude exported mrpacks +*.mrpack +# mcman: Exclude local dotenv files +**/.env diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2aed243 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM ghcr.io/paradigmmc/mcman:latest as builder +WORKDIR /server +COPY . . +RUN mcman build + +FROM eclipse-temurin:17-alpine +USER 1000:1000 +WORKDIR /server +COPY --from=builder --chown=1000:1000 /server/server/ /server +ENTRYPOINT [ "/server/start.sh" ] diff --git a/README.md b/README.md new file mode 100644 index 0000000..80dee7a --- /dev/null +++ b/README.md @@ -0,0 +1,13 @@ +# dynmap-honeypot + +[![mcman badge](https://img.shields.io/badge/uses-mcman-purple?logo=github)](https://github.com/ParadigmMC/mcman) + + + + + + +## Plugins + + + diff --git a/config/server.properties b/config/server.properties new file mode 100644 index 0000000..f75167e --- /dev/null +++ b/config/server.properties @@ -0,0 +1,6 @@ +server-port=${PORT:25567} +motd=${SERVER_NAME:A Minecraft Server} +level-type=flat +generator-settings={"layers": [], "biome": "minecraft:the_void"} +simulation-distance=0 +view-distance=0 diff --git a/server.toml b/server.toml new file mode 100644 index 0000000..068c1e0 --- /dev/null +++ b/server.toml @@ -0,0 +1,26 @@ +name = "dynmap-honeypot" +mc_version = "1.21.1" + +[jar] +type = "paper" + +[variables] +PORT = "25567" + +[launcher] +eula_args = true +nogui = true +memory = '2G' + +[markdown] +files = ["README.md"] +auto_update = false + +[options] +success_line = "" +stop_command = "" + +[[plugins]] +type = "mr" +id = "dynmap" +version = "AdtrWcU2"