.
This commit is contained in:
commit
dede9ce18d
21 changed files with 485 additions and 0 deletions
1
images/.gitignore
vendored
Normal file
1
images/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/data
|
||||
BIN
images/bazel-java/.mk.sh.swp
Normal file
BIN
images/bazel-java/.mk.sh.swp
Normal file
Binary file not shown.
5
images/bazel-java/Containerfile
Normal file
5
images/bazel-java/Containerfile
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
FROM docker.io/fedora:45
|
||||
RUN dnf install -y java-25-openjdk-devel git gcc nodejs bazelisk
|
||||
RUN bazelisk
|
||||
RUN ln -s /usr/bin/bazelisk /usr/local/bin/bazel
|
||||
ENV JAVA_HOME=/usr/lib/jvm/java-25-openjdk
|
||||
3
images/bazel-java/Makefile
Normal file
3
images/bazel-java/Makefile
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
include ../container.mk
|
||||
TAG := bazel-java
|
||||
VERSION := 0.12
|
||||
7
images/container.mk
Normal file
7
images/container.mk
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
build:
|
||||
podman build -f Containerfile -t $(TAG):$(VERSION) .
|
||||
|
||||
publish: build
|
||||
podman push localhost/$(TAG):$(VERSION) git.lab0x13.site/scrow/$(TAG):$(VERSION)
|
||||
|
||||
.PHONY: build publish
|
||||
19
images/papermc/Containerfile
Normal file
19
images/papermc/Containerfile
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
FROM docker.io/eclipse-temurin:25-jre-alpine
|
||||
EXPOSE 25565
|
||||
|
||||
ENV MINECRAFT_VERSION=26.2
|
||||
|
||||
VOLUME /mnt
|
||||
COPY --chmod=755 entrypoint.sh /entrypoint.sh
|
||||
|
||||
WORKDIR /data
|
||||
RUN apk add --no-cache curl jq
|
||||
RUN curl -s "https://fill.papermc.io/v3/projects/paper/versions/$MINECRAFT_VERSION/builds/latest" \
|
||||
| jq -r '.downloads."server:default".url' \
|
||||
| xargs curl -o server.jar
|
||||
|
||||
RUN printf eula=true > eula.txt
|
||||
RUN java -jar server.jar --initSettings
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["java", "-jar", "server.jar", "--nogui"]
|
||||
3
images/papermc/Makefile
Normal file
3
images/papermc/Makefile
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
include ../container.mk
|
||||
TAG := papermc
|
||||
VERSION := 0.1
|
||||
3
images/papermc/README
Normal file
3
images/papermc/README
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
This is the papermc image, base of all other minecraft instances.
|
||||
|
||||
The server is initialized at build time to reduce startup time.
|
||||
6
images/papermc/entrypoint.sh
Executable file
6
images/papermc/entrypoint.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
set -ex
|
||||
|
||||
cd /data
|
||||
cp -rf /mnt/* . || true
|
||||
exec "$@"
|
||||
16
images/velocity/Containerfile
Normal file
16
images/velocity/Containerfile
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
FROM docker.io/eclipse-temurin:25-jre-alpine
|
||||
EXPOSE 25565
|
||||
|
||||
ENV VELOCITY_VERSION="4.1.0-SNAPSHOT"
|
||||
|
||||
VOLUME /mnt
|
||||
COPY --chmod=755 entrypoint.sh /entrypoint.sh
|
||||
WORKDIR /data
|
||||
|
||||
RUN apk add --no-cache curl jq
|
||||
RUN curl -s "https://fill.papermc.io/v3/projects/velocity/versions/$VELOCITY_VERSION/builds/latest" \
|
||||
| jq -r '.downloads."server:default".url' \
|
||||
| xargs curl -o server.jar
|
||||
|
||||
ENTRYPOINT ["/entrypoint.sh"]
|
||||
CMD ["java", "-jar", "server.jar"]
|
||||
3
images/velocity/Makefile
Normal file
3
images/velocity/Makefile
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
include ../container.mk
|
||||
TAG := velocity
|
||||
VERSION := 0.1
|
||||
3
images/velocity/README
Normal file
3
images/velocity/README
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
This is the papermc image, base of all other minecraft instances.
|
||||
|
||||
The server is initialized at build time to reduce startup time.
|
||||
6
images/velocity/entrypoint.sh
Executable file
6
images/velocity/entrypoint.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
set -ex
|
||||
|
||||
cd /data
|
||||
cp -rf /mnt/* . || true
|
||||
exec "$@"
|
||||
Loading…
Add table
Add a link
Reference in a new issue