Open MWeesenaar opened 3 years ago
Hey :wave:
So I've taken a stab at this and managed to get this running on my raspberry pi 4 (8gb)
These were the steps I followed:
ssh into raspberry, and git clone the nimmis/docker-spigot repo
Updated the java binaries download link in the Dockerfile to use aarch64 instead of x64 (this is working for rasp4 but other rasp might required another java, you can choose from here)
# download jdk and unpack in /usr/lib/jvm
curl -L https://github.com/adoptium/temurin${JAVA_VERSION_MAJOR}-binaries/releases/download/jdk-${JAVA_VERSION_MAJOR}.${JAVA_VERSION_MINOR}%2B${JAVA_VERSION_UPDATE}/OpenJDK${JAVA_VERSION_MAJOR}U-jdk_aarch64_linux_${JAVA_OPT}_${JAVA_VERSION_MAJOR}.${JAVA_VERSION_MINOR}_${JAVA_VERSION_UPDATE}.tar.gz | tar xz -C /usr/lib/jvm/ && \
And last, build the image using dockers buildx tool (I didn't need to install anything as buildx came with docker installation)
docker buildx build --load --platform linux/arm64/v8 --tag spigot-arm:latest .
and then you should have a spigot-arm:latest image you can docker run like the nimmis/spigot
docker run -d -p 25565:25565 -e EULA=true spigot-arm:latest
Hello developers,
First of all, thanks for putting the effort in making this available for the public! :-) I do have a question, however. Would it be possible to publish images for multiple architectures?
It would be beneficial for me, because then I can containerize Minecraft quite easily on my Raspberry Pi 4 8GB. I tried to clone this git, and just do
docker build .
, but that didn't work, see log [1]. I also attempted to use another base image (e.g. ubuntu:20.04 or debian:stretch); that resulted in the following error, where I got a bit stuck too:/bin/sh: 1: cannot create /etc/BUILDS/spigot: Directory nonexistent
I tink this link could help in getting a multi-arch build: https://www.docker.com/blog/multi-arch-build-and-images-the-simple-way/I would love to hear from you! And if there is something I can do, to make things easier - please let me know.
Output of
docker version
:[1]