release-1.0.0 #39
@ -1 +0,0 @@
|
|||||||
1747133741280:stop
|
|
17
.dockerignore
Normal file
17
.dockerignore
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
*/cache
|
||||||
|
*/libraries
|
||||||
|
*/logs
|
||||||
|
*/versions
|
||||||
|
*/plugins/.paper-remapped
|
||||||
|
|
||||||
|
*/world
|
||||||
|
*/world_nether
|
||||||
|
*/world_the_end
|
||||||
|
|
||||||
|
*/.console_history
|
||||||
|
|
||||||
|
*/banned-ips.json
|
||||||
|
*/banned-players.json
|
||||||
|
*/ops.json
|
||||||
|
*/whitelist.json
|
||||||
|
*/usercache.json
|
46
.github/workflows/build-docker.yml
vendored
Normal file
46
.github/workflows/build-docker.yml
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
- develop
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-docker:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
registry: gitea.cuqmbr.xyz
|
||||||
|
steps:
|
||||||
|
- name: Login to Docker Container Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ${{env.registry}}
|
||||||
|
username: ${{vars.DOCKER_USER}}
|
||||||
|
password: ${{secrets.DOCKER_TOKEN}}
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
# https://github.com/actions/checkout/issues/1830
|
||||||
|
# https://gitea.com/gitea/act_runner/issues/164
|
||||||
|
- name: Checkout lfs
|
||||||
|
run: |
|
||||||
|
git lfs install --local
|
||||||
|
AUTH=$(git config --local http.${{ github.server_url }}/.extraheader)
|
||||||
|
git config --local --unset http.${{ github.server_url }}/.extraheader
|
||||||
|
git config --local http.${{ github.server_url }}/${{ github.repository }}.git/info/lfs/objects/batch.extraheader "$AUTH"
|
||||||
|
git lfs pull
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Dockerfile
|
||||||
|
platforms: linux/arm64,linux/amd64
|
||||||
|
push: true
|
||||||
|
# TODO: split tag names into multiple lines
|
||||||
|
tags: |
|
||||||
|
${{env.registry}}/${{github.repository_owner}}/${{github.event.repository.name}}/${{github.ref_name}}:${{github.sha}}
|
||||||
|
${{env.registry}}/${{github.repository_owner}}/${{github.event.repository.name}}/${{github.ref_name}}:latest
|
27
.gitignore
vendored
27
.gitignore
vendored
@ -1,16 +1,17 @@
|
|||||||
cache
|
*/cache
|
||||||
libraries
|
*/libraries
|
||||||
logs
|
*/logs
|
||||||
versions
|
*/versions
|
||||||
|
*/plugins/.paper-remapped
|
||||||
|
|
||||||
world
|
*/world
|
||||||
world_nether
|
*/world_nether
|
||||||
world_the_end
|
*/world_the_end
|
||||||
|
|
||||||
./.console_history
|
*/.console_history
|
||||||
|
|
||||||
banned-ips.json
|
*/banned-ips.json
|
||||||
banned-players.json
|
*/banned-players.json
|
||||||
ops.json
|
*/ops.json
|
||||||
whitelist.json
|
*/whitelist.json
|
||||||
usercache.json
|
*/usercache.json
|
||||||
|
43
Dockerfile
Normal file
43
Dockerfile
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
FROM sapmachine:21-jre-headless-ubuntu
|
||||||
|
|
||||||
|
|
||||||
|
ENV WORKDIR_PATH=/workspace
|
||||||
|
ENV CONFIG_PATH=${WORKDIR_PATH}/config
|
||||||
|
ENV DATA_PATH=${WORKDIR_PATH}/data
|
||||||
|
|
||||||
|
ADD ./src ${CONFIG_PATH}
|
||||||
|
RUN mkdir ${DATA_PATH}
|
||||||
|
|
||||||
|
|
||||||
|
RUN touch ${DATA_PATH}/banned-ips.json && \
|
||||||
|
ln -sf ${DATA_PATH}/banned-ips.json ${CONFIG_PATH}
|
||||||
|
RUN touch ${DATA_PATH}/banned-players.json && \
|
||||||
|
ln -sf ${DATA_PATH}/banned-players.json ${CONFIG_PATH}
|
||||||
|
RUN mkdir ${DATA_PATH}/logs && \
|
||||||
|
ln -sf ${DATA_PATH}/logs ${CONFIG_PATH}
|
||||||
|
RUN touch ${DATA_PATH}/ops.json && \
|
||||||
|
ln -sf ${DATA_PATH}/ops.json ${CONFIG_PATH}
|
||||||
|
RUN touch ${DATA_PATH}/usercache.json && \
|
||||||
|
ln -sf ${DATA_PATH}/usercache.json ${CONFIG_PATH}
|
||||||
|
RUN touch ${DATA_PATH}/whitelist.json && \
|
||||||
|
ln -sf ${DATA_PATH}/whitelist.json ${CONFIG_PATH}
|
||||||
|
RUN mkdir ${DATA_PATH}/world && \
|
||||||
|
ln -sf ${DATA_PATH}/world ${CONFIG_PATH}
|
||||||
|
RUN mkdir ${DATA_PATH}/world_nether && \
|
||||||
|
ln -sf ${DATA_PATH}/world_nether ${CONFIG_PATH}
|
||||||
|
RUN mkdir ${DATA_PATH}/world_the_end && \
|
||||||
|
ln -sf ${DATA_PATH}/world_the_end ${CONFIG_PATH}
|
||||||
|
|
||||||
|
VOLUME ${DATA_PATH}
|
||||||
|
|
||||||
|
|
||||||
|
ENV MEMORY=4G
|
||||||
|
ENV PROXY_SECRET=change_me
|
||||||
|
|
||||||
|
WORKDIR ${WORKDIR_PATH}/config
|
||||||
|
|
||||||
|
EXPOSE 25565/tcp
|
||||||
|
|
||||||
|
CMD \
|
||||||
|
sed -i "s/_PROXY_SECRET_/${PROXY_SECRET}/g" config/paper-global.yml && \
|
||||||
|
java -Xms${MEMORY} -Xmx${MEMORY} -jar *.jar -nogui
|
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"hashes": {},
|
|
||||||
"skippedHashes": [],
|
|
||||||
"mappingsHash": "AE6205D8CCC4573215AB10065342F9C15433E2CFEFB33BEAB6CA4A7E12AEF02D"
|
|
||||||
}
|
|
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"hashes": {},
|
|
||||||
"skippedHashes": [],
|
|
||||||
"mappingsHash": "AE6205D8CCC4573215AB10065342F9C15433E2CFEFB33BEAB6CA4A7E12AEF02D"
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"hashes": {},
|
|
||||||
"skippedHashes": [],
|
|
||||||
"mappingsHash": "AE6205D8CCC4573215AB10065342F9C15433E2CFEFB33BEAB6CA4A7E12AEF02D"
|
|
||||||
}
|
|
@ -95,9 +95,9 @@ proxies:
|
|||||||
online-mode: true
|
online-mode: true
|
||||||
proxy-protocol: false
|
proxy-protocol: false
|
||||||
velocity:
|
velocity:
|
||||||
enabled: false
|
enabled: true
|
||||||
online-mode: true
|
online-mode: false
|
||||||
secret: ''
|
secret: '_PROXY_SECRET_'
|
||||||
scoreboards:
|
scoreboards:
|
||||||
save-empty-scoreboard-teams: true
|
save-empty-scoreboard-teams: true
|
||||||
track-plugin-scoreboards: false
|
track-plugin-scoreboards: false
|
@ -1,5 +1,5 @@
|
|||||||
#Minecraft server properties
|
#Minecraft server properties
|
||||||
#Tue May 13 13:55:18 EEST 2025
|
#Sun Jun 01 21:52:42 EEST 2025
|
||||||
accepts-transfers=false
|
accepts-transfers=false
|
||||||
allow-flight=false
|
allow-flight=false
|
||||||
allow-nether=true
|
allow-nether=true
|
||||||
@ -35,7 +35,7 @@ max-tick-time=60000
|
|||||||
max-world-size=29999984
|
max-world-size=29999984
|
||||||
motd=A Minecraft Server
|
motd=A Minecraft Server
|
||||||
network-compression-threshold=256
|
network-compression-threshold=256
|
||||||
online-mode=true
|
online-mode=false
|
||||||
op-permission-level=4
|
op-permission-level=4
|
||||||
player-idle-timeout=0
|
player-idle-timeout=0
|
||||||
prevent-proxy-connections=false
|
prevent-proxy-connections=false
|
Loading…
Reference in New Issue
Block a user