diff --git a/.github/workflows/games.yml b/.github/workflows/games.yml index 4ca3a3a..2a84791 100644 --- a/.github/workflows/games.yml +++ b/.github/workflows/games.yml @@ -16,6 +16,7 @@ jobs: fail-fast: false matrix: game: + - altv - arma3 - source steps: diff --git a/README.md b/README.md index c3578f3..9d54cf5 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,8 @@ is tagged correctly. ### [Games](/games) +* [`altv`](/games/altv) + * `ghcr.io/parkervcp/games:altv` * [`arma3`](/games/arma3) * `ghcr.io/parkervcp/games:arma3` * [`source`](/games/source) diff --git a/games/altv/Dockerfile b/games/altv/Dockerfile new file mode 100644 index 0000000..0063e6f --- /dev/null +++ b/games/altv/Dockerfile @@ -0,0 +1,31 @@ +# ---------------------------------- +# Environment: debian +# ---------------------------------- +FROM node:16-bullseye + +LABEL author="goover" maintainer="info@goover.de" + +ENV DEBIAN_FRONTEND noninteractive + +RUN useradd -m -d /home/container -s /bin/bash container + +RUN apt update -y \ + && apt upgrade -y \ + && apt install -y gcc g++ libgcc-s1 lib32gcc-s1 gdb libc6 git wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools netcat telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 \ + libfontconfig1 libicu67 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev libduktape205 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates tzdata \ + python3 dnsutils build-essential coreutils jq pcregrep + +RUN wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ + && dpkg -i packages-microsoft-prod.deb \ + && apt update -y \ + && apt install -y dotnet-sdk-5.0 dotnet-sdk-6.0 libgdiplus + +RUN update-locale lang=en_US.UTF-8 \ + && dpkg-reconfigure --frontend noninteractive locales + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +COPY ./entrypoint.sh /entrypoint.sh +CMD ["/bin/bash", "/entrypoint.sh"] diff --git a/games/altv/entrypoint.sh b/games/altv/entrypoint.sh new file mode 100644 index 0000000..d9f5b44 --- /dev/null +++ b/games/altv/entrypoint.sh @@ -0,0 +1,12 @@ +#!/bin/bash +cd /home/container + +# Make internal Docker IP address available to processes. +export INTERNAL_IP=`ip route get 1 | awk '{print $NF;exit}'` + +# 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} \ No newline at end of file