initial commit

This commit is contained in:
Niklas 2021-05-08 23:40:32 +02:00
commit cf594f84cc
5 changed files with 96 additions and 0 deletions

8
.drone.yml Normal file
View File

@ -0,0 +1,8 @@
kind: pipeline
name: default
steps:
- name: docker
image: plugins/docker
settings:
repo: docker.kapelle.org/red
registry: docker.kapelle.org

28
Dockerfile Normal file
View File

@ -0,0 +1,28 @@
FROM java
EXPOSE 25565
VOLUME /data
# Prepare
RUN mkdir /minecraft && \
mkdir -p /data
# useradd -ms /bin/bash minecraft && \
# chown minecraft /minecraft && \
# chown minecraft /data
# USER minecraft
WORKDIR /minecraft
# Download files
RUN wget https://media.forgecdn.net/files/3255/643/RAD-Serverpack-1.45.zip
# Unpack
RUN unzip RAD-Serverpack-1.45.zip -d . && \
cp -r RAD-Serverpack-1.45/* . && \
rm -r RAD-Serverpack-1.45.zip RAD-Serverpack-1.45
COPY start.sh /minecraft/start.sh
ENTRYPOINT /minecraft/start.sh

10
README.md Normal file
View File

@ -0,0 +1,10 @@
# Roguelike Adventures and Dungeons for Docker
Docker image for [Roguelike Adventures and Dungeons](https://www.curseforge.com/minecraft/modpacks/roguelike-adventures-and-dungeons/files/3255643)
Curent version: 1.45
An example [docker-compose.yml](docker-compose.yml) is given.
# Update image
Checkout [curseforge](https://www.curseforge.com/minecraft/modpacks/roguelike-adventures-and-dungeons/files/3255643) for new versions. Update the download URL and the filename in the `Dockerfile`.

8
docker-compose.yml Normal file
View File

@ -0,0 +1,8 @@
version: "3.8"
services:
rad-server:
build: .
ports:
- 25565:25565
volumes:
- ./data:/data

42
start.sh Executable file
View File

@ -0,0 +1,42 @@
#!/usr/bin/env bash
set -e
ls -la
ls -la /data
toLinkedFiles=(
LaunchServer.sh
README-howto.txt
forge-1.12.2-14.23.5.2854.jar
libraries
llibrary
minecraft_server.1.12.2.jar
mods
scripts
structures
)
toCoptFiles=(
config
options.txt
server.properties
)
chmod +x LaunchServer.sh
for linkedFile in "${toLinkedFiles[@]}"
do
[ -f /data/$linkedFile ] || ln -s /minecraft/$linkedFile /data/$linkedFile
done
for copyedFile in "${toCoptFiles[@]}"
do
[ -f /data/$copyedFile ] || cp -r /minecraft/$copyedFile /data/$copyedFile
done
echo "eula=true" > /data/eula.txt
cd /data
./LaunchServer.sh