diff --git a/.github/workflows/games.yml b/.github/workflows/games.yml index fe85f0f..a6e4a38 100644 --- a/.github/workflows/games.yml +++ b/.github/workflows/games.yml @@ -19,9 +19,10 @@ jobs: - altv - arma3 - dayz + - mohaa - samp - source - + steps: - uses: actions/checkout@v2 - uses: docker/setup-buildx-action@v1 @@ -40,4 +41,4 @@ jobs: platforms: linux/amd64 push: true tags: | - ghcr.io/parkervcp/games:${{ matrix.game }} + ghcr.io/parkervcp/games:${{ matrix.game }} diff --git a/README.md b/README.md index bb4f49d..3e76301 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,8 @@ is tagged correctly. * `ghcr.io/parkervcp/games:arma3` * [`dayz`](/games/dayz) * `ghcr.io/parkervcp/games:dayz` +* [`mohaa`](games/mohaa) + * `ghcr.io/pterodactyl/games:mohaa` * [`samp`](/games/samp) * `ghcr.io/parkervcp/games:samp` * [`source`](/games/source) diff --git a/games/mohaa/Dockerfile b/games/mohaa/Dockerfile new file mode 100644 index 0000000..353d28e --- /dev/null +++ b/games/mohaa/Dockerfile @@ -0,0 +1,12 @@ +FROM ghcr.io/parkervcp/yolks:debian + +LABEL author="Manuel Dielacher" maintainer="th3dilli@gmx.at" + +LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks" +LABEL org.opencontainers.image.licenses=MIT + +RUN dpkg --add-architecture i386 \ + && apt update && apt upgrade -y \ + && apt install -y lib32gcc-s1 lib32stdc++6 libstdc++5:i386 + + diff --git a/games/mohaa/entrypoint.sh b/games/mohaa/entrypoint.sh new file mode 100644 index 0000000..11acd70 --- /dev/null +++ b/games/mohaa/entrypoint.sh @@ -0,0 +1,13 @@ +#!/bin/bash +cd /home/container + +# Set environment variable that holds the Internal Docker IP +INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}') +export INTERNAL_IP + +# Replace Startup Variables +MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +echo -e ":/home/container$ ${MODIFIED_STARTUP}" + +# Run the Server +eval ${MODIFIED_STARTUP}