Compare commits
4 Commits
35ea2d8879
...
70eebc1cf5
Author | SHA1 | Date |
---|---|---|
Daniel Wolf | 70eebc1cf5 | |
Daniel Wolf | ce78230445 | |
Daniel Wolf | 0ce1570fb3 | |
Daniel Wolf | 3b03758cbc |
|
@ -1,6 +1,11 @@
|
|||
# SPDX-FileCopyrightText: 2020 - 2023 Daniel Wolf <nephatrine@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: ISC
|
||||
|
||||
.git
|
||||
.gitea
|
||||
.gitignore
|
||||
.reuse
|
||||
LICENSES
|
||||
LICENSE.md
|
||||
README.md
|
||||
docker-compose.yml
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
# SPDX-FileCopyrightText: 2023 Daniel Wolf <nephatrine@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: ISC
|
||||
|
||||
name: Build Container Image
|
||||
run-name: ${{ gitea.actor }} pushed to ${{ gitea.repository }}:${{ gitea.ref_name }}
|
||||
on:
|
||||
|
@ -15,25 +19,52 @@ jobs:
|
|||
run: |
|
||||
export BRANCH=${GITHUB_REF##*/}
|
||||
export BRANCH=${BRANCH:-master}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-cached --target builder ${{ gitea.workspace }}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-amd64-cached --target builder ${{ gitea.workspace }}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-amd64 ${{ gitea.workspace }}
|
||||
- name: Docker Login
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
with:
|
||||
registry: code.nephatrine.net
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.PACKAGER_TOKEN }}
|
||||
- name: Docker Push
|
||||
run: |
|
||||
export BRANCH=${GITHUB_REF##*/}
|
||||
export BRANCH=${BRANCH:-master}
|
||||
docker push code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-amd64
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
run: docker push code.nephatrine.net/nephnet/quake2-yamagi:master-amd64
|
||||
- name: Notify Discord
|
||||
uses: https://github.com/sarisia/actions-status-discord@v1
|
||||
if: always()
|
||||
with:
|
||||
title: "Container Build (X86_64)"
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK_BUILD }}
|
||||
build_i386:
|
||||
if: gitea.repository_owner == 'NephNET' && (!contains(gitea.event.head_commit.message, '#noci') || gitea.event_name == 'schedule')
|
||||
runs-on: nephnet-i386
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: https://gitea.com/actions/checkout@v3
|
||||
- name: Docker Build
|
||||
run: |
|
||||
export BRANCH=${GITHUB_REF##*/}
|
||||
export BRANCH=${BRANCH:-master}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-i386-cached --target builder --platform linux/386 ${{ gitea.workspace }}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-i386 --platform linux/386 ${{ gitea.workspace }}
|
||||
- name: Docker Login
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
with:
|
||||
registry: code.nephatrine.net
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.PACKAGER_TOKEN }}
|
||||
- name: Docker Push
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
run: docker push code.nephatrine.net/nephnet/quake2-yamagi:master-i386
|
||||
- name: Notify Discord
|
||||
uses: https://github.com/sarisia/actions-status-discord@v1
|
||||
if: always()
|
||||
with:
|
||||
title: "Container Build (I686)"
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK_BUILD }}
|
||||
build_arm64:
|
||||
if: gitea.repository_owner == 'NephNET' && (!contains(gitea.event.head_commit.message, '#noci') || gitea.event_name == 'schedule')
|
||||
runs-on: nephnet-arm64
|
||||
|
@ -44,19 +75,18 @@ jobs:
|
|||
run: |
|
||||
export BRANCH=${GITHUB_REF##*/}
|
||||
export BRANCH=${BRANCH:-master}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-cached --target builder ${{ gitea.workspace }}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-arm64v8-cached --target builder ${{ gitea.workspace }}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-arm64v8 ${{ gitea.workspace }}
|
||||
- name: Docker Login
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
with:
|
||||
registry: code.nephatrine.net
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.PACKAGER_TOKEN }}
|
||||
- name: Docker Push
|
||||
run: |
|
||||
export BRANCH=${GITHUB_REF##*/}
|
||||
export BRANCH=${BRANCH:-master}
|
||||
docker push code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-arm64v8
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
run: docker push code.nephatrine.net/nephnet/quake2-yamagi:master-arm64v8
|
||||
- name: Notify Discord
|
||||
uses: https://github.com/sarisia/actions-status-discord@v1
|
||||
if: always()
|
||||
|
@ -73,19 +103,18 @@ jobs:
|
|||
run: |
|
||||
export BRANCH=${GITHUB_REF##*/}
|
||||
export BRANCH=${BRANCH:-master}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-cached --target builder ${{ gitea.workspace }}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-armv7 ${{ gitea.workspace }}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-armv7-cached --target builder --platform linux/arm/v7 ${{ gitea.workspace }}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-armv7 --platform linux/arm/v7 ${{ gitea.workspace }}
|
||||
- name: Docker Login
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
with:
|
||||
registry: code.nephatrine.net
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.PACKAGER_TOKEN }}
|
||||
- name: Docker Push
|
||||
run: |
|
||||
export BRANCH=${GITHUB_REF##*/}
|
||||
export BRANCH=${BRANCH:-master}
|
||||
docker push code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-armv7
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
run: docker push code.nephatrine.net/nephnet/quake2-yamagi:master-armv7
|
||||
- name: Notify Discord
|
||||
uses: https://github.com/sarisia/actions-status-discord@v1
|
||||
if: always()
|
||||
|
@ -102,19 +131,18 @@ jobs:
|
|||
run: |
|
||||
export BRANCH=${GITHUB_REF##*/}
|
||||
export BRANCH=${BRANCH:-master}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-cached --target builder ${{ gitea.workspace }}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-riscv64-cached --target builder ${{ gitea.workspace }}
|
||||
docker build --pull -t code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-riscv64 ${{ gitea.workspace }}
|
||||
- name: Docker Login
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
with:
|
||||
registry: code.nephatrine.net
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.PACKAGER_TOKEN }}
|
||||
- name: Docker Push
|
||||
run: |
|
||||
export BRANCH=${GITHUB_REF##*/}
|
||||
export BRANCH=${BRANCH:-master}
|
||||
docker push code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-riscv64
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
run: docker push code.nephatrine.net/nephnet/quake2-yamagi:master-riscv64
|
||||
- name: Notify Discord
|
||||
uses: https://github.com/sarisia/actions-status-discord@v1
|
||||
if: always()
|
||||
|
@ -122,7 +150,8 @@ jobs:
|
|||
title: "Container Build (RISCV64)"
|
||||
webhook: ${{ secrets.DISCORD_WEBHOOK_BUILD }}
|
||||
build_manifest:
|
||||
needs: [build_amd64, build_arm64, build_armhf, build_riscv64]
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
needs: [build_amd64, build_i386, build_arm64, build_armhf, build_riscv64]
|
||||
runs-on: nephnet
|
||||
steps:
|
||||
- name: Docker Login
|
||||
|
@ -133,10 +162,8 @@ jobs:
|
|||
password: ${{ secrets.PACKAGER_TOKEN }}
|
||||
- name: Docker Manifest
|
||||
run: |
|
||||
export BRANCH=${GITHUB_REF##*/}
|
||||
export BRANCH=${BRANCH:-master}
|
||||
docker manifest create code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH} --amend code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-amd64 --amend code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-arm64v8 --amend code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-armv7 --amend code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}-riscv64
|
||||
docker manifest push --purge code.nephatrine.net/nephnet/quake2-yamagi:${BRANCH}
|
||||
docker manifest create code.nephatrine.net/nephnet/quake2-yamagi:latest --amend code.nephatrine.net/nephnet/quake2-yamagi:master-amd64 --amend code.nephatrine.net/nephnet/quake2-yamagi:master-i386 --amend code.nephatrine.net/nephnet/quake2-yamagi:master-arm64v8 --amend code.nephatrine.net/nephnet/quake2-yamagi:master-armv7 --amend code.nephatrine.net/nephnet/quake2-yamagi:master-riscv64
|
||||
docker manifest push --purge code.nephatrine.net/nephnet/quake2-yamagi:latest
|
||||
publish_amd64:
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
needs: [build_amd64]
|
||||
|
@ -149,8 +176,26 @@ jobs:
|
|||
password: ${{ secrets.DOCKER_PASS }}
|
||||
- name: Docker Push
|
||||
run: |
|
||||
docker pull code.nephatrine.net/nephnet/quake2-yamagi:master-amd64
|
||||
docker tag code.nephatrine.net/nephnet/quake2-yamagi:master-amd64 nephatrine/quake2-server:yamagi-amd64
|
||||
docker push nephatrine/quake2-server:yamagi-amd64
|
||||
docker rmi nephatrine/quake2-server:yamagi-amd64
|
||||
publish_i386:
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
needs: [build_i386]
|
||||
runs-on: nephnet-i386
|
||||
steps:
|
||||
- name: Docker Login
|
||||
uses: https://github.com/docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USER }}
|
||||
password: ${{ secrets.DOCKER_PASS }}
|
||||
- name: Docker Push
|
||||
run: |
|
||||
docker pull code.nephatrine.net/nephnet/quake2-yamagi:master-i386
|
||||
docker tag code.nephatrine.net/nephnet/quake2-yamagi:master-i386 nephatrine/quake2-server:yamagi-i386
|
||||
docker push nephatrine/quake2-server:yamagi-i386
|
||||
docker rmi nephatrine/quake2-server:yamagi-i386
|
||||
publish_arm64:
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
needs: [build_arm64]
|
||||
|
@ -163,8 +208,10 @@ jobs:
|
|||
password: ${{ secrets.DOCKER_PASS }}
|
||||
- name: Docker Push
|
||||
run: |
|
||||
docker pull code.nephatrine.net/nephnet/quake2-yamagi:master-arm64v8
|
||||
docker tag code.nephatrine.net/nephnet/quake2-yamagi:master-arm64v8 nephatrine/quake2-server:yamagi-arm64v8
|
||||
docker push nephatrine/quake2-server:yamagi-arm64v8
|
||||
docker rmi nephatrine/quake2-server:yamagi-arm64v8
|
||||
publish_armhf:
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
needs: [build_armhf]
|
||||
|
@ -177,8 +224,10 @@ jobs:
|
|||
password: ${{ secrets.DOCKER_PASS }}
|
||||
- name: Docker Push
|
||||
run: |
|
||||
docker pull code.nephatrine.net/nephnet/quake2-yamagi:master-armv7
|
||||
docker tag code.nephatrine.net/nephnet/quake2-yamagi:master-armv7 nephatrine/quake2-server:yamagi-armv7
|
||||
docker push nephatrine/quake2-server:yamagi-armv7
|
||||
docker rmi nephatrine/quake2-server:yamagi-armv7
|
||||
publish_riscv64:
|
||||
if: gitea.ref_name == 'master' || gitea.ref_name == ''
|
||||
needs: [build_riscv64]
|
||||
|
@ -191,10 +240,12 @@ jobs:
|
|||
password: ${{ secrets.DOCKER_PASS }}
|
||||
- name: Docker Push
|
||||
run: |
|
||||
docker pull code.nephatrine.net/nephnet/quake2-yamagi:master-riscv64
|
||||
docker tag code.nephatrine.net/nephnet/quake2-yamagi:master-riscv64 nephatrine/quake2-server:yamagi-riscv64
|
||||
docker push nephatrine/quake2-server:yamagi-riscv64
|
||||
docker rmi nephatrine/quake2-server:yamagi-riscv64
|
||||
publish_manifest:
|
||||
needs: [publish_amd64, publish_arm64, publish_armhf, publish_riscv64]
|
||||
needs: [publish_amd64, publish_i386, publish_arm64, publish_armhf, publish_riscv64]
|
||||
runs-on: nephnet
|
||||
steps:
|
||||
- name: Check Base Image
|
||||
|
@ -212,13 +263,13 @@ jobs:
|
|||
password: ${{ secrets.DOCKER_PASS }}
|
||||
- name: Docker Manifest
|
||||
run: |
|
||||
docker manifest create nephatrine/quake2-server:yamagi-8.20 --amend nephatrine/quake2-server:yamagi-amd64 --amend nephatrine/quake2-server:yamagi-arm64v8 --amend nephatrine/quake2-server:yamagi-armv7 --amend nephatrine/quake2-server:yamagi-riscv64
|
||||
docker manifest create nephatrine/quake2-server:yamagi-8 --amend nephatrine/quake2-server:yamagi-amd64 --amend nephatrine/quake2-server:yamagi-arm64v8 --amend nephatrine/quake2-server:yamagi-armv7 --amend nephatrine/quake2-server:yamagi-riscv64
|
||||
docker manifest create nephatrine/quake2-server:yamagi-latest --amend nephatrine/quake2-server:yamagi-amd64 --amend nephatrine/quake2-server:yamagi-arm64v8 --amend nephatrine/quake2-server:yamagi-armv7 --amend nephatrine/quake2-server:yamagi-riscv64
|
||||
docker manifest create nephatrine/quake2-server:latest --amend nephatrine/quake2-server:yamagi-amd64 --amend nephatrine/quake2-server:yamagi-arm64v8 --amend nephatrine/quake2-server:yamagi-armv7 --amend nephatrine/quake2-server:yamagi-riscv64
|
||||
docker manifest create nephatrine/quake2-server:yamagi-8.20 --amend nephatrine/quake2-server:yamagi-amd64 --amend nephatrine/quake2-server:yamagi-i386 --amend nephatrine/quake2-server:yamagi-arm64v8 --amend nephatrine/quake2-server:yamagi-armv7 --amend nephatrine/quake2-server:yamagi-riscv64
|
||||
docker manifest create nephatrine/quake2-server:yamagi-8 --amend nephatrine/quake2-server:yamagi-amd64 --amend nephatrine/quake2-server:yamagi-i386 --amend nephatrine/quake2-server:yamagi-arm64v8 --amend nephatrine/quake2-server:yamagi-armv7 --amend nephatrine/quake2-server:yamagi-riscv64
|
||||
docker manifest create nephatrine/quake2-server:yamagi --amend nephatrine/quake2-server:yamagi-amd64 --amend nephatrine/quake2-server:yamagi-i386 --amend nephatrine/quake2-server:yamagi-arm64v8 --amend nephatrine/quake2-server:yamagi-armv7 --amend nephatrine/quake2-server:yamagi-riscv64
|
||||
docker manifest create nephatrine/quake2-server:latest --amend nephatrine/quake2-server:yamagi-amd64 --amend nephatrine/quake2-server:yamagi-i386 --amend nephatrine/quake2-server:yamagi-arm64v8 --amend nephatrine/quake2-server:yamagi-armv7 --amend nephatrine/quake2-server:yamagi-riscv64
|
||||
docker manifest push --purge nephatrine/quake2-server:yamagi-8.20
|
||||
docker manifest push --purge nephatrine/quake2-server:yamagi-8
|
||||
docker manifest push --purge nephatrine/quake2-server:yamagi-latest
|
||||
docker manifest push --purge nephatrine/quake2-server:yamagi
|
||||
docker manifest push --purge nephatrine/quake2-server:latest
|
||||
- name: Notify Discord
|
||||
if: gitea.event_name != 'schedule' || steps.checkbase.outputs.needs-updating == 'true'
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
sign-build.sh
|
||||
test-build.sh
|
||||
fix-perms.sh
|
|
@ -0,0 +1,12 @@
|
|||
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||
Upstream-Name: docker-quake2-yamagi
|
||||
Upstream-Contact: Daniel Wolf <nephatrine@gmail.com>
|
||||
Source: https://code.nephatrine.net/NephNET/docker-quake2-yamagi
|
||||
|
||||
Files: override/etc/s6-overlay/*
|
||||
Copyright: 2022 - 2023 Daniel Wolf <nephatrine@gmail.com>
|
||||
License: ISC
|
||||
|
||||
Files: override/opt/quake2-data/*
|
||||
Copyright: 2021 - 2023 Daniel Wolf <nephatrine@gmail.com>
|
||||
License: ISC
|
52
Dockerfile
52
Dockerfile
|
@ -1,53 +1,67 @@
|
|||
# SPDX-FileCopyrightText: 2020 - 2023 Daniel Wolf <nephatrine@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: ISC
|
||||
|
||||
FROM nephatrine/nxbuilder:alpine AS builder
|
||||
|
||||
RUN echo "====== INSTALL LIBRARIES ======" \
|
||||
&& apk add --no-cache mesa-dev sdl2-dev
|
||||
|
||||
ARG YQUAKE2_VERSION=QUAKE2_8_20
|
||||
ARG CTF_VERSION=CTF_1_09
|
||||
ARG ROGUE_VERSION=ROGUE_2_10
|
||||
ARG XATRIX_VERSION=XATRIX_2_11
|
||||
|
||||
RUN git -C /root clone -b "$YQUAKE2_VERSION" --single-branch --depth=1 https://github.com/yquake2/yquake2.git
|
||||
RUN git -C /root clone --single-branch --depth=1 https://github.com/DirtBagXon/3zb2-zigflag.git
|
||||
RUN git -C /root clone --single-branch --depth=1 https://github.com/QwazyWabbitWOS/lmctf60.git
|
||||
RUN git -C /root clone --single-branch --depth=1 https://github.com/skullernet/openffa.git
|
||||
RUN git -C /root clone --single-branch --depth=1 https://github.com/packetflinger/opentdm.git
|
||||
RUN git -C /root clone -b "$CTF_VERSION" --single-branch --depth=1 https://github.com/yquake2/ctf.git
|
||||
RUN git -C /root clone -b "$ROGUE_VERSION" --single-branch --depth=1 https://github.com/yquake2/rogue.git
|
||||
RUN git -C /root clone -b "$XATRIX_VERSION" --single-branch --depth=1 https://github.com/yquake2/xatrix.git
|
||||
RUN git -C /root clone --single-branch --depth=1 https://github.com/yquake2/zaero.git
|
||||
RUN git -C /root clone --single-branch --depth=1 https://github.com/yquake2/pakextract.git
|
||||
|
||||
RUN echo "====== COMPILE QUAKE II ======" \
|
||||
&& cd /root/yquake2 \
|
||||
&& make -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 )) server game \
|
||||
&& make -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 )) server game
|
||||
|
||||
ARG CTF_VERSION=CTF_1_09
|
||||
RUN git -C /root clone -b "$CTF_VERSION" --single-branch --depth=1 https://github.com/yquake2/ctf.git
|
||||
RUN echo "====== COMPILE CTF ======" \
|
||||
&& cd /root/ctf \
|
||||
&& make -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 ))
|
||||
RUN echo "====== COMPILE EXPANSIONS ======" \
|
||||
|
||||
ARG XATRIX_VERSION=XATRIX_2_11
|
||||
RUN git -C /root clone -b "$XATRIX_VERSION" --single-branch --depth=1 https://github.com/yquake2/xatrix.git
|
||||
RUN echo "====== COMPILE THE RECKONING ======" \
|
||||
&& cd /root/xatrix \
|
||||
&& make -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 )) \
|
||||
&& make -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 ))
|
||||
|
||||
ARG ROGUE_VERSION=ROGUE_2_10
|
||||
RUN git -C /root clone -b "$ROGUE_VERSION" --single-branch --depth=1 https://github.com/yquake2/rogue.git
|
||||
RUN echo "====== COMPILE GROUND ZERO ======" \
|
||||
&& cd /root/rogue \
|
||||
&& make -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 )) \
|
||||
&& make -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 ))
|
||||
|
||||
RUN git -C /root clone --single-branch --depth=1 https://github.com/yquake2/zaero.git
|
||||
RUN echo "====== COMPILE ZAERO ======" \
|
||||
&& cd /root/zaero \
|
||||
&& make -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 ))
|
||||
RUN echo "====== COMPILE TOOLS ======" \
|
||||
|
||||
RUN git -C /root clone --single-branch --depth=1 https://github.com/yquake2/pakextract.git
|
||||
RUN echo "====== COMPILE PAKEXTRACT ======" \
|
||||
&& cd /root/pakextract \
|
||||
&& make -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 ))
|
||||
|
||||
RUN git -C /root clone --single-branch --depth=1 https://github.com/DirtBagXon/3zb2-zigflag.git
|
||||
RUN echo "====== COMPILE 3ZB2 ======" \
|
||||
&& cd /root/3zb2-zigflag \
|
||||
&& if [ ! "$(uname -m)" = "x86_64" ]; then sed -i "s~-msse2 -mfpmath=sse~~g" Makefile; fi \
|
||||
&& make -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 )) \
|
||||
&& mv 3zb2/pak10.pak 3zb2/pak6.pak
|
||||
|
||||
RUN git -C /root clone --single-branch --depth=1 https://github.com/QwazyWabbitWOS/lmctf60.git
|
||||
RUN echo "====== COMPILE LMCTF ======" \
|
||||
&& cd /root/lmctf60 \
|
||||
&& sed -i 's~ldd -r~ldd~g' GNUmakefile \
|
||||
&& make -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 )) \
|
||||
&& mv game*.so game.so
|
||||
|
||||
RUN git -C /root clone --single-branch --depth=1 https://github.com/skullernet/openffa.git
|
||||
RUN echo "====== COMPILE OPENFFA ======" \
|
||||
&& cd /root/openffa \
|
||||
&& make -j$(( $(getconf _NPROCESSORS_ONLN) / 2 + 1 )) \
|
||||
&& mv game*.so game.so
|
||||
|
||||
RUN git -C /root clone --single-branch --depth=1 https://github.com/packetflinger/opentdm.git
|
||||
RUN echo "====== COMPILE OPENTDM ======" \
|
||||
&& cd /root/opentdm \
|
||||
&& sed -i "s~shell pkg-config libcurl --cflags~shell curl-config --cflags~g" Makefile \
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
ISC License:
|
||||
|
||||
Copyright (c) 2004-2010 by Internet Systems Consortium, Inc. ("ISC")
|
||||
Copyright (c) 1995-2003 by Internet Software Consortium
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@ -1,3 +1,9 @@
|
|||
<!--
|
||||
SPDX-FileCopyrightText: 2020 - 2023 Daniel Wolf <nephatrine@gmail.com>
|
||||
|
||||
SPDX-License-Identifier: ISC
|
||||
-->
|
||||
|
||||
[Git](https://code.nephatrine.net/NephNET/docker-quake2-yamagi/src/branch/master) |
|
||||
[Docker](https://hub.docker.com/r/nephatrine/quake2-server/) |
|
||||
[unRAID](https://code.nephatrine.net/NephNET/unraid-containers)
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
# SPDX-FileCopyrightText: 2023 Daniel Wolf <nephatrine@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: ISC
|
||||
|
||||
services:
|
||||
quake2-server:
|
||||
build: .
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
# SPDX-FileCopyrightText: 2022 - 2023 Daniel Wolf <nephatrine@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: ISC
|
||||
|
||||
/mnt/config/log/qconsole.log {
|
||||
missingok
|
||||
notifempty
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
#!/command/with-contenv /bin/sh
|
||||
# SPDX-FileCopyrightText: 2022 - 2023 Daniel Wolf <nephatrine@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: ISC
|
||||
|
||||
if /usr/bin/pgrep -f quakedock >/dev/null; then
|
||||
exit 1
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
#!/usr/bin/with-contenv /bin/sh
|
||||
# SPDX-FileCopyrightText: 2021 - 2023 Daniel Wolf <nephatrine@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: ISC
|
||||
|
||||
if [ -z "${QUAKE2_DATA}" ]; then
|
||||
if [ -n "${QUAKE2_INSTALL}" ] && [ ! "${QUAKE2_INSTALL}" = "true" ] && [ ! "${QUAKE2_INSTALL}" = "false" ]; then
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
#!/command/with-contenv /bin/sh
|
||||
# SPDX-FileCopyrightText: 2022 - 2023 Daniel Wolf <nephatrine@gmail.com>
|
||||
#
|
||||
# SPDX-License-Identifier: ISC
|
||||
|
||||
if [ -d /opt/quake2/openffa/highscores ]; then
|
||||
if [ -z "${QUAKE2_DATA}" ]; then
|
||||
|
|
Loading…
Reference in New Issue