add mohaa image
This commit is contained in:
1
.github/workflows/games.yml
vendored
1
.github/workflows/games.yml
vendored
@@ -18,6 +18,7 @@ jobs:
|
|||||||
- arma3
|
- arma3
|
||||||
- fivem
|
- fivem
|
||||||
- source
|
- source
|
||||||
|
- mohaa
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: docker/setup-buildx-action@v1
|
- uses: docker/setup-buildx-action@v1
|
||||||
|
@@ -64,9 +64,11 @@ is tagged correctly.
|
|||||||
* [`arma3`](/games/arma3)
|
* [`arma3`](/games/arma3)
|
||||||
* `ghcr.io/parkervcp/games:arma3`
|
* `ghcr.io/parkervcp/games:arma3`
|
||||||
* [`fivem`](/games/fivem)
|
* [`fivem`](/games/fivem)
|
||||||
* `ghcr.io/parkervcp/games:fivem`
|
* `ghcr.io/parkervcp/games:fivem`
|
||||||
* [`source`](/games/source)
|
* [`source`](/games/source)
|
||||||
* `ghcr.io/parkervcp/games:source`
|
* `ghcr.io/parkervcp/games:source`
|
||||||
|
* [`mohaa`](games/mohaa)
|
||||||
|
* `ghcr.io/pterodactyl/games:mohaa`
|
||||||
### [Golang](/go)
|
### [Golang](/go)
|
||||||
* [`go1.14`](/go/1.14)
|
* [`go1.14`](/go/1.14)
|
||||||
* `ghcr.io/parkervcp/yolks:go_1.14`
|
* `ghcr.io/parkervcp/yolks:go_1.14`
|
||||||
|
22
games/mohaa/Dockerfile
Normal file
22
games/mohaa/Dockerfile
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye-slim
|
||||||
|
|
||||||
|
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 locales \
|
||||||
|
&& update-locale lang=en_US.UTF-8 \
|
||||||
|
&& dpkg-reconfigure --frontend noninteractive locales \
|
||||||
|
&& useradd -m -d /home/container -s /bin/bash container
|
||||||
|
|
||||||
|
USER container
|
||||||
|
ENV USER=container HOME=/home/container
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
WORKDIR /home/container
|
||||||
|
|
||||||
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
CMD [ "/bin/bash", "/entrypoint.sh" ]
|
44
games/mohaa/entrypoint.sh
Normal file
44
games/mohaa/entrypoint.sh
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# Copyright (c) 2021 Matthew Penner
|
||||||
|
#
|
||||||
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
# of this software and associated documentation files (the "Software"), to deal
|
||||||
|
# in the Software without restriction, including without limitation the rights
|
||||||
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
# copies of the Software, and to permit persons to whom the Software is
|
||||||
|
# furnished to do so, subject to the following conditions:
|
||||||
|
#
|
||||||
|
# The above copyright notice and this permission notice shall be included in all
|
||||||
|
# copies or substantial portions of the Software.
|
||||||
|
#
|
||||||
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
# SOFTWARE.
|
||||||
|
#
|
||||||
|
|
||||||
|
# Default the TZ environment variable to UTC.
|
||||||
|
TZ=${TZ:-UTC}
|
||||||
|
export TZ
|
||||||
|
|
||||||
|
# Set environment variable that holds the Internal Docker IP
|
||||||
|
INTERNAL_IP=$(ip route get 1 | awk '{print $NF;exit}')
|
||||||
|
export INTERNAL_IP
|
||||||
|
|
||||||
|
# Switch to the container's working directory
|
||||||
|
cd /home/container || exit 1
|
||||||
|
|
||||||
|
# Convert all of the "{{VARIABLE}}" parts of the command into the expected shell
|
||||||
|
# variable format of "${VARIABLE}" before evaluating the string and automatically
|
||||||
|
# replacing the values.
|
||||||
|
PARSED=$(echo "${STARTUP}" | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)")
|
||||||
|
|
||||||
|
# Display the command we're running in the output, and then execute it with the env
|
||||||
|
# from the container itself.
|
||||||
|
printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0m%s\n" "$PARSED"
|
||||||
|
# shellcheck disable=SC2086
|
||||||
|
exec env ${PARSED}
|
Reference in New Issue
Block a user