From a3926fb0e4892da28c0bd91faa3b6a36a1c9d79b Mon Sep 17 00:00:00 2001 From: Sebastian Schindler Date: Tue, 21 Nov 2023 01:42:25 +0100 Subject: [PATCH 01/74] fix: replaced youtube-dl by ytdlp --- voice/teaspeak/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voice/teaspeak/Dockerfile b/voice/teaspeak/Dockerfile index cc46233..26a4154 100644 --- a/voice/teaspeak/Dockerfile +++ b/voice/teaspeak/Dockerfile @@ -37,7 +37,7 @@ RUN apt update \ RUN apt install -y ffmpeg curl python3 iproute2 libjemalloc2 tini # Install latest youtube-dl -RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl +RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/youtube-dl RUN chmod a+rx /usr/local/bin/youtube-dl RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 1000 From a401057a701285e7346d5087b98e9e0bd9f8c29d Mon Sep 17 00:00:00 2001 From: Vincenz <63001507+vinc3nz@users.noreply.github.com> Date: Mon, 11 Dec 2023 18:37:36 +0100 Subject: [PATCH 02/74] PosgreSQL 16 (#210) * add PostgreSQL 16 --------- Co-authored-by: Quinten <67589015+QuintenQVD0@users.noreply.github.com> --- .github/workflows/postgres.yml | 1 + postgres/16/Dockerfile | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 postgres/16/Dockerfile diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml index c5c30ab..3f863ec 100644 --- a/.github/workflows/postgres.yml +++ b/.github/workflows/postgres.yml @@ -23,6 +23,7 @@ jobs: - 12 - 13 - 14 + - 16 steps: - uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v3 diff --git a/postgres/16/Dockerfile b/postgres/16/Dockerfile new file mode 100644 index 0000000..a4eec38 --- /dev/null +++ b/postgres/16/Dockerfile @@ -0,0 +1,21 @@ +# ---------------------------------- +# Environment: Postgres DB +# ---------------------------------- +FROM --platform=$TARGETOS/$TARGETARCH postgres:16-alpine + +LABEL author="Parker" maintainer="parker@pterodactyl.io" + +# UID 999 is the default pterodactyl user +RUN adduser -D -h /home/container container + +RUN apk add --no-cache tini curl iproute2 ca-certificates fontconfig git openssl sqlite tar tzdata +USER container +ENV HOME /home/container +WORKDIR /home/container + +STOPSIGNAL SIGINT + +COPY --chown=container:container ../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/sbin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] \ No newline at end of file From 74cd18c86803fa823cfbdb431b197048cf5c0a62 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Sun, 17 Dec 2023 09:59:00 +0100 Subject: [PATCH 03/74] Add mongodb 7 --- .github/workflows/mongodb.yml | 1 + README.md | 2 ++ mongodb/7/Dockerfile | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 mongodb/7/Dockerfile diff --git a/.github/workflows/mongodb.yml b/.github/workflows/mongodb.yml index 3a8fc42..040ef1e 100644 --- a/.github/workflows/mongodb.yml +++ b/.github/workflows/mongodb.yml @@ -20,6 +20,7 @@ jobs: - 4 - 5 - 6 + - 7 steps: - uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v3 diff --git a/README.md b/README.md index ffee066..213d8bf 100644 --- a/README.md +++ b/README.md @@ -186,6 +186,8 @@ is tagged correctly. * `ghcr.io/parkervcp/yolks:mongodb_5` * [`MongoDB 6`](/mongodb/6) * `ghcr.io/parkervcp/yolks:mongodb_6` + * [`MongoDB 7`](/mongodb/7) + * `ghcr.io/parkervcp/yolks:mongodb_7` ### [Mono](/mono) diff --git a/mongodb/7/Dockerfile b/mongodb/7/Dockerfile new file mode 100644 index 0000000..7773d41 --- /dev/null +++ b/mongodb/7/Dockerfile @@ -0,0 +1,19 @@ +# ---------------------------------- +# Environment: MongoDB +# ---------------------------------- +FROM --platform=$TARGETOS/$TARGETARCH mongo:7-jammy + +LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt update -y \ + && apt install -y netcat iproute2 \ + && useradd -d /home/container -m container -s /bin/bash + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +COPY ./entrypoint.sh /entrypoint.sh +CMD ["/bin/bash", "/entrypoint.sh"] From 6bb8c6fb29ed22d977ac8d51547bfd2a6469eee8 Mon Sep 17 00:00:00 2001 From: Red-Thirten Date: Tue, 19 Dec 2023 00:51:19 -0800 Subject: [PATCH 04/74] [Arma 3] Fix SIGINT not getting passed to server (#212) * Add Tini to Arma 3 * add forgoten tini to Python 3.12 --------- Co-authored-by: Quinten <67589015+QuintenQVD0@users.noreply.github.com> --- bot/red/Dockerfile | 2 +- games/arma3/Dockerfile | 14 ++++++++++---- python/3.12/Dockerfile | 10 +++++++--- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/bot/red/Dockerfile b/bot/red/Dockerfile index f66d861..0e06a09 100644 --- a/bot/red/Dockerfile +++ b/bot/red/Dockerfile @@ -34,7 +34,7 @@ RUN apt update \ liblzma-dev \ ffmpeg \ imagemagick \ - tini + tini RUN pip install --upgrade pip RUN pip install python-forecastio tweepy unidecode mcstatus bs4 sqlalchemy geocoder valve python-valve py-cpuinfo psutil diff --git a/games/arma3/Dockerfile b/games/arma3/Dockerfile index d6860f3..1cb2e26 100644 --- a/games/arma3/Dockerfile +++ b/games/arma3/Dockerfile @@ -28,7 +28,8 @@ RUN dpkg --add-architecture i386 \ libnss-wrapper \ libnss-wrapper:i386 \ libtbb2 \ - libtbb2:i386 + libtbb2:i386 \ + tini ## Configure locale RUN update-locale lang=en_US.UTF-8 \ @@ -47,6 +48,11 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container -## Copy over and execute entrypoint.sh -COPY ./entrypoint.sh /entrypoint.sh -CMD [ "/bin/bash", "/entrypoint.sh" ] +## Copy over entrypoint.sh and set permissions +COPY --chown=container:container ./entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +## Start with Tini to pass future stop signals correctly +STOPSIGNAL SIGINT +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] diff --git a/python/3.12/Dockerfile b/python/3.12/Dockerfile index 8c830e4..14b1a3f 100644 --- a/python/3.12/Dockerfile +++ b/python/3.12/Dockerfile @@ -3,12 +3,16 @@ FROM --platform=$TARGETOS/$TARGETARCH python:3.12-slim LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" RUN apt update \ - && apt -y install git gcc g++ ca-certificates dnsutils curl iproute2 ffmpeg procps \ + && apt -y install git gcc g++ ca-certificates dnsutils curl iproute2 ffmpeg procps tini \ && useradd -m -d /home/container container USER container ENV USER=container HOME=/home/container WORKDIR /home/container -COPY ./../entrypoint.sh /entrypoint.sh -CMD [ "/bin/bash", "/entrypoint.sh" ] +STOPSIGNAL SIGINT + +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] From 17e36116c7f8c9c83e007b2d9fe4dcb03615e5f1 Mon Sep 17 00:00:00 2001 From: djoh Date: Mon, 25 Dec 2023 23:22:39 +0000 Subject: [PATCH 05/74] Add MariaDB 11.2 --- .github/workflows/mariadb.yml | 1 + README.md | 2 ++ mariadb/11.2/Dockerfile | 19 +++++++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 mariadb/11.2/Dockerfile diff --git a/.github/workflows/mariadb.yml b/.github/workflows/mariadb.yml index 94dca5c..796d178 100644 --- a/.github/workflows/mariadb.yml +++ b/.github/workflows/mariadb.yml @@ -22,6 +22,7 @@ jobs: - '10.5' - '10.6' - '10.7' + - '11.2' steps: - uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v3 diff --git a/README.md b/README.md index ffee066..17ca387 100644 --- a/README.md +++ b/README.md @@ -177,6 +177,8 @@ is tagged correctly. * `ghcr.io/parkervcp/yolks:mariadb_10.6` * [`MariaDB 10.7`](/mariadb/10.7) * `ghcr.io/parkervcp/yolks:mariadb_10.7` + * [`MariaDB 11.2`](/mariadb/11.2) + * `ghcr.io/parkervcp/yolks:mariadb_11.2` ### [MongoDB](/mongodb) diff --git a/mariadb/11.2/Dockerfile b/mariadb/11.2/Dockerfile new file mode 100644 index 0000000..811ee7d --- /dev/null +++ b/mariadb/11.2/Dockerfile @@ -0,0 +1,19 @@ +# ----------------------------------------------------- +# MariaDB Image for Pterodactyl +# ----------------------------------------------------- +FROM --platform=$TARGETOS/$TARGETARCH mariadb:11.2 + +LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt update -y \ + && apt install -y netcat \ + && useradd -d /home/container -m container -s /bin/bash + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +COPY ../entrypoint.sh /entrypoint.sh +CMD ["/bin/bash", "/entrypoint.sh"] From 733d820e71cc97860c0cca825a5b63c8e53acffc Mon Sep 17 00:00:00 2001 From: Rumen <48157527+rumenbl@users.noreply.github.com> Date: Sun, 31 Dec 2023 17:07:01 +0200 Subject: [PATCH 06/74] Add Java 21 --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 17ca387..7397032 100644 --- a/README.md +++ b/README.md @@ -164,6 +164,8 @@ is tagged correctly. * `ghcr.io/parkervcp/yolks:java_17` * [`java19`](/java/19) * `ghcr.io/parkervcp/yolks:java_19` +* [`java21`](/java/21) + * `ghcr.io/parkervcp/yolks:java_21` ### [MariaDB](/mariadb) From cbf89de3b121139539d2e29a764a3358ab850f9a Mon Sep 17 00:00:00 2001 From: Rumen Date: Wed, 3 Jan 2024 01:31:56 +0200 Subject: [PATCH 07/74] add nodejs 21 --- .github/workflows/nodejs.yml | 1 + README.md | 3 ++- nodejs/21/Dockerfile | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 nodejs/21/Dockerfile diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 95f6f8c..e31f98c 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -23,6 +23,7 @@ jobs: - 18 - 19 - 20 + - 21 steps: - uses: actions/checkout@v4 # Setup QEMU for ARM64 Build diff --git a/README.md b/README.md index 17ca387..87311ce 100644 --- a/README.md +++ b/README.md @@ -210,7 +210,8 @@ is tagged correctly. * `ghcr.io/parkervcp/yolks:nodejs_19` * [`node20`](/nodejs/20) * `ghcr.io/parkervcp/yolks:nodejs_20` - +* [`node21`](/nodejs/21) + * `ghcr.io/parkervcp/yolks:nodejs_21` ### [PostgreSQL](/postgres) diff --git a/nodejs/21/Dockerfile b/nodejs/21/Dockerfile new file mode 100644 index 0000000..eaf2f42 --- /dev/null +++ b/nodejs/21/Dockerfile @@ -0,0 +1,20 @@ +FROM --platform=$TARGETOS/$TARGETARCH node:21-bullseye-slim + +LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" + +RUN apt update \ + && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 tini \ + && useradd -m -d /home/container container + +RUN npm install npm@latest typescript ts-node @types/node --location=global + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +STOPSIGNAL SIGINT + +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] From 11c0991582fbc41657888a047d120abadad600ec Mon Sep 17 00:00:00 2001 From: kamcio96 Date: Fri, 12 Jan 2024 13:37:01 +0100 Subject: [PATCH 08/74] Add python3-pip and pythons requests lib for ytdl wrapper --- bot/sinusbot/Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bot/sinusbot/Dockerfile b/bot/sinusbot/Dockerfile index 388b34d..b833e6f 100644 --- a/bot/sinusbot/Dockerfile +++ b/bot/sinusbot/Dockerfile @@ -8,11 +8,12 @@ ENV DEBIAN_FRONTEND noninteractive # Install Dependencies RUN apt update \ && apt upgrade -y \ - && apt install -y ca-certificates less locales pulseaudio python python3 sudo x11vnc x11-xkb-utils xvfb iproute2 ffmpeg curl liblcms2-2 libatomic1 libxcb-xinerama0 fontconfig \ - libasound2 libegl1-mesa libglib2.0-0 libnss3 libpci3 libpulse0 libxcursor1 libxslt1.1 libx11-xcb1 libxkbcommon0 bzip2 libxss1 libxcomposite1 libevent-2.1-7 libxcb-icccm4 \ - libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxkbcommon-x11-0 tini \ + && apt install -y ca-certificates less locales pulseaudio python python3 python3-pip sudo x11vnc x11-xkb-utils xvfb iproute2 ffmpeg curl liblcms2-2 libatomic1 libxcb-xinerama0 \ + fontconfig libasound2 libegl1-mesa libglib2.0-0 libnss3 libpci3 libpulse0 libxcursor1 libxslt1.1 libx11-xcb1 libxkbcommon0 bzip2 libxss1 libxcomposite1 libevent-2.1-7 \ + libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxkbcommon-x11-0 tini \ + && python3 -m pip install requests \ && useradd -m -d /home/container container - +#RUN python3 -m pip install requests ENV LANG C.UTF-8 ENV LC_ALL C.UTF-8 @@ -26,4 +27,4 @@ STOPSIGNAL SIGINT COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] -CMD ["/entrypoint.sh"] \ No newline at end of file +CMD ["/entrypoint.sh"] From e9545e45537042eb12b1713bfd5ab6c348c064f9 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Fri, 26 Jan 2024 17:42:37 +0100 Subject: [PATCH 09/74] Steamcmd: fix validate & proton add tini --- steamcmd/entrypoint.sh | 4 ++-- steamcmd/proton/Dockerfile | 10 +++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/steamcmd/entrypoint.sh b/steamcmd/entrypoint.sh index 70965a9..5fa4f10 100644 --- a/steamcmd/entrypoint.sh +++ b/steamcmd/entrypoint.sh @@ -67,9 +67,9 @@ if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then # Update Source Server if [ ! -z ${SRCDS_APPID} ]; then if [ "${STEAM_USER}" == "anonymous" ]; then - ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) ${INSTALL_FLAGS} $( [[ "${VALIDATE}" == "1" ]] && printf %s 'validate' ) +quit else - numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) ${INSTALL_FLAGS} $( [[ "${VALIDATE}" == "1" ]] && printf %s 'validate' ) +quit fi else echo -e "No appid set. Starting Server" diff --git a/steamcmd/proton/Dockerfile b/steamcmd/proton/Dockerfile index 0a9e02e..1c8812a 100644 --- a/steamcmd/proton/Dockerfile +++ b/steamcmd/proton/Dockerfile @@ -9,7 +9,7 @@ LABEL author="Torsten Widmann" maintainer="info@goover.de" RUN dpkg --add-architecture i386 RUN apt update RUN apt install -y --no-install-recommends wget iproute2 gnupg2 software-properties-common libntlm0 winbind xvfb xauth libncurses5-dev:i386 libncurses6 dbus libgdiplus lib32gcc-s1 -RUN apt install -y alsa-tools libpulse0 pulseaudio libpulse-dev libasound2 libao-common gnutls-bin gnupg locales numactl cabextract curl python3 python3-pip python3-setuptools +RUN apt install -y alsa-tools libpulse0 pulseaudio libpulse-dev libasound2 libao-common gnutls-bin gnupg locales numactl cabextract curl python3 python3-pip python3-setuptools tini file RUN useradd -d /home/container -m container # Download Proton GE @@ -40,5 +40,9 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container -COPY ./../entrypoint.sh /entrypoint.sh -CMD [ "/bin/bash", "/entrypoint.sh" ] \ No newline at end of file +STOPSIGNAL SIGINT + +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] \ No newline at end of file From bcc7c304402130a099a97e99b840cc86bf91da27 Mon Sep 17 00:00:00 2001 From: Alexander Ballauf Date: Sat, 3 Feb 2024 16:40:27 +0100 Subject: [PATCH 10/74] Add sniper platform image (#220) * Add sniper platform image * steamcmd sniper force TARGETOS and TARGETARCH --------- Co-authored-by: Quinten <67589015+QuintenQVD0@users.noreply.github.com> --- .github/workflows/steamcmd.yml | 1 + README.md | 2 ++ steamcmd/sniper/Dockerfile | 31 +++++++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 steamcmd/sniper/Dockerfile diff --git a/.github/workflows/steamcmd.yml b/.github/workflows/steamcmd.yml index d76c1c6..2f6cc79 100644 --- a/.github/workflows/steamcmd.yml +++ b/.github/workflows/steamcmd.yml @@ -20,6 +20,7 @@ jobs: - ubuntu - dotnet - proton + - sniper steps: - uses: actions/checkout@v4 - uses: docker/setup-buildx-action@v3 diff --git a/README.md b/README.md index d6b5b2d..d00cce2 100644 --- a/README.md +++ b/README.md @@ -272,6 +272,8 @@ is tagged correctly. * `ghcr.io/parkervcp/steamcmd:dotnet` * [`SteamCMD Proton`](/steamcmd/proton) * `ghcr.io/parkervcp/steamcmd:proton` +* [`SteamCMD Sniper latest`](/steamcmd/sniper) + * `ghcr.io/parkervcp/steamcmd:sniper` * [`SteamCMD Ubuntu latest LTS`](/steamcmd/ubuntu) * `ghcr.io/parkervcp/steamcmd:ubuntu` diff --git a/steamcmd/sniper/Dockerfile b/steamcmd/sniper/Dockerfile new file mode 100644 index 0000000..bc4c8eb --- /dev/null +++ b/steamcmd/sniper/Dockerfile @@ -0,0 +1,31 @@ +# --------------------------------------------- +# Steam Sniper image (RT3) +# --------------------------------------------- +FROM --platform=$TARGETOS/$TARGETARCH registry.gitlab.steamos.cloud/steamrt/sniper/platform:latest-container-runtime-depot + +LABEL author="Alexander Ballauf" maintainer="admin@ballaual.de" +LABEL org.opencontainers.image.description SteamRT3 Platform image for Pterodactyl Source engine servers. + +## install required packages +RUN dpkg --add-architecture i386 \ + && apt-get update \ + && apt-get upgrade -y \ + && apt-get install -y tar curl gcc g++ lib32gcc-s1 libgcc1 libcurl4-gnutls-dev:i386 libssl1.1:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 libsdl2-2.0-0 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat tzdata numactl xvfb tini libc6 \ + && useradd -m -d /home/container container + +## install rcon +RUN cd /tmp/ \ + && curl -sSL https://github.com/gorcon/rcon-cli/releases/download/v0.10.3/rcon-0.10.3-amd64_linux.tar.gz > rcon.tar.gz \ + && tar xvf rcon.tar.gz \ + && mv rcon-0.10.3-amd64_linux/rcon /usr/local/bin/ + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +STOPSIGNAL SIGINT + +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] \ No newline at end of file From 8c0c7f11e6096221a1d536efdca0d2d1886fcc26 Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Wed, 7 Feb 2024 02:01:20 -0500 Subject: [PATCH 11/74] Add rcon to wine images (#221) This adds the rcon cli to the wine images --- wine/devel/Dockerfile | 5 +++++ wine/latest/Dockerfile | 5 +++++ wine/staging/Dockerfile | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/wine/devel/Dockerfile b/wine/devel/Dockerfile index 115d377..f31e43a 100644 --- a/wine/devel/Dockerfile +++ b/wine/devel/Dockerfile @@ -11,6 +11,11 @@ RUN dpkg --add-architecture i386 \ && apt update -y \ && apt install -y --no-install-recommends gnupg2 numactl tzdata software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386 +RUN cd /tmp/ \ + && curl -sSL https://github.com/gorcon/rcon-cli/releases/download/v0.10.3/rcon-0.10.3-amd64_linux.tar.gz > rcon.tar.gz \ + && tar xvf rcon.tar.gz \ + && mv rcon-0.10.3-amd64_linux/rcon /usr/local/bin/ + # Install wine and with recommends RUN mkdir -pm755 /etc/apt/keyrings RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key diff --git a/wine/latest/Dockerfile b/wine/latest/Dockerfile index 2a1fa6b..b1b0a6d 100644 --- a/wine/latest/Dockerfile +++ b/wine/latest/Dockerfile @@ -11,6 +11,11 @@ RUN dpkg --add-architecture i386 \ && apt update -y \ && apt install -y --no-install-recommends gnupg2 numactl tzdata software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386 +RUN cd /tmp/ \ + && curl -sSL https://github.com/gorcon/rcon-cli/releases/download/v0.10.3/rcon-0.10.3-amd64_linux.tar.gz > rcon.tar.gz \ + && tar xvf rcon.tar.gz \ + && mv rcon-0.10.3-amd64_linux/rcon /usr/local/bin/ + # Install wine and with recommends RUN mkdir -pm755 /etc/apt/keyrings RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key diff --git a/wine/staging/Dockerfile b/wine/staging/Dockerfile index 01858cb..0530ac0 100644 --- a/wine/staging/Dockerfile +++ b/wine/staging/Dockerfile @@ -11,6 +11,11 @@ RUN dpkg --add-architecture i386 \ && apt update -y \ && apt install -y --no-install-recommends gnupg2 numactl tzdata software-properties-common libntlm0 winbind xvfb xauth python3 libncurses5:i386 libncurses6:i386 libsdl2-2.0-0 libsdl2-2.0-0:i386 +RUN cd /tmp/ \ + && curl -sSL https://github.com/gorcon/rcon-cli/releases/download/v0.10.3/rcon-0.10.3-amd64_linux.tar.gz > rcon.tar.gz \ + && tar xvf rcon.tar.gz \ + && mv rcon-0.10.3-amd64_linux/rcon /usr/local/bin/ + # Install wine and with recommends RUN mkdir -pm755 /etc/apt/keyrings RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key From a2302e85c74b7b66dee11cee460fe080a2fee127 Mon Sep 17 00:00:00 2001 From: Rumen <48157527+rumenbl@users.noreply.github.com> Date: Wed, 7 Feb 2024 23:45:50 +0200 Subject: [PATCH 12/74] add go 1.22 --- .github/workflows/go.yml | 1 + README.md | 2 ++ go/1.22/Dockerfile | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 go/1.22/Dockerfile diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index bea9cff..5179282 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -24,6 +24,7 @@ jobs: - '1.19' - '1.20' - '1.21' + - '1.22' steps: - uses: actions/checkout@v4 - uses: docker/setup-buildx-action@v3 diff --git a/README.md b/README.md index 578314f..2eb2845 100644 --- a/README.md +++ b/README.md @@ -151,6 +151,8 @@ is tagged correctly. * `ghcr.io/parkervcp/yolks:go_1.20` * [`go1.21`](/go/1.21) * `ghcr.io/parkervcp/yolks:go_1.21` +* [`go1.22`](/go/1.22) + * `ghcr.io/parkervcp/yolks:go_1.22` ### [Java](/java) diff --git a/go/1.22/Dockerfile b/go/1.22/Dockerfile new file mode 100644 index 0000000..0473172 --- /dev/null +++ b/go/1.22/Dockerfile @@ -0,0 +1,38 @@ +# +# 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. +# + +FROM --platform=$TARGETOS/$TARGETARCH golang:1.22-alpine + +LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" + +LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks" +LABEL org.opencontainers.image.licenses=MIT + +RUN apk add --update --no-cache ca-certificates tzdata \ + && adduser -D -h /home/container container + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +COPY ./../entrypoint.sh /entrypoint.sh +CMD [ "/bin/ash", "/entrypoint.sh" ] From 7aee391200c7d951eaae799e8c7b952f492409e8 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Mon, 4 Mar 2024 14:22:25 +0100 Subject: [PATCH 13/74] Update mumble to use alpine edge --- voice/mumble/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/voice/mumble/Dockerfile b/voice/mumble/Dockerfile index f22b797..cfac818 100644 --- a/voice/mumble/Dockerfile +++ b/voice/mumble/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH alpine:3.16 +FROM --platform=$TARGETOS/$TARGETARCH alpine:edge LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" From 4a27d2895b1e3c3defc913ef6fe868c14c63411e Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Wed, 6 Mar 2024 10:30:39 +0100 Subject: [PATCH 14/74] Print mumble server version --- voice/mumble/entrypoint.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/voice/mumble/entrypoint.sh b/voice/mumble/entrypoint.sh index bbafa01..281b061 100644 --- a/voice/mumble/entrypoint.sh +++ b/voice/mumble/entrypoint.sh @@ -5,10 +5,12 @@ cd /home/container INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}') export INTERNAL_IP +# Print the Muble server version +mumble-server --version # Replace Startup Variables MODIFIED_STARTUP=$(echo -e $(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 +eval ${MODIFIED_STARTUP} From ef82e69547d4f61c41d10fb9369790e04e23aec6 Mon Sep 17 00:00:00 2001 From: wraith1200 Date: Tue, 12 Mar 2024 13:57:20 -0400 Subject: [PATCH 15/74] adding proton 8 image --- .github/workflows/steamcmd.yml | 3 ++- README.md | 2 ++ steamcmd/proton_8/Dockerfile | 48 ++++++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 steamcmd/proton_8/Dockerfile diff --git a/.github/workflows/steamcmd.yml b/.github/workflows/steamcmd.yml index 2f6cc79..443c9ab 100644 --- a/.github/workflows/steamcmd.yml +++ b/.github/workflows/steamcmd.yml @@ -19,7 +19,8 @@ jobs: - debian - ubuntu - dotnet - - proton + - proton + - proton_8 - sniper steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index edd1f2e..9d69647 100644 --- a/README.md +++ b/README.md @@ -274,6 +274,8 @@ is tagged correctly. * `ghcr.io/parkervcp/steamcmd:dotnet` * [`SteamCMD Proton`](/steamcmd/proton) * `ghcr.io/parkervcp/steamcmd:proton` +* [`SteamCMD Proton`](/steamcmd/proton_8) + * `ghcr.io/parkervcp/steamcmd:proton_8` * [`SteamCMD Sniper latest`](/steamcmd/sniper) * `ghcr.io/parkervcp/steamcmd:sniper` * [`SteamCMD Ubuntu latest LTS`](/steamcmd/ubuntu) diff --git a/steamcmd/proton_8/Dockerfile b/steamcmd/proton_8/Dockerfile new file mode 100644 index 0000000..388ff95 --- /dev/null +++ b/steamcmd/proton_8/Dockerfile @@ -0,0 +1,48 @@ +# --------------------------------------------- +# Steam Proton image +# --------------------------------------------- +FROM debian:bullseye-slim + +LABEL author="Torsten Widmann" maintainer="info@goover.de" + +## install required packages +RUN dpkg --add-architecture i386 +RUN apt update +RUN apt install -y --no-install-recommends wget iproute2 gnupg2 software-properties-common libntlm0 winbind xvfb xauth libncurses5-dev:i386 libncurses6 dbus libgdiplus lib32gcc-s1 +RUN apt install -y alsa-tools libpulse0 pulseaudio libpulse-dev libasound2 libao-common gnutls-bin gnupg locales numactl cabextract curl python3 python3-pip python3-setuptools tini file +RUN useradd -d /home/container -m container + +# Download Proton GE +RUN curl -sLOJ "$(curl -s https://api.github.com/repos/GloriousEggroll/proton-ge-custom/releases/tags/GE-Proton8-32 | grep browser_download_url | cut -d\" -f4 | egrep .tar.gz)" +RUN tar -xzf GE-Proton*.tar.gz -C /usr/local/bin/ --strip-components=1 +RUN rm GE-Proton*.* + +# Proton Fix machine-id +RUN rm -f /etc/machine-id +RUN dbus-uuidgen --ensure=/etc/machine-id +RUN rm /var/lib/dbus/machine-id +RUN dbus-uuidgen --ensure + +#Setup Protontricks +RUN python3 -m pip install protontricks + +# Set up Winetricks +RUN wget -q -O /usr/sbin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \ + && chmod +x /usr/sbin/winetricks + +## install rcon +RUN cd /tmp/ \ + && curl -sSL https://github.com/gorcon/rcon-cli/releases/download/v0.10.3/rcon-0.10.3-amd64_linux.tar.gz > rcon.tar.gz \ + && tar xvf rcon.tar.gz \ + && mv rcon-0.10.3-amd64_linux/rcon /usr/local/bin/ + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +STOPSIGNAL SIGINT + +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] \ No newline at end of file From 851d94b37abab4376b27d92c006637b03ecd75ef Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Sat, 30 Mar 2024 10:34:30 +0100 Subject: [PATCH 16/74] steamcmd: dotnet 8 --- steamcmd/dotnet/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steamcmd/dotnet/Dockerfile b/steamcmd/dotnet/Dockerfile index e90ae75..9a727e4 100644 --- a/steamcmd/dotnet/Dockerfile +++ b/steamcmd/dotnet/Dockerfile @@ -18,7 +18,7 @@ RUN apt update -y \ && dpkg -i packages-microsoft-prod.deb \ && rm packages-microsoft-prod.deb \ && apt update -y \ - && apt install -y aspnetcore-runtime-7.0 dotnet-sdk-7.0 libgdiplus + && apt install -y aspnetcore-runtime-7.0 dotnet-sdk-7.0 libgdiplus aspnetcore-runtime-8.0 dotnet-sdk-8.0 ## install rcon RUN cd /tmp/ \ From e702e788bed39baee902a9ada421348e5ca1bb9a Mon Sep 17 00:00:00 2001 From: Alden Bansemer Date: Tue, 2 Apr 2024 03:24:16 -0700 Subject: [PATCH 17/74] Add 3.3/stable dart yolks (#229) * Add 3.3/stable dart images * Update dart.yml * Revert dart.yml --- .github/workflows/dart.yml | 8 +++++--- README.md | 8 ++++++++ dart/3.3/Dockerfile | 18 ++++++++++++++++++ dart/stable/Dockerfile | 18 ++++++++++++++++++ 4 files changed, 49 insertions(+), 3 deletions(-) create mode 100644 dart/3.3/Dockerfile create mode 100644 dart/stable/Dockerfile diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 906db3b..3a26b8b 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -16,9 +16,11 @@ jobs: fail-fast: false matrix: tag: - - 2.17 - - 2.18 - - 2.19 + - '2.17' + - '2.18' + - '2.19' + - '3.3' + - 'stable' steps: - uses: actions/checkout@v4 # Setup QEMU for ARM64 Build diff --git a/README.md b/README.md index 9d69647..7a391da 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,14 @@ is tagged correctly. * [`dart2.17`](/dart/2.17) * `ghcr.io/parkervcp/yolks:dart_2.17` +* [`dart2.18`](/dart/2.18) + * `ghcr.io/parkervcp/yolks:dart_2.18` +* [`dart2.19`](/dart/2.19) + * `ghcr.io/parkervcp/yolks:dart_2.19` +* [`dart3.3`](/dart/3.3) + * `ghcr.io/parkervcp/yolks:dart_3.3` +* [`dart stable`](/dart/stable) + * `ghcr.io/parkervcp/yolks:dart_stable` ### [dotNet](/dotnet) diff --git a/dart/3.3/Dockerfile b/dart/3.3/Dockerfile new file mode 100644 index 0000000..a4c6b30 --- /dev/null +++ b/dart/3.3/Dockerfile @@ -0,0 +1,18 @@ +FROM --platform=$TARGETOS/$TARGETARCH dart:3.3 + +LABEL author="Alden Bansemer" maintainer="alden@knoban.com" + +RUN apt update \ + && apt -y install iproute2 git ca-certificates tzdata tini \ + && useradd -m -d /home/container container + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +STOPSIGNAL SIGINT + +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] diff --git a/dart/stable/Dockerfile b/dart/stable/Dockerfile new file mode 100644 index 0000000..f8150d4 --- /dev/null +++ b/dart/stable/Dockerfile @@ -0,0 +1,18 @@ +FROM --platform=$TARGETOS/$TARGETARCH dart:stable + +LABEL author="Alden Bansemer" maintainer="alden@knoban.com" + +RUN apt update \ + && apt -y install iproute2 git ca-certificates tzdata tini \ + && useradd -m -d /home/container container + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +STOPSIGNAL SIGINT + +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] From b3f8b0844a2674d20fe7f6a1f05f9042158dab33 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Tue, 2 Apr 2024 15:50:15 +0200 Subject: [PATCH 18/74] Move to Debian 12 and fix Uptime Kuma --- apps/uptimekuma/Dockerfile | 3 ++- apps/uptimekuma/entrypoint.sh | 2 ++ bot/bastion/Dockerfile | 12 ++++++------ bot/parkertron/Dockerfile | 2 +- bot/red/Dockerfile | 4 ++-- bot/sinusbot/Dockerfile | 4 ++-- box64/Dockerfile | 6 +++--- games/altv/Dockerfile | 8 ++++---- games/minetest/Dockerfile | 2 +- games/samp/Dockerfile | 4 ++-- games/source/Dockerfile | 4 ++-- installers/debian/Dockerfile | 2 +- installers/ubuntu/Dockerfile | 2 +- mongodb/6/Dockerfile | 2 +- nodejs/16/Dockerfile | 2 +- nodejs/18/Dockerfile | 2 +- nodejs/20/Dockerfile | 2 +- nodejs/21/Dockerfile | 2 +- oses/debian/Dockerfile | 8 ++++---- python/3.10/Dockerfile | 2 +- python/3.11/Dockerfile | 2 +- python/3.12/Dockerfile | 2 +- python/3.8/Dockerfile | 2 +- python/3.9/Dockerfile | 2 +- redis/6/Dockerfile | 2 +- redis/7/Dockerfile | 2 +- steamcmd/debian/Dockerfile | 4 ++-- steamcmd/dotnet/Dockerfile | 6 +++--- steamcmd/proton/Dockerfile | 2 +- steamcmd/proton_8/Dockerfile | 2 +- voice/teaspeak/Dockerfile | 2 +- wine/devel/Dockerfile | 2 +- wine/latest/Dockerfile | 2 +- wine/staging/Dockerfile | 2 +- 34 files changed, 56 insertions(+), 53 deletions(-) diff --git a/apps/uptimekuma/Dockerfile b/apps/uptimekuma/Dockerfile index 1f8b17b..f3325cf 100644 --- a/apps/uptimekuma/Dockerfile +++ b/apps/uptimekuma/Dockerfile @@ -26,6 +26,7 @@ RUN apk add --no-cache \ python3 \ python3-dev \ py3-pip \ + pipx \ sqlite \ tzdata \ zip \ @@ -42,7 +43,7 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ARCHITECTURE=amd64; e RUN chmod +x /usr/bin/cloudflared # install apprise -RUN pip install apprise +RUN pipx install apprise ## Setup user and working directory RUN adduser -D -h /home/container container -s /bin/bash container diff --git a/apps/uptimekuma/entrypoint.sh b/apps/uptimekuma/entrypoint.sh index e529b3a..7120b8e 100644 --- a/apps/uptimekuma/entrypoint.sh +++ b/apps/uptimekuma/entrypoint.sh @@ -31,6 +31,8 @@ echo -e "${YELLOW}NodeJS Version: ${RED} $(node -v) ${NC}" echo -e "${YELLOW}Cloudflared Version: ${RED} $(/usr/bin/cloudflared --version) ${NC}" echo -e "${BLUE}-------------------------------------------------${NC}" +export PATH=$PATH:/root/.local/bin + # Replace Startup Variables MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') echo ":/home/container$ ${MODIFIED_STARTUP}" diff --git a/bot/bastion/Dockerfile b/bot/bastion/Dockerfile index ed858fa..a3fd8a9 100644 --- a/bot/bastion/Dockerfile +++ b/bot/bastion/Dockerfile @@ -1,12 +1,12 @@ -FROM --platform=$TARGETOS/$TARGETARCH mongo:6-focal +FROM --platform=$TARGETOS/$TARGETARCH mongo:6-jammy LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" -## install nodejs 18 -RUN apt update && apt install --no-install-recommends -y curl \ - && mkdir -p /etc/apt/keyrings \ - && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \ - && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ +## install nodejs 20 +RUN apt update && apt install --no-install-recommends -y curl apt-transport-https ca-certificates gnupg \ + && mkdir -p /usr/share/keyrings \ + && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /usr/share/keyrings/nodesource.gpg \ + && echo "deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ && apt update && apt install -y nodejs \ && npm install -g npm@latest \ ## install bastion reqs diff --git a/bot/parkertron/Dockerfile b/bot/parkertron/Dockerfile index 871fe67..c1cc297 100644 --- a/bot/parkertron/Dockerfile +++ b/bot/parkertron/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/bot/red/Dockerfile b/bot/red/Dockerfile index 0e06a09..8e1b834 100644 --- a/bot/red/Dockerfile +++ b/bot/red/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH python:3.11-slim +FROM --platform=$TARGETOS/$TARGETARCH python:3.11-slim-bookworm LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" @@ -34,7 +34,7 @@ RUN apt update \ liblzma-dev \ ffmpeg \ imagemagick \ - tini + tini RUN pip install --upgrade pip RUN pip install python-forecastio tweepy unidecode mcstatus bs4 sqlalchemy geocoder valve python-valve py-cpuinfo psutil diff --git a/bot/sinusbot/Dockerfile b/bot/sinusbot/Dockerfile index b833e6f..76f8b64 100644 --- a/bot/sinusbot/Dockerfile +++ b/bot/sinusbot/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye-slim +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim LABEL org.opencontainers.image.authors="i2007@damw.eu" LABEL version="1.0" @@ -8,7 +8,7 @@ ENV DEBIAN_FRONTEND noninteractive # Install Dependencies RUN apt update \ && apt upgrade -y \ - && apt install -y ca-certificates less locales pulseaudio python python3 python3-pip sudo x11vnc x11-xkb-utils xvfb iproute2 ffmpeg curl liblcms2-2 libatomic1 libxcb-xinerama0 \ + && apt install -y ca-certificates less locales pulseaudio python3 python3-pip sudo x11vnc x11-xkb-utils xvfb iproute2 ffmpeg curl liblcms2-2 libatomic1 libxcb-xinerama0 \ fontconfig libasound2 libegl1-mesa libglib2.0-0 libnss3 libpci3 libpulse0 libxcursor1 libxslt1.1 libx11-xcb1 libxkbcommon0 bzip2 libxss1 libxcomposite1 libevent-2.1-7 \ libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxkbcommon-x11-0 tini \ && python3 -m pip install requests \ diff --git a/box64/Dockerfile b/box64/Dockerfile index e6f4872..d0ae99e 100644 --- a/box64/Dockerfile +++ b/box64/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye-slim +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim LABEL author="QuintenQVD" maintainer="josdekurk@gmail.com" @@ -10,8 +10,8 @@ RUN apt update \ ## Install dependencies RUN apt install -y libc++-dev libc6 git wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools libatomic1 libsdl1.2debian libsdl2-2.0-0 \ - libfontconfig libicu67 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadbclient-dev-compat libduktape205 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates \ - libz-dev rapidjson-dev tzdata libevent-dev libzip4 libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 build-essential cmake libgdiplus libstdc++6 + libfontconfig libicu72 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev libmariadb-dev-compat libduktape207 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates \ + libz3-dev rapidjson-dev tzdata libevent-dev libzip4 libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 build-essential cmake libgdiplus libstdc++6 ## Configure locale RUN update-locale lang=en_US.UTF-8 \ diff --git a/games/altv/Dockerfile b/games/altv/Dockerfile index cd13464..bd257b1 100644 --- a/games/altv/Dockerfile +++ b/games/altv/Dockerfile @@ -1,7 +1,7 @@ # ---------------------------------- # Environment: debian # ---------------------------------- -FROM --platform=$TARGETOS/$TARGETARCH node:16-bullseye +FROM --platform=$TARGETOS/$TARGETARCH node:16-bookworm LABEL author="goover" maintainer="info@goover.de" @@ -12,10 +12,10 @@ RUN useradd -m -d /home/container -s /bin/bash container RUN apt update -y \ && apt upgrade -y \ && apt install -y g++ gcc libgcc-s1 lib32gcc-s1 gdb libstdc++6 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 \ + libfontconfig1 libicu72 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev libduktape207 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates tzdata \ python3 dnsutils build-essential coreutils jq pcregrep tini -RUN wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ +RUN wget https://packages.microsoft.com/config/debian/12/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 dotnet-sdk-7.0 libgdiplus @@ -32,4 +32,4 @@ STOPSIGNAL SIGINT COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] -CMD ["/entrypoint.sh"] +CMD ["/entrypoint.sh"] \ No newline at end of file diff --git a/games/minetest/Dockerfile b/games/minetest/Dockerfile index d822314..50ead4a 100644 --- a/games/minetest/Dockerfile +++ b/games/minetest/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH ubuntu:20.04 +FROM --platform=$TARGETOS/$TARGETARCH ubuntu:22.04 ENV DEBIAN_FRONTEND noninteractive RUN apt update -y \ diff --git a/games/samp/Dockerfile b/games/samp/Dockerfile index 0371afe..a006557 100644 --- a/games/samp/Dockerfile +++ b/games/samp/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye-slim +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim LABEL author="QuintenQVD" maintainer="josdekurk@gmail.com" @@ -8,7 +8,7 @@ RUN dpkg --add-architecture i386 \ && apt update \ && apt upgrade -y \ && apt install -y libstdc++6 lib32stdc++6 tar curl iproute2 openssl fontconfig dirmngr ca-certificates dnsutils tzdata zip tini \ - && apt install -y libtbb2:i386 libtbb-dev:i386 libicu-dev:i386 \ + && apt install -y libtbb12:i386 libtbb-dev:i386 libicu-dev:i386 \ && useradd -d /home/container -m container RUN mkdir -p /run/systemd && echo 'docker' > /run/systemd/container diff --git a/games/source/Dockerfile b/games/source/Dockerfile index a67e918..0bc719c 100644 --- a/games/source/Dockerfile +++ b/games/source/Dockerfile @@ -20,7 +20,7 @@ # SOFTWARE. # -FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye-slim +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" @@ -32,7 +32,7 @@ ENV DEBIAN_FRONTEND=noninteractive RUN dpkg --add-architecture i386 \ && apt update \ && apt upgrade -y \ - && apt install -y tar curl gcc g++ lib32gcc-s1 libgcc1 libcurl4-gnutls-dev:i386 libssl1.1:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat tzdata numactl tini \ + && apt install -y tar curl gcc g++ lib32gcc-s1 libgcc-11-dev libgcc-12-dev libcurl4-gnutls-dev:i386 libssl-dev:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat tzdata numactl tini \ && useradd -m -d /home/container container ## install rcon diff --git a/installers/debian/Dockerfile b/installers/debian/Dockerfile index aafb0b6..71ab96e 100644 --- a/installers/debian/Dockerfile +++ b/installers/debian/Dockerfile @@ -20,7 +20,7 @@ # SOFTWARE. # -FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye-slim +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" diff --git a/installers/ubuntu/Dockerfile b/installers/ubuntu/Dockerfile index 658af3e..bcfa60b 100644 --- a/installers/ubuntu/Dockerfile +++ b/installers/ubuntu/Dockerfile @@ -20,7 +20,7 @@ # SOFTWARE. # -FROM --platform=$TARGETOS/$TARGETARCH ubuntu:focal +FROM --platform=$TARGETOS/$TARGETARCH ubuntu:jammy LABEL author="oliver194" maintainer="100048880+oliver194@users.noreply.github.com" diff --git a/mongodb/6/Dockerfile b/mongodb/6/Dockerfile index 97cb7eb..0e73bbe 100644 --- a/mongodb/6/Dockerfile +++ b/mongodb/6/Dockerfile @@ -1,7 +1,7 @@ # ---------------------------------- # Environment: MongoDB # ---------------------------------- -FROM --platform=$TARGETOS/$TARGETARCH mongo:6-focal +FROM --platform=$TARGETOS/$TARGETARCH mongo:6-jammy LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/nodejs/16/Dockerfile b/nodejs/16/Dockerfile index df7acf9..ba417f9 100644 --- a/nodejs/16/Dockerfile +++ b/nodejs/16/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH node:16-bullseye-slim +FROM --platform=$TARGETOS/$TARGETARCH node:16-bookworm-slim LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/nodejs/18/Dockerfile b/nodejs/18/Dockerfile index 1877db6..6abcc86 100644 --- a/nodejs/18/Dockerfile +++ b/nodejs/18/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH node:18-bullseye-slim +FROM --platform=$TARGETOS/$TARGETARCH node:18-bookworm-slim LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/nodejs/20/Dockerfile b/nodejs/20/Dockerfile index 2c5f0f9..a42270f 100644 --- a/nodejs/20/Dockerfile +++ b/nodejs/20/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH node:20-bullseye-slim +FROM --platform=$TARGETOS/$TARGETARCH node:20-bookworm-slim LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/nodejs/21/Dockerfile b/nodejs/21/Dockerfile index eaf2f42..7de0f65 100644 --- a/nodejs/21/Dockerfile +++ b/nodejs/21/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH node:21-bullseye-slim +FROM --platform=$TARGETOS/$TARGETARCH node:21-bookworm-slim LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/oses/debian/Dockerfile b/oses/debian/Dockerfile index f47530b..ec572cf 100644 --- a/oses/debian/Dockerfile +++ b/oses/debian/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye-slim +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" @@ -18,9 +18,9 @@ RUN apt update \ && apt upgrade -y ## Install dependencies -RUN apt install -y gcc g++ libgcc1 libc++-dev 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 \ - libfontconfig libicu67 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadbclient-dev-compat libduktape205 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates \ - liblua5.3-0 libz-dev rapidjson-dev tzdata libevent-dev libzip4 libprotobuf23 libfluidsynth2 procps libstdc++6 tini +RUN apt install -y gcc g++ libgcc-12-dev libc++-dev 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 libicu72 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev-compat libduktape207 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates \ + liblua5.3-0 libz3-dev libzadc4 rapidjson-dev tzdata libevent-dev libzip4 libprotobuf32 libfluidsynth3 procps libstdc++6 tini ## Configure locale RUN update-locale lang=en_US.UTF-8 \ diff --git a/python/3.10/Dockerfile b/python/3.10/Dockerfile index ccfab6e..d7bb607 100644 --- a/python/3.10/Dockerfile +++ b/python/3.10/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH python:3.10-slim +FROM --platform=$TARGETOS/$TARGETARCH python:3.10-slim-bookworm LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/python/3.11/Dockerfile b/python/3.11/Dockerfile index ee9cbd8..902254c 100644 --- a/python/3.11/Dockerfile +++ b/python/3.11/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH python:3.11-slim +FROM --platform=$TARGETOS/$TARGETARCH python:3.11-slim-bookworm LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/python/3.12/Dockerfile b/python/3.12/Dockerfile index 14b1a3f..3d426b9 100644 --- a/python/3.12/Dockerfile +++ b/python/3.12/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH python:3.12-slim +FROM --platform=$TARGETOS/$TARGETARCH python:3.7-slim-bookworm LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/python/3.8/Dockerfile b/python/3.8/Dockerfile index 51928e3..b201ec7 100644 --- a/python/3.8/Dockerfile +++ b/python/3.8/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH python:3.8-slim +FROM --platform=$TARGETOS/$TARGETARCH python:3.8-slim-bookworm LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/python/3.9/Dockerfile b/python/3.9/Dockerfile index f4811df..311a447 100644 --- a/python/3.9/Dockerfile +++ b/python/3.9/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH python:3.9-slim +FROM --platform=$TARGETOS/$TARGETARCH python:3.9-slim-bookworm LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/redis/6/Dockerfile b/redis/6/Dockerfile index 6e253e4..0f90b6f 100644 --- a/redis/6/Dockerfile +++ b/redis/6/Dockerfile @@ -1,7 +1,7 @@ # ---------------------------------- # Environment: redis # ---------------------------------- -FROM --platform=$TARGETOS/$TARGETARCH redis:6-bullseye +FROM --platform=$TARGETOS/$TARGETARCH redis:6-bookworm LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/redis/7/Dockerfile b/redis/7/Dockerfile index 6a95b67..def8d7e 100644 --- a/redis/7/Dockerfile +++ b/redis/7/Dockerfile @@ -1,7 +1,7 @@ # ---------------------------------- # Environment: redis # ---------------------------------- -FROM --platform=$TARGETOS/$TARGETARCH redis:7-bullseye +FROM --platform=$TARGETOS/$TARGETARCH redis:7-bookworm LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/steamcmd/debian/Dockerfile b/steamcmd/debian/Dockerfile index 0bcf8c9..046047f 100644 --- a/steamcmd/debian/Dockerfile +++ b/steamcmd/debian/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye-slim +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io" @@ -10,7 +10,7 @@ ENV DEBIAN_FRONTEND=noninteractive RUN dpkg --add-architecture i386 \ && apt-get update \ && apt-get upgrade -y \ - && apt-get install -y tar curl gcc g++ lib32gcc-s1 libgcc1 libcurl4-gnutls-dev:i386 libssl1.1:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 libsdl2-2.0-0 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat tzdata numactl xvfb tini \ + && apt-get install -y tar curl gcc g++ lib32gcc-s1 libgcc-12-dev libgcc-11-dev libcurl4-gnutls-dev:i386 libssl-dev:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 libsdl2-2.0-0 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat tzdata numactl xvfb tini \ && useradd -m -d /home/container container ## install rcon diff --git a/steamcmd/dotnet/Dockerfile b/steamcmd/dotnet/Dockerfile index e90ae75..fa8525e 100644 --- a/steamcmd/dotnet/Dockerfile +++ b/steamcmd/dotnet/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye-slim +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim LABEL author="Torsten Widmann" maintainer="info@goover.de" @@ -7,14 +7,14 @@ ENV DEBIAN_FRONTEND noninteractive RUN dpkg --add-architecture i386 \ && apt update \ && apt upgrade -y \ - && apt install -y tar curl gcc g++ lib32gcc-s1 libgcc1 libcurl4-gnutls-dev:i386 libssl1.1:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat tzdata \ + && apt install -y tar curl gcc g++ lib32gcc-s1 libgcc1 libcurl4-gnutls-dev:i386 libssl-dev:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat tzdata \ && apt install -y libstdc++6 libstdc++6:i386 libc6-amd64 libc6:i386 psmisc libgdiplus libcurl4 libfontconfig1 libpangocairo-1.0-0 libnss3 libgconf-2-4 libxi6 libxcursor1 libxss1 libxcomposite1 libasound2 libxdamage1 libxtst6 libatk1.0-0 libxrandr2 libcurl4 xvfb mesa-utils git \ && apt install -y python3 python3-dev python3-pip apt-transport-https wget iproute2 sqlite3 xvfb tini \ && useradd -d /home/container -m container RUN apt update -y \ && apt upgrade -y \ - && wget https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ + && wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ && dpkg -i packages-microsoft-prod.deb \ && rm packages-microsoft-prod.deb \ && apt update -y \ diff --git a/steamcmd/proton/Dockerfile b/steamcmd/proton/Dockerfile index 1c8812a..0f08e0c 100644 --- a/steamcmd/proton/Dockerfile +++ b/steamcmd/proton/Dockerfile @@ -1,7 +1,7 @@ # --------------------------------------------- # Steam Proton image # --------------------------------------------- -FROM debian:bullseye-slim +FROM debian:bookworm-slim LABEL author="Torsten Widmann" maintainer="info@goover.de" diff --git a/steamcmd/proton_8/Dockerfile b/steamcmd/proton_8/Dockerfile index 388ff95..1eec3e2 100644 --- a/steamcmd/proton_8/Dockerfile +++ b/steamcmd/proton_8/Dockerfile @@ -1,7 +1,7 @@ # --------------------------------------------- # Steam Proton image # --------------------------------------------- -FROM debian:bullseye-slim +FROM debian:bookworm-slim LABEL author="Torsten Widmann" maintainer="info@goover.de" diff --git a/voice/teaspeak/Dockerfile b/voice/teaspeak/Dockerfile index 26a4154..068c1ca 100644 --- a/voice/teaspeak/Dockerfile +++ b/voice/teaspeak/Dockerfile @@ -20,7 +20,7 @@ # SOFTWARE. # -FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye-slim +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim LABEL author="Torsten Widmann" maintainer="info@goover.de" diff --git a/wine/devel/Dockerfile b/wine/devel/Dockerfile index f31e43a..b262532 100644 --- a/wine/devel/Dockerfile +++ b/wine/devel/Dockerfile @@ -19,7 +19,7 @@ RUN cd /tmp/ \ # Install wine and with recommends RUN mkdir -pm755 /etc/apt/keyrings RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key -RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bullseye/winehq-bullseye.sources +RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources RUN apt update RUN apt install --install-recommends winehq-devel cabextract wine-binfmt -y diff --git a/wine/latest/Dockerfile b/wine/latest/Dockerfile index b1b0a6d..1dbdb6e 100644 --- a/wine/latest/Dockerfile +++ b/wine/latest/Dockerfile @@ -19,7 +19,7 @@ RUN cd /tmp/ \ # Install wine and with recommends RUN mkdir -pm755 /etc/apt/keyrings RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key -RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bullseye/winehq-bullseye.sources +RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources RUN apt update RUN apt install --install-recommends winehq-stable cabextract wine-binfmt -y diff --git a/wine/staging/Dockerfile b/wine/staging/Dockerfile index 0530ac0..25d12cd 100644 --- a/wine/staging/Dockerfile +++ b/wine/staging/Dockerfile @@ -19,7 +19,7 @@ RUN cd /tmp/ \ # Install wine and with recommends RUN mkdir -pm755 /etc/apt/keyrings RUN wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key -RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bullseye/winehq-bullseye.sources +RUN wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/debian/dists/bookworm/winehq-bookworm.sources RUN apt update RUN apt install --install-recommends winehq-staging cabextract wine-binfmt -y From 7def6d17d91ca322793f9daa05215bde269c0e16 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Tue, 2 Apr 2024 16:05:42 +0200 Subject: [PATCH 19/74] use mongo 7 for jammy --- bot/bastion/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/bastion/Dockerfile b/bot/bastion/Dockerfile index a3fd8a9..b1a7a6f 100644 --- a/bot/bastion/Dockerfile +++ b/bot/bastion/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH mongo:6-jammy +FROM --platform=$TARGETOS/$TARGETARCH mongo:7-jammy LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" From 82df2cdb731e3e237e860b43b7037f3178973eab Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Tue, 2 Apr 2024 16:06:38 +0200 Subject: [PATCH 20/74] more needed packages for Uptime Kuma --- apps/uptimekuma/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/uptimekuma/Dockerfile b/apps/uptimekuma/Dockerfile index f3325cf..2fd2a39 100644 --- a/apps/uptimekuma/Dockerfile +++ b/apps/uptimekuma/Dockerfile @@ -23,6 +23,9 @@ RUN apk add --no-cache \ iproute2 \ iputils-ping \ libtool \ + musl \ + musl-utils \ + musl-locales \ python3 \ python3-dev \ py3-pip \ From 3386391d85ad53bbe6a261c5a96a8dce2158d75b Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Wed, 3 Apr 2024 18:15:25 +0200 Subject: [PATCH 21/74] Update wine mono version to 9 --- wine/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wine/entrypoint.sh b/wine/entrypoint.sh index 89a7ec0..0b524c1 100644 --- a/wine/entrypoint.sh +++ b/wine/entrypoint.sh @@ -70,7 +70,7 @@ if [[ $WINETRICKS_RUN =~ mono ]]; then WINETRICKS_RUN=${WINETRICKS_RUN/mono} if [ ! -f "$WINEPREFIX/mono.msi" ]; then - wget -q -O $WINEPREFIX/mono.msi https://dl.winehq.org/wine/wine-mono/8.0.0/wine-mono-8.0.0-x86.msi + wget -q -O $WINEPREFIX/mono.msi https://dl.winehq.org/wine/wine-mono/9.0.0/wine-mono-9.0.0-x86.msi fi wine msiexec /i $WINEPREFIX/mono.msi /qn /quiet /norestart /log $WINEPREFIX/mono_install.log From d7f798c3839ec7aaadbf17eab4ba3e459230e809 Mon Sep 17 00:00:00 2001 From: Quinten Date: Thu, 4 Apr 2024 08:56:29 +0200 Subject: [PATCH 22/74] fix the builds --- games/altv/Dockerfile | 2 +- games/source/Dockerfile | 2 +- oses/debian/Dockerfile | 2 +- steamcmd/debian/Dockerfile | 2 +- steamcmd/dotnet/Dockerfile | 2 +- steamcmd/entrypoint.sh | 2 ++ steamcmd/proton/Dockerfile | 4 ++-- steamcmd/proton_8/Dockerfile | 4 ++-- 8 files changed, 11 insertions(+), 9 deletions(-) diff --git a/games/altv/Dockerfile b/games/altv/Dockerfile index bd257b1..214ff53 100644 --- a/games/altv/Dockerfile +++ b/games/altv/Dockerfile @@ -11,7 +11,7 @@ RUN useradd -m -d /home/container -s /bin/bash container RUN apt update -y \ && apt upgrade -y \ - && apt install -y g++ gcc libgcc-s1 lib32gcc-s1 gdb libstdc++6 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 \ + && apt install -y g++ gcc libgcc-s1 lib32gcc-s1 gdb libstdc++6 libc6 git wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools netcat-traditional telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 \ libfontconfig1 libicu72 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev libduktape207 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates tzdata \ python3 dnsutils build-essential coreutils jq pcregrep tini diff --git a/games/source/Dockerfile b/games/source/Dockerfile index 0bc719c..7c19439 100644 --- a/games/source/Dockerfile +++ b/games/source/Dockerfile @@ -32,7 +32,7 @@ ENV DEBIAN_FRONTEND=noninteractive RUN dpkg --add-architecture i386 \ && apt update \ && apt upgrade -y \ - && apt install -y tar curl gcc g++ lib32gcc-s1 libgcc-11-dev libgcc-12-dev libcurl4-gnutls-dev:i386 libssl-dev:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat tzdata numactl tini \ + && apt install -y tar curl gcc g++ lib32gcc-s1 libgcc-11-dev libgcc-12-dev libcurl4-gnutls-dev:i386 libssl-dev:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat-traditional tzdata numactl tini \ && useradd -m -d /home/container container ## install rcon diff --git a/oses/debian/Dockerfile b/oses/debian/Dockerfile index ec572cf..3da29fa 100644 --- a/oses/debian/Dockerfile +++ b/oses/debian/Dockerfile @@ -18,7 +18,7 @@ RUN apt update \ && apt upgrade -y ## Install dependencies -RUN apt install -y gcc g++ libgcc-12-dev libc++-dev 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 \ +RUN apt install -y gcc g++ libgcc-12-dev libc++-dev gdb libc6 git wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools netcat-traditional telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 \ libfontconfig1 libicu72 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev-compat libduktape207 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates \ liblua5.3-0 libz3-dev libzadc4 rapidjson-dev tzdata libevent-dev libzip4 libprotobuf32 libfluidsynth3 procps libstdc++6 tini diff --git a/steamcmd/debian/Dockerfile b/steamcmd/debian/Dockerfile index 046047f..1a95989 100644 --- a/steamcmd/debian/Dockerfile +++ b/steamcmd/debian/Dockerfile @@ -10,7 +10,7 @@ ENV DEBIAN_FRONTEND=noninteractive RUN dpkg --add-architecture i386 \ && apt-get update \ && apt-get upgrade -y \ - && apt-get install -y tar curl gcc g++ lib32gcc-s1 libgcc-12-dev libgcc-11-dev libcurl4-gnutls-dev:i386 libssl-dev:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 libsdl2-2.0-0 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat tzdata numactl xvfb tini \ + && apt-get install -y tar curl gcc g++ lib32gcc-s1 libgcc-12-dev libgcc-11-dev libcurl4-gnutls-dev:i386 libssl-dev:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 libsdl2-2.0-0 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat-traditional tzdata numactl xvfb tini \ && useradd -m -d /home/container container ## install rcon diff --git a/steamcmd/dotnet/Dockerfile b/steamcmd/dotnet/Dockerfile index 8722127..52e26e6 100644 --- a/steamcmd/dotnet/Dockerfile +++ b/steamcmd/dotnet/Dockerfile @@ -7,7 +7,7 @@ ENV DEBIAN_FRONTEND noninteractive RUN dpkg --add-architecture i386 \ && apt update \ && apt upgrade -y \ - && apt install -y tar curl gcc g++ lib32gcc-s1 libgcc1 libcurl4-gnutls-dev:i386 libssl-dev:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat tzdata \ + && apt install -y tar curl gcc g++ lib32gcc-s1 libgcc1 libcurl4-gnutls-dev:i386 libssl-dev:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat-traditional tzdata \ && apt install -y libstdc++6 libstdc++6:i386 libc6-amd64 libc6:i386 psmisc libgdiplus libcurl4 libfontconfig1 libpangocairo-1.0-0 libnss3 libgconf-2-4 libxi6 libxcursor1 libxss1 libxcomposite1 libasound2 libxdamage1 libxtst6 libatk1.0-0 libxrandr2 libcurl4 xvfb mesa-utils git \ && apt install -y python3 python3-dev python3-pip apt-transport-https wget iproute2 sqlite3 xvfb tini \ && useradd -d /home/container -m container diff --git a/steamcmd/entrypoint.sh b/steamcmd/entrypoint.sh index 5fa4f10..f700d32 100644 --- a/steamcmd/entrypoint.sh +++ b/steamcmd/entrypoint.sh @@ -39,6 +39,8 @@ if [ -f "/usr/local/bin/proton" ]; then mkdir -p /home/container/.steam/steam/steamapps/compatdata/${SRCDS_APPID} export STEAM_COMPAT_CLIENT_INSTALL_PATH="/home/container/.steam/steam" export STEAM_COMPAT_DATA_PATH="/home/container/.steam/steam/steamapps/compatdata/${SRCDS_APPID}" + # Fix for pipx with protontricks + export PATH=$PATH:/root/.local/bin else echo -e "----------------------------------------------------------------------------------" echo -e "WARNING!!! Proton needs variable SRCDS_APPID, else it will not work. Please add it" diff --git a/steamcmd/proton/Dockerfile b/steamcmd/proton/Dockerfile index 0f08e0c..309391e 100644 --- a/steamcmd/proton/Dockerfile +++ b/steamcmd/proton/Dockerfile @@ -9,7 +9,7 @@ LABEL author="Torsten Widmann" maintainer="info@goover.de" RUN dpkg --add-architecture i386 RUN apt update RUN apt install -y --no-install-recommends wget iproute2 gnupg2 software-properties-common libntlm0 winbind xvfb xauth libncurses5-dev:i386 libncurses6 dbus libgdiplus lib32gcc-s1 -RUN apt install -y alsa-tools libpulse0 pulseaudio libpulse-dev libasound2 libao-common gnutls-bin gnupg locales numactl cabextract curl python3 python3-pip python3-setuptools tini file +RUN apt install -y alsa-tools libpulse0 pulseaudio libpulse-dev libasound2 libao-common gnutls-bin gnupg locales numactl cabextract curl python3 python3-pip python3-setuptools tini file pipx RUN useradd -d /home/container -m container # Download Proton GE @@ -24,7 +24,7 @@ RUN rm /var/lib/dbus/machine-id RUN dbus-uuidgen --ensure #Setup Protontricks -RUN python3 -m pip install protontricks +RUN pipx install protontricks # Set up Winetricks RUN wget -q -O /usr/sbin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \ diff --git a/steamcmd/proton_8/Dockerfile b/steamcmd/proton_8/Dockerfile index 1eec3e2..a7a74bd 100644 --- a/steamcmd/proton_8/Dockerfile +++ b/steamcmd/proton_8/Dockerfile @@ -9,7 +9,7 @@ LABEL author="Torsten Widmann" maintainer="info@goover.de" RUN dpkg --add-architecture i386 RUN apt update RUN apt install -y --no-install-recommends wget iproute2 gnupg2 software-properties-common libntlm0 winbind xvfb xauth libncurses5-dev:i386 libncurses6 dbus libgdiplus lib32gcc-s1 -RUN apt install -y alsa-tools libpulse0 pulseaudio libpulse-dev libasound2 libao-common gnutls-bin gnupg locales numactl cabextract curl python3 python3-pip python3-setuptools tini file +RUN apt install -y alsa-tools libpulse0 pulseaudio libpulse-dev libasound2 libao-common gnutls-bin gnupg locales numactl cabextract curl python3 python3-pip python3-setuptools tini file pipx RUN useradd -d /home/container -m container # Download Proton GE @@ -24,7 +24,7 @@ RUN rm /var/lib/dbus/machine-id RUN dbus-uuidgen --ensure #Setup Protontricks -RUN python3 -m pip install protontricks +RUN pipx install protontricks # Set up Winetricks RUN wget -q -O /usr/sbin/winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks \ From b442252652b72f3560218ab1288f738c4d2671d7 Mon Sep 17 00:00:00 2001 From: Quinten Date: Thu, 4 Apr 2024 09:03:05 +0200 Subject: [PATCH 23/74] fix sinusbot --- bot/sinusbot/Dockerfile | 4 ++-- bot/sinusbot/entrypoint.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bot/sinusbot/Dockerfile b/bot/sinusbot/Dockerfile index 76f8b64..15bf7dd 100644 --- a/bot/sinusbot/Dockerfile +++ b/bot/sinusbot/Dockerfile @@ -10,8 +10,8 @@ RUN apt update \ && apt upgrade -y \ && apt install -y ca-certificates less locales pulseaudio python3 python3-pip sudo x11vnc x11-xkb-utils xvfb iproute2 ffmpeg curl liblcms2-2 libatomic1 libxcb-xinerama0 \ fontconfig libasound2 libegl1-mesa libglib2.0-0 libnss3 libpci3 libpulse0 libxcursor1 libxslt1.1 libx11-xcb1 libxkbcommon0 bzip2 libxss1 libxcomposite1 libevent-2.1-7 \ - libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxkbcommon-x11-0 tini \ - && python3 -m pip install requests \ + libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxkbcommon-x11-0 tini pipx \ + && pipx install requests \ && useradd -m -d /home/container container #RUN python3 -m pip install requests diff --git a/bot/sinusbot/entrypoint.sh b/bot/sinusbot/entrypoint.sh index d0aea75..f43d05b 100644 --- a/bot/sinusbot/entrypoint.sh +++ b/bot/sinusbot/entrypoint.sh @@ -5,6 +5,9 @@ cd /home/container INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}') export INTERNAL_IP +# PipX PATH fix +export PATH=$PATH:/root/.local/bin + # Replace Startup Variables MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` echo ":/home/container$ ${MODIFIED_STARTUP}" From dc5dbddbcf72c6cdb4ca5e388503181549127ff8 Mon Sep 17 00:00:00 2001 From: Quinten Date: Thu, 4 Apr 2024 09:08:46 +0200 Subject: [PATCH 24/74] remove dotnet 5 from alt:V --- games/altv/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/altv/Dockerfile b/games/altv/Dockerfile index 214ff53..c7ad923 100644 --- a/games/altv/Dockerfile +++ b/games/altv/Dockerfile @@ -18,7 +18,7 @@ RUN apt update -y \ RUN wget https://packages.microsoft.com/config/debian/12/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 dotnet-sdk-7.0 libgdiplus + && apt install -y dotnet-sdk-6.0 dotnet-sdk-7.0 libgdiplus RUN update-locale lang=en_US.UTF-8 \ && dpkg-reconfigure --frontend noninteractive locales From 315ee7cd147d55dc5268eb8cd9980a05d53e8558 Mon Sep 17 00:00:00 2001 From: Quinten Date: Thu, 4 Apr 2024 09:21:48 +0200 Subject: [PATCH 25/74] request is not more needed for sinusbot --- bot/sinusbot/Dockerfile | 3 +-- bot/sinusbot/entrypoint.sh | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bot/sinusbot/Dockerfile b/bot/sinusbot/Dockerfile index 15bf7dd..bba2c0c 100644 --- a/bot/sinusbot/Dockerfile +++ b/bot/sinusbot/Dockerfile @@ -10,8 +10,7 @@ RUN apt update \ && apt upgrade -y \ && apt install -y ca-certificates less locales pulseaudio python3 python3-pip sudo x11vnc x11-xkb-utils xvfb iproute2 ffmpeg curl liblcms2-2 libatomic1 libxcb-xinerama0 \ fontconfig libasound2 libegl1-mesa libglib2.0-0 libnss3 libpci3 libpulse0 libxcursor1 libxslt1.1 libx11-xcb1 libxkbcommon0 bzip2 libxss1 libxcomposite1 libevent-2.1-7 \ - libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxkbcommon-x11-0 tini pipx \ - && pipx install requests \ + libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xkb1 libxkbcommon-x11-0 tini \ && useradd -m -d /home/container container #RUN python3 -m pip install requests diff --git a/bot/sinusbot/entrypoint.sh b/bot/sinusbot/entrypoint.sh index f43d05b..057d59a 100644 --- a/bot/sinusbot/entrypoint.sh +++ b/bot/sinusbot/entrypoint.sh @@ -5,8 +5,6 @@ cd /home/container INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}') export INTERNAL_IP -# PipX PATH fix -export PATH=$PATH:/root/.local/bin # Replace Startup Variables MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` From 6e7cd78e7cb7b5685b44a5773c0f99b846844a16 Mon Sep 17 00:00:00 2001 From: Quinten Date: Thu, 4 Apr 2024 09:25:21 +0200 Subject: [PATCH 26/74] install back dotnet 5 alt:v --- games/altv/Dockerfile | 15 ++++++++++----- games/altv/entrypoint.sh | 2 ++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/games/altv/Dockerfile b/games/altv/Dockerfile index c7ad923..d035f76 100644 --- a/games/altv/Dockerfile +++ b/games/altv/Dockerfile @@ -12,13 +12,18 @@ RUN useradd -m -d /home/container -s /bin/bash container RUN apt update -y \ && apt upgrade -y \ && apt install -y g++ gcc libgcc-s1 lib32gcc-s1 gdb libstdc++6 libc6 git wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools netcat-traditional telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 \ - libfontconfig1 libicu72 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev libduktape207 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates tzdata \ + libfontconfig1 libicu72 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev libduktape207 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates tzdata libgdiplus\ python3 dnsutils build-essential coreutils jq pcregrep tini -RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ - && dpkg -i packages-microsoft-prod.deb \ - && apt update -y \ - && apt install -y dotnet-sdk-6.0 dotnet-sdk-7.0 libgdiplus +RUN wget https://dot.net/v1/dotnet-install.sh \ + && D_V_5="$(curl -sSL https://dotnet.microsoft.com/en-us/download/dotnet/5.0 | grep -i '

SDK 5.*.*

' | head -1 | awk -F\" '{print $3}' | awk '{print $2;}' | sed 's/<\/h3>//g')" \ + && D_V_6="$(curl -sSL https://dotnet.microsoft.com/en-us/download/dotnet/6.0 | grep -i '

SDK 6.*.*

' | head -1 | awk -F\" '{print $3}' | awk '{print $2;}' | sed 's/<\/h3>//g')" \ + && D_V_7="$(curl -sSL https://dotnet.microsoft.com/en-us/download/dotnet/7.0 | grep -i '

SDK 7.*.*

' | head -1 | awk -F\" '{print $3}' | awk '{print $2;}' | sed 's/<\/h3>//g')" \ + && chmod +x dotnet-install.sh \ + && ./dotnet-install.sh -i /usr/share -v $D_V_5 \ + && ./dotnet-install.sh -i /usr/share -v $D_V_6 \ + && ./dotnet-install.sh -i /usr/share -v $D_V_7 \ + && ln -s /usr/share/dotnet /usr/bin/dotnet RUN update-locale lang=en_US.UTF-8 \ && dpkg-reconfigure --frontend noninteractive locales diff --git a/games/altv/entrypoint.sh b/games/altv/entrypoint.sh index 11acd70..6e7a50a 100644 --- a/games/altv/entrypoint.sh +++ b/games/altv/entrypoint.sh @@ -5,6 +5,8 @@ cd /home/container INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}') export INTERNAL_IP +export DOTNET_ROOT=/usr/share/ + # Replace Startup Variables MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') echo -e ":/home/container$ ${MODIFIED_STARTUP}" From bedebb972ed9cb136ac83d3860e4af2c82db5677 Mon Sep 17 00:00:00 2001 From: Quinten Date: Thu, 4 Apr 2024 09:29:00 +0200 Subject: [PATCH 27/74] keep alt:v like it is, dotnet 5 is EOL --- games/altv/Dockerfile | 13 ++++--------- games/altv/entrypoint.sh | 2 -- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/games/altv/Dockerfile b/games/altv/Dockerfile index d035f76..ae54973 100644 --- a/games/altv/Dockerfile +++ b/games/altv/Dockerfile @@ -15,15 +15,10 @@ RUN apt update -y \ libfontconfig1 libicu72 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev libduktape207 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates tzdata libgdiplus\ python3 dnsutils build-essential coreutils jq pcregrep tini -RUN wget https://dot.net/v1/dotnet-install.sh \ - && D_V_5="$(curl -sSL https://dotnet.microsoft.com/en-us/download/dotnet/5.0 | grep -i '

SDK 5.*.*

' | head -1 | awk -F\" '{print $3}' | awk '{print $2;}' | sed 's/<\/h3>//g')" \ - && D_V_6="$(curl -sSL https://dotnet.microsoft.com/en-us/download/dotnet/6.0 | grep -i '

SDK 6.*.*

' | head -1 | awk -F\" '{print $3}' | awk '{print $2;}' | sed 's/<\/h3>//g')" \ - && D_V_7="$(curl -sSL https://dotnet.microsoft.com/en-us/download/dotnet/7.0 | grep -i '

SDK 7.*.*

' | head -1 | awk -F\" '{print $3}' | awk '{print $2;}' | sed 's/<\/h3>//g')" \ - && chmod +x dotnet-install.sh \ - && ./dotnet-install.sh -i /usr/share -v $D_V_5 \ - && ./dotnet-install.sh -i /usr/share -v $D_V_6 \ - && ./dotnet-install.sh -i /usr/share -v $D_V_7 \ - && ln -s /usr/share/dotnet /usr/bin/dotnet +RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ + && dpkg -i packages-microsoft-prod.deb \ + && apt update -y \ + && apt install -y dotnet-sdk-6.0 dotnet-sdk-7.0 libgdiplus RUN update-locale lang=en_US.UTF-8 \ && dpkg-reconfigure --frontend noninteractive locales diff --git a/games/altv/entrypoint.sh b/games/altv/entrypoint.sh index 6e7a50a..11acd70 100644 --- a/games/altv/entrypoint.sh +++ b/games/altv/entrypoint.sh @@ -5,8 +5,6 @@ cd /home/container INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}') export INTERNAL_IP -export DOTNET_ROOT=/usr/share/ - # Replace Startup Variables MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') echo -e ":/home/container$ ${MODIFIED_STARTUP}" From c80ad9aa0a753643e1a22e2cc3aeac3f3fd37b7c Mon Sep 17 00:00:00 2001 From: Poseidon <62171904+Poseidon281@users.noreply.github.com> Date: Thu, 4 Apr 2024 11:57:50 +0200 Subject: [PATCH 28/74] Update Dockerfile (#234) * Update Dockerfile There was a mistake made here. This is the 3.12 dockerfile but you are using python 3.7. This should fix that * also fix 3.7 --------- Co-authored-by: Quinten <67589015+QuintenQVD0@users.noreply.github.com> --- python/3.12/Dockerfile | 2 +- python/3.7/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/3.12/Dockerfile b/python/3.12/Dockerfile index 3d426b9..c695449 100644 --- a/python/3.12/Dockerfile +++ b/python/3.12/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH python:3.7-slim-bookworm +FROM --platform=$TARGETOS/$TARGETARCH python:3.12-slim-bookworm LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/python/3.7/Dockerfile b/python/3.7/Dockerfile index 76c9dd8..3d426b9 100644 --- a/python/3.7/Dockerfile +++ b/python/3.7/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH python:3.7-slim +FROM --platform=$TARGETOS/$TARGETARCH python:3.7-slim-bookworm LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" From c69e507b54a4ad4d5aceac1498974b213d1a7585 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Thu, 4 Apr 2024 12:26:34 +0200 Subject: [PATCH 29/74] debian: Temp fix for libicu66.1 for RAGE-MP --- oses/debian/Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/oses/debian/Dockerfile b/oses/debian/Dockerfile index 3da29fa..5144eac 100644 --- a/oses/debian/Dockerfile +++ b/oses/debian/Dockerfile @@ -19,9 +19,16 @@ RUN apt update \ ## Install dependencies RUN apt install -y gcc g++ libgcc-12-dev libc++-dev gdb libc6 git wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools netcat-traditional telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 \ - libfontconfig1 libicu72 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev-compat libduktape207 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates \ + libfontconfig1 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev-compat libduktape207 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates \ liblua5.3-0 libz3-dev libzadc4 rapidjson-dev tzdata libevent-dev libzip4 libprotobuf32 libfluidsynth3 procps libstdc++6 tini +# Temp fix for libicu66.1 for RAGE-MP +RUN if [ "$(uname -m)" = "x86_64" ]; then \ + wget http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu66_66.1-2ubuntu2.1_amd64.deb && \ + dpkg -i libicu66_66.1-2ubuntu2.1_amd64.deb && \ + rm libicu66_66.1-2ubuntu2.1_amd64.deb; \ + fi + ## Configure locale RUN update-locale lang=en_US.UTF-8 \ && dpkg-reconfigure --frontend noninteractive locales From dc3100203ad9998843de655aaf970d7787f257f8 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Thu, 4 Apr 2024 14:17:06 +0200 Subject: [PATCH 30/74] yea libssl1.1 --- oses/debian/Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/oses/debian/Dockerfile b/oses/debian/Dockerfile index 5144eac..d7074dd 100644 --- a/oses/debian/Dockerfile +++ b/oses/debian/Dockerfile @@ -22,11 +22,17 @@ RUN apt install -y gcc g++ libgcc-12-dev libc++-dev gdb libc6 git wget libfontconfig1 icu-devtools libunwind8 libssl-dev sqlite3 libsqlite3-dev libmariadb-dev-compat libduktape207 locales ffmpeg gnupg2 apt-transport-https software-properties-common ca-certificates \ liblua5.3-0 libz3-dev libzadc4 rapidjson-dev tzdata libevent-dev libzip4 libprotobuf32 libfluidsynth3 procps libstdc++6 tini -# Temp fix for libicu66.1 for RAGE-MP +# Temp fix for libicu66.1 for RAGE-MP and libssl1.1 for fivem and many more RUN if [ "$(uname -m)" = "x86_64" ]; then \ wget http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu66_66.1-2ubuntu2.1_amd64.deb && \ + wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \ dpkg -i libicu66_66.1-2ubuntu2.1_amd64.deb && \ - rm libicu66_66.1-2ubuntu2.1_amd64.deb; \ + dkpk -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb + rm libicu66_66.1-2ubuntu2.1_amd64.deb libssl1.1_1.1.0g-2ubuntu4_amd64.deb; \ + else \ + wget http://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_arm64.deb && \ + dpkg -i libssl1.1_1.1.1f-1ubuntu2_arm64.deb && \ + rm libssl1.1_1.1.1f-1ubuntu2_arm64.deb; \ fi ## Configure locale From d8ca82f3e327ea59d3ca1c4969676e274a123956 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Thu, 4 Apr 2024 14:22:43 +0200 Subject: [PATCH 31/74] Fix arm64 builds? --- oses/debian/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oses/debian/Dockerfile b/oses/debian/Dockerfile index d7074dd..cb21230 100644 --- a/oses/debian/Dockerfile +++ b/oses/debian/Dockerfile @@ -29,7 +29,9 @@ RUN if [ "$(uname -m)" = "x86_64" ]; then \ dpkg -i libicu66_66.1-2ubuntu2.1_amd64.deb && \ dkpk -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb rm libicu66_66.1-2ubuntu2.1_amd64.deb libssl1.1_1.1.0g-2ubuntu4_amd64.deb; \ - else \ + fi +# ARM64 +RUN if [ ! "$(uname -m)" = "x86_64" ]; then \ wget http://ports.ubuntu.com/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_arm64.deb && \ dpkg -i libssl1.1_1.1.1f-1ubuntu2_arm64.deb && \ rm libssl1.1_1.1.1f-1ubuntu2_arm64.deb; \ From d7abc651712127cd9563b06c9b93a55bd7d5abb8 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Thu, 4 Apr 2024 14:28:01 +0200 Subject: [PATCH 32/74] now you will build, silly me --- oses/debian/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oses/debian/Dockerfile b/oses/debian/Dockerfile index cb21230..acdf0a7 100644 --- a/oses/debian/Dockerfile +++ b/oses/debian/Dockerfile @@ -27,7 +27,7 @@ RUN if [ "$(uname -m)" = "x86_64" ]; then \ wget http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu66_66.1-2ubuntu2.1_amd64.deb && \ wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \ dpkg -i libicu66_66.1-2ubuntu2.1_amd64.deb && \ - dkpk -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb + dkpk -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \ rm libicu66_66.1-2ubuntu2.1_amd64.deb libssl1.1_1.1.0g-2ubuntu4_amd64.deb; \ fi # ARM64 From ceb90bb701be2d1fca5bf6804cd979ab098da112 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Thu, 4 Apr 2024 14:31:15 +0200 Subject: [PATCH 33/74] last time or I just close you --- oses/debian/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oses/debian/Dockerfile b/oses/debian/Dockerfile index acdf0a7..39eb430 100644 --- a/oses/debian/Dockerfile +++ b/oses/debian/Dockerfile @@ -27,7 +27,7 @@ RUN if [ "$(uname -m)" = "x86_64" ]; then \ wget http://archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu66_66.1-2ubuntu2.1_amd64.deb && \ wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \ dpkg -i libicu66_66.1-2ubuntu2.1_amd64.deb && \ - dkpk -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \ + dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \ rm libicu66_66.1-2ubuntu2.1_amd64.deb libssl1.1_1.1.0g-2ubuntu4_amd64.deb; \ fi # ARM64 From 0d8a7c735b724e37ea4a4aab3b11f68c15e62ca9 Mon Sep 17 00:00:00 2001 From: Stigstille <134349048+Stigstille@users.noreply.github.com> Date: Thu, 4 Apr 2024 13:56:23 -0400 Subject: [PATCH 34/74] Add zip/unzip to java (#235) * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile * Update Dockerfile --- java/11/Dockerfile | 6 ++++-- java/11j9/Dockerfile | 4 +++- java/16/Dockerfile | 4 +++- java/16j9/Dockerfile | 4 +++- java/17/Dockerfile | 4 +++- java/19/Dockerfile | 4 +++- java/21/Dockerfile | 4 +++- java/8/Dockerfile | 4 +++- java/8j9/Dockerfile | 4 +++- 9 files changed, 28 insertions(+), 10 deletions(-) diff --git a/java/11/Dockerfile b/java/11/Dockerfile index 9a69ba2..b78d582 100644 --- a/java/11/Dockerfile +++ b/java/11/Dockerfile @@ -18,7 +18,9 @@ RUN apt update -y \ tzdata \ iproute2 \ libfreetype6 \ - tini + tini \ + zip \ + unzip ## Setup user and working directory @@ -32,4 +34,4 @@ STOPSIGNAL SIGINT COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] -CMD ["/entrypoint.sh"] \ No newline at end of file +CMD ["/entrypoint.sh"] diff --git a/java/11j9/Dockerfile b/java/11j9/Dockerfile index d94a963..6098eb9 100644 --- a/java/11j9/Dockerfile +++ b/java/11j9/Dockerfile @@ -15,7 +15,9 @@ RUN apt update -y \ tzdata \ iproute2 \ libfreetype6 \ - tini + tini \ + zip \ + unzip ## Setup user and working directory RUN useradd -m -d /home/container -s /bin/bash container diff --git a/java/16/Dockerfile b/java/16/Dockerfile index 8be923f..139721e 100644 --- a/java/16/Dockerfile +++ b/java/16/Dockerfile @@ -18,7 +18,9 @@ RUN apt update -y \ tzdata \ iproute2 \ libfreetype6 \ - tini + tini \ + zip \ + unzip ## Setup user and working directory RUN useradd -m -d /home/container -s /bin/bash container diff --git a/java/16j9/Dockerfile b/java/16j9/Dockerfile index 580f883..e26b6d8 100644 --- a/java/16j9/Dockerfile +++ b/java/16j9/Dockerfile @@ -15,7 +15,9 @@ RUN apt update -y \ tzdata \ iproute2 \ libfreetype6 \ - tini + tini \ + zip \ + unzip ## Setup user and working directory RUN useradd -m -d /home/container -s /bin/bash container diff --git a/java/17/Dockerfile b/java/17/Dockerfile index f9406e2..baa9736 100644 --- a/java/17/Dockerfile +++ b/java/17/Dockerfile @@ -18,7 +18,9 @@ RUN apt update -y \ tzdata \ iproute2 \ libfreetype6 \ - tini + tini \ + zip \ + unzip ## Setup user and working directory RUN useradd -m -d /home/container -s /bin/bash container diff --git a/java/19/Dockerfile b/java/19/Dockerfile index ef9987a..9bb6016 100644 --- a/java/19/Dockerfile +++ b/java/19/Dockerfile @@ -18,7 +18,9 @@ RUN apt update -y \ tzdata \ iproute2 \ libfreetype6 \ - tini + tini \ + zip \ + unzip ## Setup user and working directory RUN useradd -m -d /home/container -s /bin/bash container diff --git a/java/21/Dockerfile b/java/21/Dockerfile index b690703..a0e4f26 100644 --- a/java/21/Dockerfile +++ b/java/21/Dockerfile @@ -18,7 +18,9 @@ RUN apt update -y \ tzdata \ iproute2 \ libfreetype6 \ - tini + tini \ + zip \ + unzip ## Setup user and working directory RUN useradd -m -d /home/container -s /bin/bash container diff --git a/java/8/Dockerfile b/java/8/Dockerfile index f4ac7d1..27eae9a 100644 --- a/java/8/Dockerfile +++ b/java/8/Dockerfile @@ -18,7 +18,9 @@ RUN apt update -y \ tzdata \ iproute2 \ libfreetype6 \ - tini + tini \ + zip \ + unzip ## Setup user and working directory RUN useradd -m -d /home/container -s /bin/bash container diff --git a/java/8j9/Dockerfile b/java/8j9/Dockerfile index 58ab2db..5843a20 100644 --- a/java/8j9/Dockerfile +++ b/java/8j9/Dockerfile @@ -15,7 +15,9 @@ RUN apt update -y \ tzdata \ iproute2 \ libfreetype6 \ - tini + tini \ + zip \ + unzip ## Setup user and working directory RUN useradd -m -d /home/container -s /bin/bash container From 641796f16455439b38bdf65f0af3bde8c7180ca9 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Fri, 5 Apr 2024 22:30:44 +0200 Subject: [PATCH 35/74] libssl1.1 on source and steamcmd:debian --- games/source/Dockerfile | 7 +++++++ steamcmd/debian/Dockerfile | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/games/source/Dockerfile b/games/source/Dockerfile index 7c19439..164025c 100644 --- a/games/source/Dockerfile +++ b/games/source/Dockerfile @@ -41,6 +41,13 @@ RUN cd /tmp/ \ && tar xvf rcon.tar.gz \ && mv rcon-0.10.3-amd64_linux/rcon /usr/local/bin/ + # Temp fix for things that still need libssl1.1 +RUN if [ "$(uname -m)" = "x86_64" ]; then \ + wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \ + dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \ + rm libssl1.1_1.1.0g-2ubuntu4_amd64.deb; \ + fi + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/steamcmd/debian/Dockerfile b/steamcmd/debian/Dockerfile index 1a95989..41e0794 100644 --- a/steamcmd/debian/Dockerfile +++ b/steamcmd/debian/Dockerfile @@ -19,6 +19,13 @@ RUN cd /tmp/ \ && tar xvf rcon.tar.gz \ && mv rcon-0.10.3-amd64_linux/rcon /usr/local/bin/ + # Temp fix for things that still need libssl1.1 +RUN if [ "$(uname -m)" = "x86_64" ]; then \ + wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \ + dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \ + rm libssl1.1_1.1.0g-2ubuntu4_amd64.deb; \ + fi + USER container ENV USER=container HOME=/home/container WORKDIR /home/container From 876e1d867f5347d45507d87585d3e32d7331f005 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Fri, 5 Apr 2024 22:38:04 +0200 Subject: [PATCH 36/74] wget... --- games/source/Dockerfile | 2 +- steamcmd/debian/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/games/source/Dockerfile b/games/source/Dockerfile index 164025c..699770a 100644 --- a/games/source/Dockerfile +++ b/games/source/Dockerfile @@ -32,7 +32,7 @@ ENV DEBIAN_FRONTEND=noninteractive RUN dpkg --add-architecture i386 \ && apt update \ && apt upgrade -y \ - && apt install -y tar curl gcc g++ lib32gcc-s1 libgcc-11-dev libgcc-12-dev libcurl4-gnutls-dev:i386 libssl-dev:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat-traditional tzdata numactl tini \ + && apt install -y tar curl gcc g++ lib32gcc-s1 libgcc-11-dev libgcc-12-dev libcurl4-gnutls-dev:i386 libssl-dev:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat-traditional tzdata numactl wget tini \ && useradd -m -d /home/container container ## install rcon diff --git a/steamcmd/debian/Dockerfile b/steamcmd/debian/Dockerfile index 41e0794..053daa1 100644 --- a/steamcmd/debian/Dockerfile +++ b/steamcmd/debian/Dockerfile @@ -10,7 +10,7 @@ ENV DEBIAN_FRONTEND=noninteractive RUN dpkg --add-architecture i386 \ && apt-get update \ && apt-get upgrade -y \ - && apt-get install -y tar curl gcc g++ lib32gcc-s1 libgcc-12-dev libgcc-11-dev libcurl4-gnutls-dev:i386 libssl-dev:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 libsdl2-2.0-0 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat-traditional tzdata numactl xvfb tini \ + && apt-get install -y tar curl gcc g++ lib32gcc-s1 libgcc-12-dev libgcc-11-dev libcurl4-gnutls-dev:i386 libssl-dev:i386 libcurl4:i386 lib32tinfo6 libtinfo6:i386 lib32z1 lib32stdc++6 libncurses5:i386 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 libsdl2-2.0-0 iproute2 gdb libsdl1.2debian libfontconfig1 telnet net-tools netcat-traditional tzdata numactl xvfb wget tini \ && useradd -m -d /home/container container ## install rcon From 3798abab4ef49b5d1d9725f581a1eba7acccff8b Mon Sep 17 00:00:00 2001 From: mattman107 <65982675+mattman107@users.noreply.github.com> Date: Fri, 19 Apr 2024 10:10:42 -0400 Subject: [PATCH 37/74] The Battle For Wesnoth (#237) * Create Dockerfile * Create entrypoint.sh * Update games.yml * Update README.md * Update Dockerfile * Update Dockerfile * Rename Dockerfile to Dockerfile * Rename entrypoint.sh to entrypoint.sh * Update README.md * Update games.yml * Update README.md * Update Dockerfile * Update Dockerfile make it actually work. --- .github/workflows/games.yml | 1 + README.md | 2 ++ games/thebattleforwesnoth/Dockerfile | 25 +++++++++++++++++++++++++ games/thebattleforwesnoth/entrypoint.sh | 13 +++++++++++++ 4 files changed, 41 insertions(+) create mode 100644 games/thebattleforwesnoth/Dockerfile create mode 100644 games/thebattleforwesnoth/entrypoint.sh diff --git a/.github/workflows/games.yml b/.github/workflows/games.yml index 2b5080a..61e222d 100644 --- a/.github/workflows/games.yml +++ b/.github/workflows/games.yml @@ -23,6 +23,7 @@ jobs: - samp - source - valheim + - thebattleforwesnoth steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 7a391da..f490ba3 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,8 @@ is tagged correctly. * `ghcr.io/parkervcp/games:samp` * [`source`](/games/source) * `ghcr.io/parkervcp/games:source` +* [`thebattleforwesnoth`](/games/thebattleforwesnoth) + * `ghcr.io/parkervcp/games:thebattleforwesnoth` * [`valheim`](/games/valheim) * `ghcr.io/parkervcp/games:valheim` diff --git a/games/thebattleforwesnoth/Dockerfile b/games/thebattleforwesnoth/Dockerfile new file mode 100644 index 0000000..d1c33ce --- /dev/null +++ b/games/thebattleforwesnoth/Dockerfile @@ -0,0 +1,25 @@ +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim + +LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" + +## update base packages +RUN apt update && apt upgrade -y + +## install dependencies +RUN apt install -y gcc g++ libgcc1 libc++-dev gdb libc6 git tar zip unzip libssl-dev tini iproute2 \ + libboost-filesystem-dev libboost-iostreams-dev libboost-locale-dev libboost-random-dev libboost-regex-dev libboost-program-options-dev libboost-system-dev libboost-coroutine-dev libboost-graph-dev \ + libsdl2-dev libcurl4-openssl-dev libcairo2-dev libvorbis-dev libbz2-dev zlib1g-dev libssl-dev libcrypto++-dev openssl cmake libsdl2-image-dev libsdl2-mixer-dev libsdl-pango-dev + + +## add container user +RUN useradd -m -d /home/container -s /bin/bash container +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +STOPSIGNAL SIGINT + +COPY --chown=container:container ./entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] diff --git a/games/thebattleforwesnoth/entrypoint.sh b/games/thebattleforwesnoth/entrypoint.sh new file mode 100644 index 0000000..461e6b9 --- /dev/null +++ b/games/thebattleforwesnoth/entrypoint.sh @@ -0,0 +1,13 @@ +#!/bin/bash +cd /home/container + +# Make internal Docker IP address available to processes. +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} From 98324b85235b4831b2cdc4f38909853addb8e945 Mon Sep 17 00:00:00 2001 From: Bae Joon Hoo Date: Tue, 30 Apr 2024 01:50:45 +0900 Subject: [PATCH 38/74] Install `pkg-config` (#239) add `pkg-config` to the rust images for openssl-sys --- rust/1.56/Dockerfile | 2 +- rust/1.60/Dockerfile | 2 +- rust/latest/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rust/1.56/Dockerfile b/rust/1.56/Dockerfile index 2a33e68..7e655cf 100644 --- a/rust/1.56/Dockerfile +++ b/rust/1.56/Dockerfile @@ -3,7 +3,7 @@ FROM --platform=$TARGETOS/$TARGETARCH rust:1.56-slim LABEL author="Ethan Coward" maintainer="ethan.coward@icloud.com" RUN apt update \ - && apt -y install git dnsutils curl iproute2 ffmpeg tini \ + && apt -y install git dnsutils curl iproute2 ffmpeg tini pkg-config \ && useradd -m -d /home/container container USER container diff --git a/rust/1.60/Dockerfile b/rust/1.60/Dockerfile index 3262022..e637221 100644 --- a/rust/1.60/Dockerfile +++ b/rust/1.60/Dockerfile @@ -3,7 +3,7 @@ FROM --platform=$TARGETOS/$TARGETARCH rust:1.60-slim LABEL author="Ethan Coward" maintainer="ethan.coward@icloud.com" RUN apt update \ - && apt -y install git dnsutils curl iproute2 ffmpeg tini \ + && apt -y install git dnsutils curl iproute2 ffmpeg tini pkg-config \ && useradd -m -d /home/container container USER container diff --git a/rust/latest/Dockerfile b/rust/latest/Dockerfile index e29edeb..cae3044 100644 --- a/rust/latest/Dockerfile +++ b/rust/latest/Dockerfile @@ -3,7 +3,7 @@ FROM --platform=$TARGETOS/$TARGETARCH rust:slim LABEL author="Ethan Coward" maintainer="ethan.coward@icloud.com" RUN apt update \ - && apt -y install git dnsutils curl iproute2 ffmpeg tini \ + && apt -y install git dnsutils curl iproute2 ffmpeg tini pkg-config \ && useradd -m -d /home/container container USER container From 43616ff3f82059b191c3194070f47d80a1a66488 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Mon, 29 Apr 2024 18:59:06 +0200 Subject: [PATCH 39/74] always install / update app id 1007 --- games/source/entrypoint.sh | 4 ++-- games/valheim/entrypoint.sh | 2 +- mono/entrypoint.sh | 4 ++-- steamcmd/entrypoint.sh | 4 ++-- wine/entrypoint.sh | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/games/source/entrypoint.sh b/games/source/entrypoint.sh index 153b869..38b7318 100644 --- a/games/source/entrypoint.sh +++ b/games/source/entrypoint.sh @@ -53,9 +53,9 @@ if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then # Update Source Server if [ ! -z ${SRCDS_APPID} ]; then if [ "${STEAM_USER}" == "anonymous" ]; then - ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit else - numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit fi else echo -e "No appid set. Starting Server" diff --git a/games/valheim/entrypoint.sh b/games/valheim/entrypoint.sh index 7a4356b..5794e92 100644 --- a/games/valheim/entrypoint.sh +++ b/games/valheim/entrypoint.sh @@ -21,7 +21,7 @@ fi if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then # Update Source Server if [ ! -z ${SRCDS_APPID} ]; then - ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit else echo -e "No appid set. Starting Server" fi diff --git a/mono/entrypoint.sh b/mono/entrypoint.sh index 269293f..f9497db 100644 --- a/mono/entrypoint.sh +++ b/mono/entrypoint.sh @@ -30,9 +30,9 @@ if [ ! -z "${SRCDS_APPID}" ]; then # Update Source Server if [ ! -z ${SRCDS_APPID} ]; then if [ "${STEAM_USER}" == "anonymous" ]; then - ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit else - numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit fi else echo -e "No appid set. Starting Server" diff --git a/steamcmd/entrypoint.sh b/steamcmd/entrypoint.sh index f700d32..9f582d6 100644 --- a/steamcmd/entrypoint.sh +++ b/steamcmd/entrypoint.sh @@ -69,9 +69,9 @@ if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then # Update Source Server if [ ! -z ${SRCDS_APPID} ]; then if [ "${STEAM_USER}" == "anonymous" ]; then - ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) ${INSTALL_FLAGS} $( [[ "${VALIDATE}" == "1" ]] && printf %s 'validate' ) +quit + ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) ${INSTALL_FLAGS} $( [[ "${VALIDATE}" == "1" ]] && printf %s 'validate' ) +quit else - numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) ${INSTALL_FLAGS} $( [[ "${VALIDATE}" == "1" ]] && printf %s 'validate' ) +quit + numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) ${INSTALL_FLAGS} $( [[ "${VALIDATE}" == "1" ]] && printf %s 'validate' ) +quit fi else echo -e "No appid set. Starting Server" diff --git a/wine/entrypoint.sh b/wine/entrypoint.sh index 0b524c1..4fd0e9a 100644 --- a/wine/entrypoint.sh +++ b/wine/entrypoint.sh @@ -26,9 +26,9 @@ if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then # Update Source Server if [ ! -z ${SRCDS_APPID} ]; then if [ "${STEAM_USER}" == "anonymous" ]; then - ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit else - numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit fi else echo -e "No appid set. Starting Server" From f30bbd356344e54e2353a902ec7961a437a7d5d4 Mon Sep 17 00:00:00 2001 From: gOOvER Date: Wed, 8 May 2024 16:56:39 +0200 Subject: [PATCH 40/74] update wine mono to 9.1.0 --- wine/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wine/entrypoint.sh b/wine/entrypoint.sh index 0b524c1..5721a6f 100644 --- a/wine/entrypoint.sh +++ b/wine/entrypoint.sh @@ -70,7 +70,7 @@ if [[ $WINETRICKS_RUN =~ mono ]]; then WINETRICKS_RUN=${WINETRICKS_RUN/mono} if [ ! -f "$WINEPREFIX/mono.msi" ]; then - wget -q -O $WINEPREFIX/mono.msi https://dl.winehq.org/wine/wine-mono/9.0.0/wine-mono-9.0.0-x86.msi + wget -q -O $WINEPREFIX/mono.msi https://dl.winehq.org/wine/wine-mono/9.1.0/wine-mono-9.1.0-x86.msi fi wine msiexec /i $WINEPREFIX/mono.msi /qn /quiet /norestart /log $WINEPREFIX/mono_install.log From b177dcc194f29fa4f81a46f51e8d4ee84f172147 Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 10 May 2024 09:14:54 +0100 Subject: [PATCH 41/74] Add MariaDB 11.3 & 11.4 (#241) * Update mariadb.yml Add '11.3' and '11.4' * Update README.md * Create Dockerfile - MariaDB 11.3 * Create Dockerfile - MariaDB 11.4 --- .github/workflows/mariadb.yml | 2 ++ README.md | 4 ++++ mariadb/11.3/Dockerfile | 19 +++++++++++++++++++ mariadb/11.4/Dockerfile | 19 +++++++++++++++++++ 4 files changed, 44 insertions(+) create mode 100644 mariadb/11.3/Dockerfile create mode 100644 mariadb/11.4/Dockerfile diff --git a/.github/workflows/mariadb.yml b/.github/workflows/mariadb.yml index 796d178..de957bd 100644 --- a/.github/workflows/mariadb.yml +++ b/.github/workflows/mariadb.yml @@ -23,6 +23,8 @@ jobs: - '10.6' - '10.7' - '11.2' + - '11.3' + - '11.4' steps: - uses: actions/checkout@v4 - uses: docker/setup-qemu-action@v3 diff --git a/README.md b/README.md index f490ba3..e809df2 100644 --- a/README.md +++ b/README.md @@ -193,6 +193,10 @@ is tagged correctly. * `ghcr.io/parkervcp/yolks:mariadb_10.7` * [`MariaDB 11.2`](/mariadb/11.2) * `ghcr.io/parkervcp/yolks:mariadb_11.2` + * [`MariaDB 11.3`](/mariadb/11.3) + * `ghcr.io/parkervcp/yolks:mariadb_11.3` + * [`MariaDB 11.4`](/mariadb/11.4) + * `ghcr.io/parkervcp/yolks:mariadb_11.4` ### [MongoDB](/mongodb) diff --git a/mariadb/11.3/Dockerfile b/mariadb/11.3/Dockerfile new file mode 100644 index 0000000..a2533c2 --- /dev/null +++ b/mariadb/11.3/Dockerfile @@ -0,0 +1,19 @@ +# ----------------------------------------------------- +# MariaDB Image for Pterodactyl +# ----------------------------------------------------- +FROM --platform=$TARGETOS/$TARGETARCH mariadb:11.3 + +LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt update -y \ + && apt install -y netcat \ + && useradd -d /home/container -m container -s /bin/bash + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +COPY ../entrypoint.sh /entrypoint.sh +CMD ["/bin/bash", "/entrypoint.sh"] diff --git a/mariadb/11.4/Dockerfile b/mariadb/11.4/Dockerfile new file mode 100644 index 0000000..2b6482d --- /dev/null +++ b/mariadb/11.4/Dockerfile @@ -0,0 +1,19 @@ +# ----------------------------------------------------- +# MariaDB Image for Pterodactyl +# ----------------------------------------------------- +FROM --platform=$TARGETOS/$TARGETARCH mariadb:11.4 + +LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" + +ENV DEBIAN_FRONTEND noninteractive + +RUN apt update -y \ + && apt install -y netcat \ + && useradd -d /home/container -m container -s /bin/bash + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +COPY ../entrypoint.sh /entrypoint.sh +CMD ["/bin/bash", "/entrypoint.sh"] From 135a3189517910b8ffcbeef2f7de8b871ad048b4 Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Sat, 11 May 2024 13:58:41 -0400 Subject: [PATCH 42/74] update base workflow updates workflow for base images. This is to test that the builder can push to other package locations. --- .github/workflows/base.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/base.yml b/.github/workflows/base.yml index c5b90c8..23dd116 100644 --- a/.github/workflows/base.yml +++ b/.github/workflows/base.yml @@ -37,4 +37,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:${{ matrix.oses }} ghcr.io/parkervcp/yolks:${{ matrix.oses }} From 6a54f842ddd79675ed96daf90e950a9f4e2f4369 Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Sat, 11 May 2024 14:39:08 -0400 Subject: [PATCH 43/74] update all images make it so all images are pushed to parkervcp and pelican-eggs packages --- .github/workflows/apps.yml | 1 + .github/workflows/bot.yml | 1 + .github/workflows/box64.yml | 1 + .github/workflows/bun.yml | 1 + .github/workflows/cassandra.yml | 1 + .github/workflows/dart.yml | 1 + .github/workflows/dotnet.yml | 1 + .github/workflows/elixir.yml | 1 + .github/workflows/erlang.yml | 1 + .github/workflows/games.yml | 2 ++ .github/workflows/go.yml | 1 + .github/workflows/installers.yml | 1 + .github/workflows/java.yml | 1 + .github/workflows/mariadb.yml | 1 + .github/workflows/mongodb.yml | 1 + .github/workflows/mono.yml | 1 + .github/workflows/nodejs.yml | 1 + .github/workflows/postgres.yml | 1 + .github/workflows/python.yml | 1 + .github/workflows/redis.yml | 1 + .github/workflows/rust.yml | 1 + .github/workflows/steamcmd.yml | 1 + .github/workflows/voice.yml | 7 +++++-- .github/workflows/wine.yml | 1 + 24 files changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/apps.yml b/.github/workflows/apps.yml index 02473ce..7568019 100644 --- a/.github/workflows/apps.yml +++ b/.github/workflows/apps.yml @@ -39,4 +39,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/apps:${{ matrix.app }} ghcr.io/parkervcp/apps:${{ matrix.app }} diff --git a/.github/workflows/bot.yml b/.github/workflows/bot.yml index ddd4f0e..8b89cbd 100644 --- a/.github/workflows/bot.yml +++ b/.github/workflows/bot.yml @@ -50,6 +50,7 @@ jobs: cache-to: type=local,dest=/tmp/.buildx-cache-new push: true tags: | + ghcr.io/pelican-eggs/yolks:bot_${{ matrix.tag }} ghcr.io/parkervcp/yolks:bot_${{ matrix.tag }} - name: Move cache run: | diff --git a/.github/workflows/box64.yml b/.github/workflows/box64.yml index eb87145..971b30c 100644 --- a/.github/workflows/box64.yml +++ b/.github/workflows/box64.yml @@ -35,4 +35,5 @@ jobs: platforms: linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:${{ matrix.tag }} ghcr.io/parkervcp/yolks:${{ matrix.tag }} diff --git a/.github/workflows/bun.yml b/.github/workflows/bun.yml index 4f3bb06..7aaf53a 100644 --- a/.github/workflows/bun.yml +++ b/.github/workflows/bun.yml @@ -36,4 +36,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:bun_${{ matrix.tag }} ghcr.io/parkervcp/yolks:bun_${{ matrix.tag }} diff --git a/.github/workflows/cassandra.yml b/.github/workflows/cassandra.yml index 83a2369..b2b81e6 100644 --- a/.github/workflows/cassandra.yml +++ b/.github/workflows/cassandra.yml @@ -35,4 +35,5 @@ jobs: platforms: linux/amd64 push: true tags: | + ghcr.io/pelican-eggs/yolks:cassandra_${{ matrix.tag }} ghcr.io/parkervcp/yolks:cassandra_${{ matrix.tag }} diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 3a26b8b..0738f97 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -40,4 +40,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:dart_${{ matrix.tag }} ghcr.io/parkervcp/yolks:dart_${{ matrix.tag }} diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 9d30d00..13c91cb 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -41,4 +41,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:dotnet_${{ matrix.tag }} ghcr.io/parkervcp/yolks:dotnet_${{ matrix.tag }} diff --git a/.github/workflows/elixir.yml b/.github/workflows/elixir.yml index e1fa8cd..09d7679 100644 --- a/.github/workflows/elixir.yml +++ b/.github/workflows/elixir.yml @@ -39,4 +39,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:elixir_${{ matrix.tag }} ghcr.io/parkervcp/yolks:elixir_${{ matrix.tag }} diff --git a/.github/workflows/erlang.yml b/.github/workflows/erlang.yml index b834b2e..0a49366 100644 --- a/.github/workflows/erlang.yml +++ b/.github/workflows/erlang.yml @@ -38,4 +38,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:erlang_${{ matrix.tag }} ghcr.io/parkervcp/yolks:erlang_${{ matrix.tag }} diff --git a/.github/workflows/games.yml b/.github/workflows/games.yml index 61e222d..cafebf7 100644 --- a/.github/workflows/games.yml +++ b/.github/workflows/games.yml @@ -42,6 +42,7 @@ jobs: platforms: linux/amd64 push: true tags: | + ghcr.io/pelican-eggs/games:${{ matrix.game }} ghcr.io/parkervcp/games:${{ matrix.game }} pushAll: name: "games_All:${{ matrix.game }}" @@ -73,4 +74,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/games:${{ matrix.game }} ghcr.io/parkervcp/games:${{ matrix.game }} diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5179282..8970801 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -42,4 +42,5 @@ jobs: platforms: linux/amd64 push: true tags: | + ghcr.io/pelican-eggs/yolks:go_${{ matrix.tag }} ghcr.io/parkervcp/yolks:go_${{ matrix.tag }} diff --git a/.github/workflows/installers.yml b/.github/workflows/installers.yml index 653b175..86247c2 100644 --- a/.github/workflows/installers.yml +++ b/.github/workflows/installers.yml @@ -37,4 +37,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/installers:${{ matrix.tag }} ghcr.io/parkervcp/installers:${{ matrix.tag }} diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 8ff3dec..ae681f6 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -43,4 +43,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:java_${{ matrix.tag }} ghcr.io/parkervcp/yolks:java_${{ matrix.tag }} diff --git a/.github/workflows/mariadb.yml b/.github/workflows/mariadb.yml index de957bd..8ad6259 100644 --- a/.github/workflows/mariadb.yml +++ b/.github/workflows/mariadb.yml @@ -43,4 +43,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:mariadb_${{ matrix.tag }} ghcr.io/parkervcp/yolks:mariadb_${{ matrix.tag }} diff --git a/.github/workflows/mongodb.yml b/.github/workflows/mongodb.yml index 040ef1e..cfe8bda 100644 --- a/.github/workflows/mongodb.yml +++ b/.github/workflows/mongodb.yml @@ -39,4 +39,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:mongodb_${{ matrix.tag }} ghcr.io/parkervcp/yolks:mongodb_${{ matrix.tag }} diff --git a/.github/workflows/mono.yml b/.github/workflows/mono.yml index 952c3e0..cdc8aa3 100644 --- a/.github/workflows/mono.yml +++ b/.github/workflows/mono.yml @@ -34,4 +34,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:mono_${{ matrix.tag }} ghcr.io/parkervcp/yolks:mono_${{ matrix.tag }} diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index e31f98c..39f3592 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -43,4 +43,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:nodejs_${{ matrix.tag }} ghcr.io/parkervcp/yolks:nodejs_${{ matrix.tag }} diff --git a/.github/workflows/postgres.yml b/.github/workflows/postgres.yml index 3f863ec..b76595f 100644 --- a/.github/workflows/postgres.yml +++ b/.github/workflows/postgres.yml @@ -42,4 +42,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:postgres_${{ matrix.tag }} ghcr.io/parkervcp/yolks:postgres_${{ matrix.tag }} diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 6627079..82d0d02 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -42,4 +42,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:python_${{ matrix.tag }} ghcr.io/parkervcp/yolks:python_${{ matrix.tag }} diff --git a/.github/workflows/redis.yml b/.github/workflows/redis.yml index 0fa9018..5ae8471 100644 --- a/.github/workflows/redis.yml +++ b/.github/workflows/redis.yml @@ -38,4 +38,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:redis_${{ matrix.tag }} ghcr.io/parkervcp/yolks:redis_${{ matrix.tag }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 6dbb902..03e30ba 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -38,4 +38,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | + ghcr.io/pelican-eggs/yolks:rust_${{ matrix.tag }} ghcr.io/parkervcp/yolks:rust_${{ matrix.tag }} diff --git a/.github/workflows/steamcmd.yml b/.github/workflows/steamcmd.yml index 443c9ab..841d0a8 100644 --- a/.github/workflows/steamcmd.yml +++ b/.github/workflows/steamcmd.yml @@ -39,4 +39,5 @@ jobs: platforms: linux/amd64 push: true tags: | + ghcr.io/pelican-eggs/steamcmd:${{ matrix.distro }} ghcr.io/parkervcp/steamcmd:${{ matrix.distro }} diff --git a/.github/workflows/voice.yml b/.github/workflows/voice.yml index 6b3dea6..bc5f388 100644 --- a/.github/workflows/voice.yml +++ b/.github/workflows/voice.yml @@ -34,7 +34,9 @@ jobs: platforms: linux/amd64 push: true tags: | - ghcr.io/parkervcp/yolks:voice_${{ matrix.tag }} + ghcr.io/pelican-eggs/yolks:voice_${{ matrix.tag }} + ghcr.io/parkervcp/yolks:voice_${{ matrix.tag }} + pushx64_arm64: name: "yolks:voice_${{ matrix.tag }}" @@ -64,4 +66,5 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/parkervcp/yolks:voice_${{ matrix.tag }} + ghcr.io/pelican-eggs/yolks:voice_${{ matrix.tag }} + ghcr.io/parkervcp/yolks:voice_${{ matrix.tag }} diff --git a/.github/workflows/wine.yml b/.github/workflows/wine.yml index bdb1724..bd3f580 100644 --- a/.github/workflows/wine.yml +++ b/.github/workflows/wine.yml @@ -36,4 +36,5 @@ jobs: platforms: linux/amd64 push: true tags: | + ghcr.io/pelican-eggs/yolks:wine_${{ matrix.tag }} ghcr.io/parkervcp/yolks:wine_${{ matrix.tag }} From 518d3e320693a33673d8a34281cde8f693516007 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Sun, 12 May 2024 10:53:54 +0200 Subject: [PATCH 44/74] replace pterodactyl with pelican --- cassandra/entrypoint.sh | 8 ++++---- dotnet/entrypoint.sh | 2 +- erlang/entrypoint.sh | 4 ++-- games/minetest/entrypoint.sh | 2 +- go/entrypoint.sh | 4 ++-- java/entrypoint.sh | 4 ++-- oses/alpine/entrypoint.sh | 2 +- voice/teaspeak/entrypoint.sh | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/cassandra/entrypoint.sh b/cassandra/entrypoint.sh index 2541719..36d42cd 100644 --- a/cassandra/entrypoint.sh +++ b/cassandra/entrypoint.sh @@ -12,17 +12,17 @@ export INTERNAL_IP cd /home/container || exit 1 # Print Java version -printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mjava -version\n" +printf "\033[1m\033[33mcontainer@pelican~ \033[0mjava -version\n" java -version # Print Python version if command -v python &> /dev/null then - printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mpython --version\n" + printf "\033[1m\033[33mcontainer@pelican~ \033[0mpython --version\n" python --version else - printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mpython3 --version\n" + printf "\033[1m\033[33mcontainer@pelican~ \033[0mpython3 --version\n" python3 --version fi @@ -33,6 +33,6 @@ 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" +printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" # shellcheck disable=SC2086 exec env ${PARSED} diff --git a/dotnet/entrypoint.sh b/dotnet/entrypoint.sh index b9fd77c..d072407 100644 --- a/dotnet/entrypoint.sh +++ b/dotnet/entrypoint.sh @@ -9,7 +9,7 @@ export INTERNAL_IP export DOTNET_ROOT=/usr/share/ # print the dotnet version on startup -printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mdotnet --version\n" +printf "\033[1m\033[33mcontainer@pelican~ \033[0mdotnet --version\n" dotnet --version # Replace Startup Variables diff --git a/erlang/entrypoint.sh b/erlang/entrypoint.sh index 7511c57..b54a17b 100644 --- a/erlang/entrypoint.sh +++ b/erlang/entrypoint.sh @@ -10,7 +10,7 @@ export INTERNAL_IP cd /home/container || exit 1 # Print Erlang's version -printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0merl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'init:stop()'\n" +printf "\033[1m\033[33mcontainer@pelican~ \033[0merl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'init:stop()'\n" erl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'init:stop()' # Convert all of the "{{VARIABLE}}" parts of the command into the expected shell @@ -20,6 +20,6 @@ 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" +printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" # shellcheck disable=SC2086 exec env ${PARSED} diff --git a/games/minetest/entrypoint.sh b/games/minetest/entrypoint.sh index 399eb5a..505b263 100644 --- a/games/minetest/entrypoint.sh +++ b/games/minetest/entrypoint.sh @@ -12,7 +12,7 @@ export INTERNAL_IP cd /home/container || exit 1 # Print minetest version -printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mminetest --version\n" +printf "\033[1m\033[33mcontainer@pelican~ \033[0mminetest --version\n" minetest --version # Replace Startup Variables diff --git a/go/entrypoint.sh b/go/entrypoint.sh index 7adafec..402f6d4 100644 --- a/go/entrypoint.sh +++ b/go/entrypoint.sh @@ -34,7 +34,7 @@ export INTERNAL_IP cd /home/container || exit 1 # Print Go version -printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mgo version\n" +printf "\033[1m\033[33mcontainer@pelican~ \033[0mgo version\n" go version # Convert all of the "{{VARIABLE}}" parts of the command into the expected shell @@ -44,6 +44,6 @@ 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" +printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" # shellcheck disable=SC2086 exec env ${PARSED} diff --git a/java/entrypoint.sh b/java/entrypoint.sh index e92f3d3..76e79e0 100755 --- a/java/entrypoint.sh +++ b/java/entrypoint.sh @@ -34,7 +34,7 @@ export INTERNAL_IP cd /home/container || exit 1 # Print Java version -printf "\033[1m\033[33mcontainer@pterodactyl~ \033[0mjava -version\n" +printf "\033[1m\033[33mcontainer@pelican~ \033[0mjava -version\n" java -version # Convert all of the "{{VARIABLE}}" parts of the command into the expected shell @@ -44,6 +44,6 @@ 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" +printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" # shellcheck disable=SC2086 eval ${PARSED} diff --git a/oses/alpine/entrypoint.sh b/oses/alpine/entrypoint.sh index e156de6..3118289 100644 --- a/oses/alpine/entrypoint.sh +++ b/oses/alpine/entrypoint.sh @@ -38,7 +38,7 @@ 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" +printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" # shellcheck disable=SC2086 exec env ${PARSED} diff --git a/voice/teaspeak/entrypoint.sh b/voice/teaspeak/entrypoint.sh index 9b0d21f..9fa5709 100644 --- a/voice/teaspeak/entrypoint.sh +++ b/voice/teaspeak/entrypoint.sh @@ -19,6 +19,6 @@ 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" +printf "\033[1m\033[33mcontainer@pelican~ \033[0m%s\n" "$PARSED" # shellcheck disable=SC2086 exec env ${PARSED} From 5b2e766364732a958d5d80ba61b139206dc00bdb Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Sun, 19 May 2024 18:28:43 +0200 Subject: [PATCH 45/74] Add libssl1.1 for samp and openmp --- games/samp/Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/games/samp/Dockerfile b/games/samp/Dockerfile index a006557..cb54f3c 100644 --- a/games/samp/Dockerfile +++ b/games/samp/Dockerfile @@ -7,14 +7,20 @@ RUN apt update \ RUN dpkg --add-architecture i386 \ && apt update \ && apt upgrade -y \ - && apt install -y libstdc++6 lib32stdc++6 tar curl iproute2 openssl fontconfig dirmngr ca-certificates dnsutils tzdata zip tini \ + && apt install -y libstdc++6 lib32stdc++6 tar wget curl iproute2 openssl fontconfig dirmngr ca-certificates dnsutils tzdata zip tini \ && apt install -y libtbb12:i386 libtbb-dev:i386 libicu-dev:i386 \ && useradd -d /home/container -m container RUN mkdir -p /run/systemd && echo 'docker' > /run/systemd/container RUN rm -rf /var/lib/apt/lists/* - + # Temp fix for things that still need libssl1.1 +RUN if [ "$(uname -m)" = "x86_64" ]; then \ + wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \ + dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \ + rm libssl1.1_1.1.0g-2ubuntu4_amd64.deb; \ + fi + USER container ENV USER=container HOME=/home/container WORKDIR /home/container From 0e0c76820a6c4922a522b2f1a2e814c58a7cd0a0 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Sun, 19 May 2024 19:12:55 +0200 Subject: [PATCH 46/74] 32 bit one? --- games/samp/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/games/samp/Dockerfile b/games/samp/Dockerfile index cb54f3c..c582df5 100644 --- a/games/samp/Dockerfile +++ b/games/samp/Dockerfile @@ -14,10 +14,10 @@ RUN dpkg --add-architecture i386 \ RUN mkdir -p /run/systemd && echo 'docker' > /run/systemd/container RUN rm -rf /var/lib/apt/lists/* - # Temp fix for things that still need libssl1.1 + # Temp fix for things that still need libssl1.1 32 bit RUN if [ "$(uname -m)" = "x86_64" ]; then \ - wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \ - dpkg -i libssl1.1_1.1.0g-2ubuntu4_amd64.deb && \ + wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_i386.deb && \ + dpkg -i libssl1.1_1.1.0g-2ubuntu4_i386.deb && \ rm libssl1.1_1.1.0g-2ubuntu4_amd64.deb; \ fi From c531bfee27144001afd41d1cbfb502c2205d7a7c Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Sun, 19 May 2024 19:33:05 +0200 Subject: [PATCH 47/74] Remove the right file --- games/samp/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/samp/Dockerfile b/games/samp/Dockerfile index c582df5..ba6198a 100644 --- a/games/samp/Dockerfile +++ b/games/samp/Dockerfile @@ -18,7 +18,7 @@ RUN rm -rf /var/lib/apt/lists/* RUN if [ "$(uname -m)" = "x86_64" ]; then \ wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.0g-2ubuntu4_i386.deb && \ dpkg -i libssl1.1_1.1.0g-2ubuntu4_i386.deb && \ - rm libssl1.1_1.1.0g-2ubuntu4_amd64.deb; \ + rm libssl1.1_1.1.0g-2ubuntu4_i386.deb; \ fi USER container From 2e3436f3816ef86fb97e06857c9bd49513cfd9a6 Mon Sep 17 00:00:00 2001 From: Red-Thirten Date: Thu, 6 Jun 2024 03:35:04 -0700 Subject: [PATCH 48/74] [DayZ] Image Cleanup (#247) * [DayZ] Image Cleanup - Removed `numactl` dependency as it seems SteamCMD updated and resolved its crashing issues on Linux when logging in with a real account. - Added clearing of SteamCMD appworkshop cache before mod downloads to avoid potential failures (at least until I implement a better method using symlinks for mod folders). - General cleanup of text and labels. * Fix missing `WORKSHOP_DIR` global var --- games/dayz/Dockerfile | 14 +++++++------- games/dayz/entrypoint.sh | 22 ++++++++++++++-------- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/games/dayz/Dockerfile b/games/dayz/Dockerfile index 189aed3..60a0935 100644 --- a/games/dayz/Dockerfile +++ b/games/dayz/Dockerfile @@ -1,8 +1,8 @@ -FROM --platform=$BUILDPLATFORM debian:bullseye-slim +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim -LABEL author="David Wolfe (Red-Thirten)" maintainer="rehlmgaming@gmail.com" +LABEL author="David Wolfe (Red-Thirten)" maintainer="red_thirten@yahoo.com" -LABEL org.opencontainers.image.source="https://github.com/parkervcp/yolks" +LABEL org.opencontainers.image.source="https://github.com/pelican-eggs/yolks" LABEL org.opencontainers.image.licenses=MIT ## Update base packages and install dependencies @@ -17,7 +17,6 @@ RUN dpkg --add-architecture i386 \ iproute2 \ gettext-base \ ca-certificates \ - numactl \ libssl-dev \ lib32gcc-s1 \ libsdl2-2.0-0 \ @@ -33,7 +32,7 @@ RUN dpkg --add-architecture i386 \ RUN update-locale lang=en_US.UTF-8 \ && dpkg-reconfigure --frontend noninteractive locales -## Prepare NSS Wrapper for the entrypoint as a workaround for Arma 3 requiring a valid UID +## Prepare NSS Wrapper for the entrypoint as a workaround for DayZ requiring a valid UID ENV NSS_WRAPPER_PASSWD=/tmp/passwd NSS_WRAPPER_GROUP=/tmp/group RUN touch ${NSS_WRAPPER_PASSWD} ${NSS_WRAPPER_GROUP} \ && chgrp 0 ${NSS_WRAPPER_PASSWD} ${NSS_WRAPPER_GROUP} \ @@ -46,9 +45,10 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container -STOPSIGNAL SIGINT +STOPSIGNAL SIGINT +## Copy over and execute entrypoint.sh via Tini COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh -ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] CMD ["/entrypoint.sh"] diff --git a/games/dayz/entrypoint.sh b/games/dayz/entrypoint.sh index c2367f0..889e6c2 100644 --- a/games/dayz/entrypoint.sh +++ b/games/dayz/entrypoint.sh @@ -1,15 +1,16 @@ #!/bin/bash -## File: Pterodactyl DayZ SA Image - entrypoint.sh +## File: DayZ Image - entrypoint.sh ## Author: David Wolfe (Red-Thirten) ## Contributors: Aussie Server Hosts (https://aussieserverhosts.com/) -## Date: 2022/11/27 +## Date: 2024/06/05 ## License: MIT License ## === CONSTANTS === STEAMCMD_DIR="./steamcmd" # SteamCMD's directory containing steamcmd.sh +WORKSHOP_DIR="./Steam/steamapps/workshop" # SteamCMD's directory containing workshop downloads STEAMCMD_LOG="${STEAMCMD_DIR}/steamcmd.log" # Log file for SteamCMD -GAME_ID=221100 # SteamCMD ID for the DayZ SA GAME (not server). Only used for Workshop mod downloads. +GAME_ID=221100 # SteamCMD ID for the DayZ GAME (not server). Only used for Workshop mod downloads. # Color Codes CYAN='\033[0;36m' @@ -45,9 +46,9 @@ function RunSteamCMD { #[Input: int server=0 mod=1; int id] # Check if updating server or mod if [[ $1 == 0 ]]; then # Server - numactl --physcpubind=+0 ${STEAMCMD_DIR}/steamcmd.sh +force_install_dir /home/container "+login \"${STEAM_USER}\" \"${STEAM_PASS}\"" +app_update $2 $extraFlags $validateServer +quit | tee -a "${STEAMCMD_LOG}" + ${STEAMCMD_DIR}/steamcmd.sh +force_install_dir /home/container "+login \"${STEAM_USER}\" \"${STEAM_PASS}\"" +app_update $2 $extraFlags $validateServer +quit | tee -a "${STEAMCMD_LOG}" else # Mod - numactl --physcpubind=+0 ${STEAMCMD_DIR}/steamcmd.sh "+login \"${STEAM_USER}\" \"${STEAM_PASS}\"" +workshop_download_item $GAME_ID $2 +quit | tee -a "${STEAMCMD_LOG}" + ${STEAMCMD_DIR}/steamcmd.sh "+login \"${STEAM_USER}\" \"${STEAM_PASS}\"" +workshop_download_item $GAME_ID $2 +quit | tee -a "${STEAMCMD_LOG}" fi # Error checking for SteamCMD @@ -104,8 +105,8 @@ function RunSteamCMD { #[Input: int server=0 mod=1; int id] # Move the downloaded mod to the root directory, and replace existing mod if needed mkdir -p ./@$2 rm -rf ./@$2/* - mv -f ./Steam/steamapps/workshop/content/$GAME_ID/$2/* ./@$2 - rm -d ./Steam/steamapps/workshop/content/$GAME_ID/$2 + mv -f ${WORKSHOP_DIR}/content/$GAME_ID/$2/* ./@$2 + rm -d ${WORKSHOP_DIR}/content/$GAME_ID/$2 # Make the mods contents all lowercase ModsLowercase @$2 # Move any .bikey's to the keys directory @@ -238,6 +239,11 @@ if [[ ${UPDATE_SERVER} == 1 ]]; then if [[ -n $latestUpdate ]] && [[ $latestUpdate =~ ^[0-9]+$ ]]; then # Notify last update date, if valid echo -e "\tMod was last updated: ${CYAN}$(date -d @${latestUpdate})${NC}" fi + + # Delete SteamCMD appworkshop cache before running to avoid mod download failures + echo -e "\tClearing SteamCMD appworkshop cache..." + rm -f ${WORKSHOP_DIR}/appworkshop_$GAME_ID.acf + echo -e "\tAttempting mod update/download via SteamCMD...\n" RunSteamCMD 1 $modID fi @@ -280,6 +286,6 @@ echo -e "${CYAN}${modifiedStartup}${NC}\n" ${modifiedStartup} if [ $? -ne 0 ]; then - echo -e "\n${RED}PTDL_CONTAINER_ERR: There was an error while attempting to run the start command.${NC}\n" + echo -e "\n${RED}[STARTUP_ERR]: There was an error while attempting to run the start command.${NC}\n" exit 1 fi From 33eee7766f2dcf65ffcd7efc1b77ef50c11494ea Mon Sep 17 00:00:00 2001 From: shaynendradika Date: Fri, 14 Jun 2024 01:08:37 +0700 Subject: [PATCH 49/74] add bercon installation for battleye rcon --- games/dayz/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/games/dayz/Dockerfile b/games/dayz/Dockerfile index 60a0935..092d957 100644 --- a/games/dayz/Dockerfile +++ b/games/dayz/Dockerfile @@ -28,6 +28,11 @@ RUN dpkg --add-architecture i386 \ libnss-wrapper \ tini +## install rcon client (bercon) +RUN cd /tmp/ \ + && curl -sSL https://github.com/WoozyMasta/bercon/releases/download/1.0.0/bercon > bercon \ + && mv bercon /usr/local/bin/ + ## Configure locale RUN update-locale lang=en_US.UTF-8 \ && dpkg-reconfigure --frontend noninteractive locales From bd036bff481038c58b317ac5ba8da135d2d36256 Mon Sep 17 00:00:00 2001 From: QuintenQVD0 Date: Sat, 15 Jun 2024 09:50:53 +0200 Subject: [PATCH 50/74] dayz: fix bercon permission --- games/dayz/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/games/dayz/Dockerfile b/games/dayz/Dockerfile index 092d957..1d74420 100644 --- a/games/dayz/Dockerfile +++ b/games/dayz/Dockerfile @@ -31,7 +31,8 @@ RUN dpkg --add-architecture i386 \ ## install rcon client (bercon) RUN cd /tmp/ \ && curl -sSL https://github.com/WoozyMasta/bercon/releases/download/1.0.0/bercon > bercon \ - && mv bercon /usr/local/bin/ + && mv bercon /usr/local/bin/ \ + && chmod +x /usr/local/bin/bercon ## Configure locale RUN update-locale lang=en_US.UTF-8 \ From 727d71a6628639032c441d6d63a77489bdfd2ac9 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Wed, 26 Jun 2024 08:59:24 +0200 Subject: [PATCH 51/74] add rust image --- .github/workflows/games.yml | 1 + games/rust/Dockerfile | 23 ++++++ games/rust/entrypoint.sh | 48 +++++++++++++ games/rust/wrapper.js | 140 ++++++++++++++++++++++++++++++++++++ 4 files changed, 212 insertions(+) create mode 100644 games/rust/Dockerfile create mode 100644 games/rust/entrypoint.sh create mode 100644 games/rust/wrapper.js diff --git a/.github/workflows/games.yml b/.github/workflows/games.yml index cafebf7..65f899e 100644 --- a/.github/workflows/games.yml +++ b/.github/workflows/games.yml @@ -20,6 +20,7 @@ jobs: - arma3 - dayz - mohaa + - rust - samp - source - valheim diff --git a/games/rust/Dockerfile b/games/rust/Dockerfile new file mode 100644 index 0000000..87628ac --- /dev/null +++ b/games/rust/Dockerfile @@ -0,0 +1,23 @@ +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim + +ENV DEBIAN_FRONTEND=noninteractive + +RUN dpkg --add-architecture i386 \ + && apt update \ + && apt upgrade -y \ + && apt install -y lib32gcc-s1 lib32stdc++6 unzip curl iproute2 tzdata libgdiplus libsdl2-2.0-0:i386 \ + && curl -sL https://deb.nodesource.com/setup_16.x | bash - \ + && apt install -y nodejs \ + && mkdir /node_modules \ + && npm install --prefix / ws \ + && useradd -d /home/container -m container + +USER container +ENV USER=container HOME=/home/container + +WORKDIR /home/container + +COPY ./entrypoint.sh /entrypoint.sh +COPY ./wrapper.js /wrapper.js + +CMD [ "/bin/bash", "/entrypoint.sh" ] diff --git a/games/rust/entrypoint.sh b/games/rust/entrypoint.sh new file mode 100644 index 0000000..e7c7dbf --- /dev/null +++ b/games/rust/entrypoint.sh @@ -0,0 +1,48 @@ +#!/bin/bash +cd /home/container + +# Make internal Docker IP address available to processes. +export INTERNAL_IP=`ip route get 1 | awk '{print $(NF-2);exit}'` + +## if auto_update is not set or to 1 update +if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then + # Allow for the staging branch to also update itself + ./steamcmd/steamcmd.sh +force_install_dir /home/container +login anonymous +app_update 258550 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) +quit +else + echo -e "Not updating game server as auto update was set to 0. Starting Server" +fi + +# Replace Startup Variables +MODIFIED_STARTUP=`eval echo $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')` +echo ":/home/container$ ${MODIFIED_STARTUP}" + +if [[ "${FRAMEWORK}" == "carbon" ]]; then + # Carbon: https://github.com/CarbonCommunity/Carbon.Core + echo "Updating Carbon..." + curl -sSL "https://github.com/CarbonCommunity/Carbon.Core/releases/download/production_build/Carbon.Linux.Release.tar.gz" | tar zx + echo "Done updating Carbon!" + + export DOORSTOP_ENABLED=1 + export DOORSTOP_TARGET_ASSEMBLY="$(pwd)/carbon/managed/Carbon.Preloader.dll" + MODIFIED_STARTUP="LD_PRELOAD=$(pwd)/libdoorstop.so ${MODIFIED_STARTUP}" +elif [[ "${FRAMEWORK}" == "oxide-staging" ]]; then + echo "updating oxide-staging" + curl -sSL -o oxide-staging.zip "https://downloads.oxidemod.com/artifacts/Oxide.Rust/staging/Oxide.Rust-linux.zip" + unzip -o -q oxide-staging.zip + rm oxide-staging.zip + echo "Done updating oxide Staging" +elif [[ "$OXIDE" == "1" ]] || [[ "${FRAMEWORK}" == "oxide" ]]; then + # Oxide: https://github.com/OxideMod/Oxide.Rust + echo "Updating uMod..." + curl -sSL "https://github.com/OxideMod/Oxide.Rust/releases/latest/download/Oxide.Rust-linux.zip" > umod.zip + unzip -o -q umod.zip + rm umod.zip + echo "Done updating uMod!" +# else Vanilla, do nothing +fi + +# Fix for Rust not starting +export LD_LIBRARY_PATH=$(pwd)/RustDedicated_Data/Plugins/x86_64:$(pwd) + +# Run the Server +wrapper "${MODIFIED_STARTUP}" \ No newline at end of file diff --git a/games/rust/wrapper.js b/games/rust/wrapper.js new file mode 100644 index 0000000..ad79ced --- /dev/null +++ b/games/rust/wrapper.js @@ -0,0 +1,140 @@ +#!/usr/bin/env node + +var startupCmd = ""; +const fs = require("fs"); +fs.writeFile("latest.log", "", (err) => { + if (err) console.log("Callback error in appendFile:" + err); +}); + +var args = process.argv.splice(process.execArgv.length + 2); +for (var i = 0; i < args.length; i++) { + if (i === args.length - 1) { + startupCmd += args[i]; + } else { + startupCmd += args[i] + " "; + } +} + +if (startupCmd.length < 1) { + console.log("Error: Please specify a startup command."); + process.exit(); +} + +const seenPercentage = {}; + +function filter(data) { + const str = data.toString(); + if (str.startsWith("Loading Prefab Bundle ")) { // Rust seems to spam the same percentage, so filter out any duplicates. + const percentage = str.substr("Loading Prefab Bundle ".length); + if (seenPercentage[percentage]) return; + + seenPercentage[percentage] = true; + } + + console.log(str); +} + +var exec = require("child_process").exec; +console.log("Starting Rust..."); + +var exited = false; +const gameProcess = exec(startupCmd); +gameProcess.stdout.on('data', filter); +gameProcess.stderr.on('data', filter); +gameProcess.on('exit', function (code, signal) { + exited = true; + + if (code) { + console.log("Main game process exited with code " + code); + // process.exit(code); + } +}); + +function initialListener(data) { + const command = data.toString().trim(); + if (command === 'quit') { + gameProcess.kill('SIGTERM'); + } else { + console.log('Unable to run "' + command + '" due to RCON not being connected yet.'); + } +} +process.stdin.resume(); +process.stdin.setEncoding("utf8"); +process.stdin.on('data', initialListener); + +process.on('exit', function (code) { + if (exited) return; + + console.log("Received request to stop the process, stopping the game..."); + gameProcess.kill('SIGTERM'); +}); + +var waiting = true; +var poll = function () { + function createPacket(command) { + var packet = { + Identifier: -1, + Message: command, + Name: "WebRcon" + }; + return JSON.stringify(packet); + } + + var serverHostname = process.env.RCON_IP ? process.env.RCON_IP : "localhost"; + var serverPort = process.env.RCON_PORT; + var serverPassword = process.env.RCON_PASS; + var WebSocket = require("ws"); + var ws = new WebSocket("ws://" + serverHostname + ":" + serverPort + "/" + serverPassword); + + ws.on("open", function open() { + console.log("Connected to RCON. Generating the map now. Please wait until the server status switches to \"Running\"."); + waiting = false; + + // Hack to fix broken console output + ws.send(createPacket('status')); + + process.stdin.removeListener('data', initialListener); + gameProcess.stdout.removeListener('data', filter); + gameProcess.stderr.removeListener('data', filter); + process.stdin.on('data', function (text) { + ws.send(createPacket(text)); + }); + }); + + ws.on("message", function (data, flags) { + try { + var json = JSON.parse(data); + if (json !== undefined) { + if (json.Message !== undefined && json.Message.length > 0) { + console.log(json.Message); + const fs = require("fs"); + fs.appendFile("latest.log", "\n" + json.Message, (err) => { + if (err) console.log("Callback error in appendFile:" + err); + }); + } + } else { + console.log("Error: Invalid JSON received"); + } + } catch (e) { + if (e) { + console.log(e); + } + } + }); + + ws.on("error", function (err) { + waiting = true; + console.log("Waiting for RCON to come up..."); + setTimeout(poll, 5000); + }); + + ws.on("close", function () { + if (!waiting) { + console.log("Connection to server closed."); + + exited = true; + process.exit(); + } + }); +} +poll(); \ No newline at end of file From 5035b0d4df6f50285d05067102e1db606358428c Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Wed, 26 Jun 2024 09:02:17 +0200 Subject: [PATCH 52/74] add to readme --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e809df2..f0a211c 100644 --- a/README.md +++ b/README.md @@ -131,9 +131,11 @@ is tagged correctly. * [`minetest`](/games/minetest) * `ghcr.io/parkervcp/games:minetest` * [`mohaa`](games/mohaa) - * `ghcr.io/pterodactyl/games:mohaa` + * `ghcr.io/parkervcp/games:mohaa` * [`Multi Theft Auto: San Andreas`](games/mta) - * `ghcr.io/pterodactyl/games:mta` + * `ghcr.io/parkervcp/games:mta` +* [`Rust (dedicated server)`](games/rust) + * `ghcr.io/parkervcp/games:rust` * [`samp`](/games/samp) * `ghcr.io/parkervcp/games:samp` * [`source`](/games/source) From efc8507ae1f20758b92c49d16a3a3a50b6fe207c Mon Sep 17 00:00:00 2001 From: Red-Thirten Date: Wed, 3 Jul 2024 23:51:46 -0700 Subject: [PATCH 53/74] Update maintainer email address --- games/arma3/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/arma3/Dockerfile b/games/arma3/Dockerfile index 1cb2e26..3dd8a1b 100644 --- a/games/arma3/Dockerfile +++ b/games/arma3/Dockerfile @@ -1,6 +1,6 @@ FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye-slim -LABEL author="David Wolfe (Red-Thirten)" maintainer="rehlmgaming@gmail.com" +LABEL author="David Wolfe (Red-Thirten)" maintainer="red_thirten@yahoo.com" LABEL org.opencontainers.image.source="https://github.com/parkervcp/yolks" LABEL org.opencontainers.image.licenses=MIT From 681ffc488d33733f694b0a908933914f5c903294 Mon Sep 17 00:00:00 2001 From: Matthew Dangerfield <45240788+mdangerf@users.noreply.github.com> Date: Sun, 7 Jul 2024 19:24:02 -0400 Subject: [PATCH 54/74] [Arma 3] Added RPT logging (#253) - Adds RPT logging (logs will be located in `/home/container/serverprofile/rpt/`, but only if `-noLogs` is not used as a startup parameter) - Fixes edge case where clearing HC cache on first boot may fail due to a missing `serverprofile/` folder. --- games/arma3/entrypoint.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/games/arma3/entrypoint.sh b/games/arma3/entrypoint.sh index c78599c..62496bd 100644 --- a/games/arma3/entrypoint.sh +++ b/games/arma3/entrypoint.sh @@ -346,6 +346,12 @@ if [[ ${MODS_LOWERCASE} == "1" ]]; then done fi +# Define the log file path with a timestamp +LOG_FILE="/home/container/serverprofile/rpt/arma3server_$(date '+%m_%d_%Y_%H%M%S').rpt" + +# Ensure the logs directory exists +mkdir -p /home/container/serverprofile/rpt + # Clear HC cache, if specified if [[ ${CLEAR_CACHE} == "1" ]]; then echo -e "\n${GREEN}[STARTUP]: ${CYAN}Clearing Headless Client profiles cache...${NC}" @@ -395,7 +401,11 @@ fi # Start the Server echo -e "\n${GREEN}[STARTUP]:${NC} Starting server with the following startup command:" echo -e "${CYAN}${modifiedStartup}${NC}\n" -${modifiedStartup} +if [[ "$STARTUP_PARAMS" == *"-noLogs"* ]]; then + ${modifiedStartup} +else + ${modifiedStartup} 2>&1 | tee -a "$LOG_FILE" +fi if [ $? -ne 0 ]; then echo -e "\n${RED}PTDL_CONTAINER_ERR: There was an error while attempting to run the start command.${NC}\n" From f8881774258dd51ffc6897bc39332115bcb75e07 Mon Sep 17 00:00:00 2001 From: QuintenQVD0 Date: Wed, 17 Jul 2024 20:29:45 +0200 Subject: [PATCH 55/74] Build mumble from source --- voice/mumble/Dockerfile | 44 +++++++++----- voice/mumble/build.sh | 115 +++++++++++++++++++++++++++++++++++++ voice/mumble/entrypoint.sh | 7 ++- 3 files changed, 150 insertions(+), 16 deletions(-) create mode 100644 voice/mumble/build.sh diff --git a/voice/mumble/Dockerfile b/voice/mumble/Dockerfile index cfac818..84ca88b 100644 --- a/voice/mumble/Dockerfile +++ b/voice/mumble/Dockerfile @@ -1,22 +1,40 @@ -FROM --platform=$TARGETOS/$TARGETARCH alpine:edge +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim AS builder -LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" +# Copy and run the build script +COPY build.sh /build.sh +RUN chmod +x /build.sh +RUN cd / && ./build.sh -LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks" -LABEL org.opencontainers.image.licenses=MIT +FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim -## install dependencies -RUN apk add --no-cache murmur tini +# Create necessary directories +RUN mkdir -p /usr/local/bin /usr/local/share/mumble -RUN adduser -D container +# Copy the built Mumble server binary and the latest tag file and the build log from the builder stage +COPY --from=builder /usr/src/mumble/git/build/mumble-server /usr/local/bin/mumble-server +COPY --from=builder /usr/src/mumble/git/build/latest_tag.txt /usr/local/share/mumble/latest_tag.txt +COPY --from=builder /usr/src/mumble/build.log /usr/local/share/mumble/build.log -USER container -ENV USER=container HOME=/home/container +# Install runtime dependencies +RUN apt update \ + && apt -y install curl tar tzdata file ca-certificates sqlite3 iproute2 tini \ + && useradd -m -d /home/container container + +# Needed packages to run the mumble server +RUN apt -y install libqt5sql5 libqt5sql5-sqlite libavahi-compat-libdnssd-dev libqt5dbus5 libzeroc-ice-dev libprotobuf-dev qtbase5-dev qtbase5-dev-tools + +# Set up user and working directory +USER container +ENV USER=container HOME=/home/container WORKDIR /home/container +# Set the stop signal STOPSIGNAL SIGINT -COPY --chown=container:container ./entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh -ENTRYPOINT ["/sbin/tini", "-g", "--"] -CMD ["/entrypoint.sh"] +# Copy and set up the entrypoint script +COPY --chown=container:container ./entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh + +# Define entrypoint and command +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] diff --git a/voice/mumble/build.sh b/voice/mumble/build.sh new file mode 100644 index 0000000..b50fb93 --- /dev/null +++ b/voice/mumble/build.sh @@ -0,0 +1,115 @@ +#!/bin/bash + +# Mumble compile script. +# Runs on Debian 12 + +LOGFILE="/usr/src/mumble/build.log" + +log() { + echo "$(date +'%Y-%m-%d %H:%M:%S') - $1" | tee -a $LOGFILE +} + +install_dep(){ + log "Installing dependencies..." + apt update && apt -y install \ + build-essential \ + cmake \ + pkg-config \ + qtbase5-dev \ + qtchooser \ + qt5-qmake \ + qtbase5-dev-tools \ + qttools5-dev \ + qttools5-dev-tools \ + libqt5svg5-dev \ + libboost-dev \ + libssl-dev \ + libprotobuf-dev \ + protobuf-compiler \ + libprotoc-dev \ + libcap-dev \ + libxi-dev \ + libasound2-dev \ + libogg-dev \ + libsndfile1-dev \ + libspeechd-dev \ + libavahi-compat-libdnssd-dev \ + libxcb-xinerama0 \ + libzeroc-ice-dev \ + libpoco-dev \ + g++-multilib \ + jq \ + python3 \ + curl \ + git + + if [[ $? -ne 0 ]]; then + log "Failed to install dependencies" + exit 1 + fi + log "Dependencies installed successfully" +} + +clone_mumble(){ + log "Cloning the Mumble repository..." + + # Create the necessary directories + mkdir -p /usr/src/mumble/git && cd /usr/src/mumble/git + + # Fetch the latest release tag from the GitHub API + LATEST_TAG=$(curl -s "https://api.github.com/repos/mumble-voip/mumble/releases/latest" | jq -r .tag_name) + if [[ $? -ne 0 || -z "$LATEST_TAG" ]]; then + log "Failed to fetch the latest release tag" + exit 1 + fi + echo "The latest tag is: $LATEST_TAG" | tee -a $LOGFILE + + # Clone the repository + echo "Running: git clone --branch \"$LATEST_TAG\" https://github.com/mumble-voip/mumble.git ." + git clone --branch "$LATEST_TAG" https://github.com/mumble-voip/mumble.git . + if [[ $? -ne 0 ]]; then + log "Failed to clone the repository" + exit 1 + fi + + # Clone the submodules + git submodule update --init --recursive + if [[ $? -ne 0 ]]; then + log "Failed to update submodules" + exit 1 + fi + + # Create and navigate to the build directory + mkdir -p build && cd build + + echo "$LATEST_TAG" > latest_tag.txt + + # Run cmake with the specified options + cmake -Dbundled-opus=OFF -Dclient=OFF -Dstatic=ON -DCMAKE_BUILD_TYPE=Release .. + if [[ $? -ne 0 ]]; then + log "CMake configuration failed" + exit 1 + fi + + log "Repository cloned and configured successfully" +} + +build_mumble(){ + log "Building Mumble server..." + + cd /usr/src/mumble/git/build + + echo "Using $(nproc) threads to build Mumble server" | tee -a $LOGFILE + cmake --build . -j $(nproc) + if [[ $? -ne 0 ]]; then + log "Build failed" + exit 1 + fi + + ls -la | tee -a $LOGFILE + log "Build completed successfully" +} + +install_dep +clone_mumble +build_mumble diff --git a/voice/mumble/entrypoint.sh b/voice/mumble/entrypoint.sh index 281b061..e7c94f8 100644 --- a/voice/mumble/entrypoint.sh +++ b/voice/mumble/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/ash +#!/bin/bash cd /home/container # Make internal Docker IP address available to processes. @@ -6,11 +6,12 @@ INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}') export INTERNAL_IP # Print the Muble server version -mumble-server --version +echo -e "Mumble release version:" +cat /usr/local/share/mumble/latest_tag.txt # Replace Startup Variables MODIFIED_STARTUP=$(echo -e $(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')) echo -e ":/home/container$ ${MODIFIED_STARTUP}" # Run the Server -eval ${MODIFIED_STARTUP} +eval ${MODIFIED_STARTUP} \ No newline at end of file From 2dcf0a5058c15c3d5aee07dd605823fce7494720 Mon Sep 17 00:00:00 2001 From: QuintenQVD0 Date: Thu, 18 Jul 2024 16:13:03 +0200 Subject: [PATCH 56/74] node 16 does not work --- games/rust/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/rust/Dockerfile b/games/rust/Dockerfile index 87628ac..8f15aaa 100644 --- a/games/rust/Dockerfile +++ b/games/rust/Dockerfile @@ -6,7 +6,7 @@ RUN dpkg --add-architecture i386 \ && apt update \ && apt upgrade -y \ && apt install -y lib32gcc-s1 lib32stdc++6 unzip curl iproute2 tzdata libgdiplus libsdl2-2.0-0:i386 \ - && curl -sL https://deb.nodesource.com/setup_16.x | bash - \ + && curl -sL https://deb.nodesource.com/setup_14.x | bash - \ && apt install -y nodejs \ && mkdir /node_modules \ && npm install --prefix / ws \ From 3325914ee8fcc95da16d13c901d7b0a58f4bd222 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Sun, 21 Jul 2024 12:47:41 +0200 Subject: [PATCH 57/74] Update build.sh for arm64 --- voice/mumble/build.sh | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/voice/mumble/build.sh b/voice/mumble/build.sh index b50fb93..f289008 100644 --- a/voice/mumble/build.sh +++ b/voice/mumble/build.sh @@ -37,7 +37,6 @@ install_dep(){ libxcb-xinerama0 \ libzeroc-ice-dev \ libpoco-dev \ - g++-multilib \ jq \ python3 \ curl \ @@ -50,6 +49,30 @@ install_dep(){ log "Dependencies installed successfully" } +# Function to install g++-multilib on amd64 +install_amd64_multilib() { + apt -y install g++-multilib + + if [[ $? -ne 0 ]]; then + log "Failed to install amd multilib dependency" + exit 1 + fi + + log "Multilib AMD64 installed successfully" +} + +# Function to install multilib support on arm64 +install_arm64_multilib() { + apt -y install g++-multilib-x86-64-linux-gnu g++-aarch64-linux-gnu libc6-dev-armhf-cross + + if [[ $? -ne 0 ]]; then + log "Failed to install amd multilib dependency" + exit 1 + fi + + log "Multilib ARM64 installed successfully" +} + clone_mumble(){ log "Cloning the Mumble repository..." @@ -110,6 +133,23 @@ build_mumble(){ log "Build completed successfully" } +# Install normal deps install_dep + +# Detect the architecture +ARCH=$(dpkg --print-architecture) + +# Install ARCH specific deps +if [ "$ARCH" = "amd64" ]; then + echo "Detected architecture: amd64" + install_amd64_multilib +elif [ "$ARCH" = "arm64" ]; then + echo "Detected architecture: arm64" + install_arm64_multilib +else + echo "Unsupported architecture: $ARCH" + exit 1 +fi + clone_mumble build_mumble From 7ac950ba0e3a05c84f55db8c0fdd211e19914584 Mon Sep 17 00:00:00 2001 From: srnyx <25808801+srnyx@users.noreply.github.com> Date: Thu, 22 Aug 2024 18:34:03 -0400 Subject: [PATCH 58/74] Change `echo "${STARTUP}"` to `echo -e ${STARTUP}` All other `entrypoint.sh` files use this change, so just making the incorrect ones match the rest It also caused issues with complex startup commands that utilize if statements and such, so hopefully this fixes those issues --- cassandra/entrypoint.sh | 2 +- erlang/entrypoint.sh | 2 +- go/entrypoint.sh | 2 +- java/entrypoint.sh | 2 +- oses/alpine/entrypoint.sh | 2 +- voice/teaspeak/entrypoint.sh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cassandra/entrypoint.sh b/cassandra/entrypoint.sh index 36d42cd..da32902 100644 --- a/cassandra/entrypoint.sh +++ b/cassandra/entrypoint.sh @@ -29,7 +29,7 @@ fi # 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 -)") +PARSED=$(echo -e ${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. diff --git a/erlang/entrypoint.sh b/erlang/entrypoint.sh index b54a17b..a339c0a 100644 --- a/erlang/entrypoint.sh +++ b/erlang/entrypoint.sh @@ -16,7 +16,7 @@ erl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'i # 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 -)") +PARSED=$(echo -e ${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. diff --git a/go/entrypoint.sh b/go/entrypoint.sh index 402f6d4..ad6c37d 100644 --- a/go/entrypoint.sh +++ b/go/entrypoint.sh @@ -40,7 +40,7 @@ go version # 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 -)") +PARSED=$(echo -e ${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. diff --git a/java/entrypoint.sh b/java/entrypoint.sh index 76e79e0..94c36c3 100755 --- a/java/entrypoint.sh +++ b/java/entrypoint.sh @@ -40,7 +40,7 @@ java -version # 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 -)") +PARSED=$(echo -e ${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. diff --git a/oses/alpine/entrypoint.sh b/oses/alpine/entrypoint.sh index 3118289..e63ff64 100644 --- a/oses/alpine/entrypoint.sh +++ b/oses/alpine/entrypoint.sh @@ -34,7 +34,7 @@ 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 -)") +PARSED=$(echo -e ${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. diff --git a/voice/teaspeak/entrypoint.sh b/voice/teaspeak/entrypoint.sh index 9fa5709..8e2fb19 100644 --- a/voice/teaspeak/entrypoint.sh +++ b/voice/teaspeak/entrypoint.sh @@ -15,7 +15,7 @@ echo "installed youtube-dl Version:" # 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 -)") +PARSED=$(echo -e ${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. From 238cfc7ded8a511d891117a672285ec50dd2546a Mon Sep 17 00:00:00 2001 From: srnyx <25808801+srnyx@users.noreply.github.com> Date: Fri, 23 Aug 2024 22:50:31 -0400 Subject: [PATCH 59/74] Remove `eval echo "$(cat -)"` Everything still works as normal and this actually fixes complex startup commands as PR #259 was supposed to do --- cassandra/entrypoint.sh | 2 +- erlang/entrypoint.sh | 2 +- go/entrypoint.sh | 2 +- java/entrypoint.sh | 2 +- oses/alpine/entrypoint.sh | 2 +- voice/teaspeak/entrypoint.sh | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cassandra/entrypoint.sh b/cassandra/entrypoint.sh index da32902..d86fe45 100644 --- a/cassandra/entrypoint.sh +++ b/cassandra/entrypoint.sh @@ -29,7 +29,7 @@ fi # 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)") +PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') # Display the command we're running in the output, and then execute it with the env # from the container itself. diff --git a/erlang/entrypoint.sh b/erlang/entrypoint.sh index a339c0a..51300ce 100644 --- a/erlang/entrypoint.sh +++ b/erlang/entrypoint.sh @@ -16,7 +16,7 @@ erl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'i # 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)") +PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') # Display the command we're running in the output, and then execute it with the env # from the container itself. diff --git a/go/entrypoint.sh b/go/entrypoint.sh index ad6c37d..898910a 100644 --- a/go/entrypoint.sh +++ b/go/entrypoint.sh @@ -40,7 +40,7 @@ go version # 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)") +PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') # Display the command we're running in the output, and then execute it with the env # from the container itself. diff --git a/java/entrypoint.sh b/java/entrypoint.sh index 94c36c3..3eb25df 100755 --- a/java/entrypoint.sh +++ b/java/entrypoint.sh @@ -40,7 +40,7 @@ java -version # 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)") +PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') # Display the command we're running in the output, and then execute it with the env # from the container itself. diff --git a/oses/alpine/entrypoint.sh b/oses/alpine/entrypoint.sh index e63ff64..2d07411 100644 --- a/oses/alpine/entrypoint.sh +++ b/oses/alpine/entrypoint.sh @@ -34,7 +34,7 @@ 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)") +PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') # Display the command we're running in the output, and then execute it with the env # from the container itself. diff --git a/voice/teaspeak/entrypoint.sh b/voice/teaspeak/entrypoint.sh index 8e2fb19..16a19f1 100644 --- a/voice/teaspeak/entrypoint.sh +++ b/voice/teaspeak/entrypoint.sh @@ -15,7 +15,7 @@ echo "installed youtube-dl Version:" # 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g' | eval echo "$(cat -)") +PARSED=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') # Display the command we're running in the output, and then execute it with the env # from the container itself. From 54fa390139655ca7c16a86002feebe09483fcba8 Mon Sep 17 00:00:00 2001 From: srnyx <25808801+srnyx@users.noreply.github.com> Date: Sun, 25 Aug 2024 21:21:13 -0400 Subject: [PATCH 60/74] Fix #261 https://github.com/pelican-eggs/yolks/issues/261 --- cassandra/entrypoint.sh | 10 +++++----- erlang/entrypoint.sh | 10 +++++----- go/entrypoint.sh | 10 +++++----- java/entrypoint.sh | 10 +++++----- oses/alpine/entrypoint.sh | 10 +++++----- voice/teaspeak/entrypoint.sh | 10 +++++----- 6 files changed, 30 insertions(+), 30 deletions(-) diff --git a/cassandra/entrypoint.sh b/cassandra/entrypoint.sh index d86fe45..b91ad64 100644 --- a/cassandra/entrypoint.sh +++ b/cassandra/entrypoint.sh @@ -29,10 +29,10 @@ fi # 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g') -# 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@pelican~ \033[0m%s\n" "$PARSED" +# Display the command we're running in the output, and then execute it with eval +printf "\033[1m\033[33mcontainer@pelican~ \033[0m" +echo "$PARSED" # shellcheck disable=SC2086 -exec env ${PARSED} +eval "$PARSED" diff --git a/erlang/entrypoint.sh b/erlang/entrypoint.sh index 51300ce..b657169 100644 --- a/erlang/entrypoint.sh +++ b/erlang/entrypoint.sh @@ -16,10 +16,10 @@ erl -noshell -eval 'erlang:display(erlang:system_info(system_version))' -eval 'i # 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g') -# 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@pelican~ \033[0m%s\n" "$PARSED" +# Display the command we're running in the output, and then execute it with eval +printf "\033[1m\033[33mcontainer@pelican~ \033[0m" +echo "$PARSED" # shellcheck disable=SC2086 -exec env ${PARSED} +eval "$PARSED" diff --git a/go/entrypoint.sh b/go/entrypoint.sh index 898910a..5de2ba6 100644 --- a/go/entrypoint.sh +++ b/go/entrypoint.sh @@ -40,10 +40,10 @@ go version # 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g') -# 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@pelican~ \033[0m%s\n" "$PARSED" +# Display the command we're running in the output, and then execute it with eval +printf "\033[1m\033[33mcontainer@pelican~ \033[0m" +echo "$PARSED" # shellcheck disable=SC2086 -exec env ${PARSED} +eval "$PARSED" diff --git a/java/entrypoint.sh b/java/entrypoint.sh index 3eb25df..23b662a 100755 --- a/java/entrypoint.sh +++ b/java/entrypoint.sh @@ -40,10 +40,10 @@ java -version # 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g') -# 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@pelican~ \033[0m%s\n" "$PARSED" +# Display the command we're running in the output, and then execute it with eval +printf "\033[1m\033[33mcontainer@pelican~ \033[0m" +echo "$PARSED" # shellcheck disable=SC2086 -eval ${PARSED} +eval "$PARSED" diff --git a/oses/alpine/entrypoint.sh b/oses/alpine/entrypoint.sh index 2d07411..2b81022 100644 --- a/oses/alpine/entrypoint.sh +++ b/oses/alpine/entrypoint.sh @@ -34,11 +34,11 @@ 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g') -# 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@pelican~ \033[0m%s\n" "$PARSED" +# Display the command we're running in the output, and then execute it with eval +printf "\033[1m\033[33mcontainer@pelican~ \033[0m" +echo "$PARSED" # shellcheck disable=SC2086 -exec env ${PARSED} +eval "$PARSED" diff --git a/voice/teaspeak/entrypoint.sh b/voice/teaspeak/entrypoint.sh index 16a19f1..6142333 100644 --- a/voice/teaspeak/entrypoint.sh +++ b/voice/teaspeak/entrypoint.sh @@ -15,10 +15,10 @@ echo "installed youtube-dl Version:" # 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 -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g') +PARSED=$(echo "$STARTUP" | sed -e 's/{{/${/g' -e 's/}}/}/g') -# 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@pelican~ \033[0m%s\n" "$PARSED" +# Display the command we're running in the output, and then execute it with eval +printf "\033[1m\033[33mcontainer@pelican~ \033[0m" +echo "$PARSED" # shellcheck disable=SC2086 -exec env ${PARSED} +eval "$PARSED" From 3c35b3e1e13a26c61f74f11c04d0fefe41ae954a Mon Sep 17 00:00:00 2001 From: mja00 Date: Wed, 4 Sep 2024 11:00:05 -0400 Subject: [PATCH 61/74] fix: move app 1007 before the game --- games/source/entrypoint.sh | 4 ++-- games/valheim/entrypoint.sh | 2 +- mono/entrypoint.sh | 4 ++-- steamcmd/entrypoint.sh | 4 ++-- wine/entrypoint.sh | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/games/source/entrypoint.sh b/games/source/entrypoint.sh index 38b7318..8562f11 100644 --- a/games/source/entrypoint.sh +++ b/games/source/entrypoint.sh @@ -53,9 +53,9 @@ if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then # Update Source Server if [ ! -z ${SRCDS_APPID} ]; then if [ "${STEAM_USER}" == "anonymous" ]; then - ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update 1007 +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit else - numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update 1007 +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit fi else echo -e "No appid set. Starting Server" diff --git a/games/valheim/entrypoint.sh b/games/valheim/entrypoint.sh index 5794e92..9bfe451 100644 --- a/games/valheim/entrypoint.sh +++ b/games/valheim/entrypoint.sh @@ -21,7 +21,7 @@ fi if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then # Update Source Server if [ ! -z ${SRCDS_APPID} ]; then - ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update 1007 +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit else echo -e "No appid set. Starting Server" fi diff --git a/mono/entrypoint.sh b/mono/entrypoint.sh index f9497db..2700f19 100644 --- a/mono/entrypoint.sh +++ b/mono/entrypoint.sh @@ -30,9 +30,9 @@ if [ ! -z "${SRCDS_APPID}" ]; then # Update Source Server if [ ! -z ${SRCDS_APPID} ]; then if [ "${STEAM_USER}" == "anonymous" ]; then - ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update 1007 +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit else - numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update 1007 +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit fi else echo -e "No appid set. Starting Server" diff --git a/steamcmd/entrypoint.sh b/steamcmd/entrypoint.sh index 9f582d6..891d0f0 100644 --- a/steamcmd/entrypoint.sh +++ b/steamcmd/entrypoint.sh @@ -69,9 +69,9 @@ if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then # Update Source Server if [ ! -z ${SRCDS_APPID} ]; then if [ "${STEAM_USER}" == "anonymous" ]; then - ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) ${INSTALL_FLAGS} $( [[ "${VALIDATE}" == "1" ]] && printf %s 'validate' ) +quit + ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update 1007 +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) ${INSTALL_FLAGS} $( [[ "${VALIDATE}" == "1" ]] && printf %s 'validate' ) +quit else - numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) ${INSTALL_FLAGS} $( [[ "${VALIDATE}" == "1" ]] && printf %s 'validate' ) +quit + numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update 1007 +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) ${INSTALL_FLAGS} $( [[ "${VALIDATE}" == "1" ]] && printf %s 'validate' ) +quit fi else echo -e "No appid set. Starting Server" diff --git a/wine/entrypoint.sh b/wine/entrypoint.sh index 4a24fa3..d79d6db 100644 --- a/wine/entrypoint.sh +++ b/wine/entrypoint.sh @@ -26,9 +26,9 @@ if [ -z ${AUTO_UPDATE} ] || [ "${AUTO_UPDATE}" == "1" ]; then # Update Source Server if [ ! -z ${SRCDS_APPID} ]; then if [ "${STEAM_USER}" == "anonymous" ]; then - ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update 1007 +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit else - numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update ${SRCDS_APPID} +app_update 1007 $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit + numactl --physcpubind=+0 ./steamcmd/steamcmd.sh +force_install_dir /home/container +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} $( [[ "${WINDOWS_INSTALL}" == "1" ]] && printf %s '+@sSteamCmdForcePlatformType windows' ) +app_update 1007 +app_update ${SRCDS_APPID} $( [[ -z ${SRCDS_BETAID} ]] || printf %s "-beta ${SRCDS_BETAID}" ) $( [[ -z ${SRCDS_BETAPASS} ]] || printf %s "-betapassword ${SRCDS_BETAPASS}" ) $( [[ -z ${HLDS_GAME} ]] || printf %s "+app_set_config 90 mod ${HLDS_GAME}" ) $( [[ -z ${VALIDATE} ]] || printf %s "validate" ) +quit fi else echo -e "No appid set. Starting Server" From a42febc72c22d2c6c298efb1deaecaa4022c7d93 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Sat, 28 Sep 2024 11:48:15 +0200 Subject: [PATCH 62/74] Fix MariaDb 11.4 build --- mariadb/11.4/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mariadb/11.4/Dockerfile b/mariadb/11.4/Dockerfile index 2b6482d..4bb949e 100644 --- a/mariadb/11.4/Dockerfile +++ b/mariadb/11.4/Dockerfile @@ -8,7 +8,7 @@ LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" ENV DEBIAN_FRONTEND noninteractive RUN apt update -y \ - && apt install -y netcat \ + && apt install -y netcat-traditional \ && useradd -d /home/container -m container -s /bin/bash USER container From bc9645e8bf3ba7734a7bd9e59b87d77ad82938ac Mon Sep 17 00:00:00 2001 From: Torsten Widmann Date: Sat, 28 Sep 2024 12:09:36 +0200 Subject: [PATCH 63/74] add pnpm to node images (#252) * add pnpm to node images * removed pnpm from 12 till 17, because as pnpm is only available from version 18 --- nodejs/12/Dockerfile | 2 +- nodejs/14/Dockerfile | 2 +- nodejs/18/Dockerfile | 5 +++++ nodejs/19/Dockerfile | 5 +++++ nodejs/20/Dockerfile | 5 +++++ nodejs/21/Dockerfile | 5 +++++ 6 files changed, 22 insertions(+), 2 deletions(-) diff --git a/nodejs/12/Dockerfile b/nodejs/12/Dockerfile index e85daf7..348c9fd 100644 --- a/nodejs/12/Dockerfile +++ b/nodejs/12/Dockerfile @@ -12,7 +12,7 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container -STOPSIGNAL SIGINT +STOPSIGNAL SIGINT COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/nodejs/14/Dockerfile b/nodejs/14/Dockerfile index fe2764d..c0d53ee 100644 --- a/nodejs/14/Dockerfile +++ b/nodejs/14/Dockerfile @@ -12,7 +12,7 @@ USER container ENV USER=container HOME=/home/container WORKDIR /home/container -STOPSIGNAL SIGINT +STOPSIGNAL SIGINT COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/nodejs/18/Dockerfile b/nodejs/18/Dockerfile index 6abcc86..6117c85 100644 --- a/nodejs/18/Dockerfile +++ b/nodejs/18/Dockerfile @@ -8,6 +8,11 @@ RUN apt update \ RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global +# install pnpm +RUN npm install -g corepack +RUN corepack enable +RUN corepack prepare pnpm@latest --activate + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/nodejs/19/Dockerfile b/nodejs/19/Dockerfile index 4bfe3c1..c3f3b9d 100644 --- a/nodejs/19/Dockerfile +++ b/nodejs/19/Dockerfile @@ -8,6 +8,11 @@ RUN apt update \ RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global +# install pnpm +RUN npm install -g corepack +RUN corepack enable +RUN corepack prepare pnpm@latest --activate + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/nodejs/20/Dockerfile b/nodejs/20/Dockerfile index a42270f..691e8b2 100644 --- a/nodejs/20/Dockerfile +++ b/nodejs/20/Dockerfile @@ -8,6 +8,11 @@ RUN apt update \ RUN npm install npm@latest typescript ts-node @types/node --location=global +# install pnpm +RUN npm install -g corepack +RUN corepack enable +RUN corepack prepare pnpm@latest --activate + USER container ENV USER=container HOME=/home/container WORKDIR /home/container diff --git a/nodejs/21/Dockerfile b/nodejs/21/Dockerfile index 7de0f65..8f6953c 100644 --- a/nodejs/21/Dockerfile +++ b/nodejs/21/Dockerfile @@ -8,6 +8,11 @@ RUN apt update \ RUN npm install npm@latest typescript ts-node @types/node --location=global +# install pnpm +RUN npm install -g corepack +RUN corepack enable +RUN corepack prepare pnpm@latest --activate + USER container ENV USER=container HOME=/home/container WORKDIR /home/container From a98977b5dff06210149c7dd5f82a2f22dfbbb48a Mon Sep 17 00:00:00 2001 From: Red-Thirten Date: Tue, 15 Oct 2024 20:08:30 -0700 Subject: [PATCH 64/74] [oses/ubuntu] Bump Ubuntu to latest LTS (#265) - Bumps Ubuntu to latest LTS version 24.04 (Noble Numbat) - Unified the Dockerfile's style with Debian's Dockerfile (4-space even indenting) - Added `org.opencontainers` labels (similar to Debian's Dockerfile) - Fixed depreciated `DEBIAN_FRONTEND` env line by adding `=` - Bumped `netcat` package to updated `netcat-openbsd` - Bumped `libncurses5` package to updated `libncurses6` - Bumped `libncursesw5` package to updated `libncursesw6` --- oses/ubuntu/Dockerfile | 44 +++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/oses/ubuntu/Dockerfile b/oses/ubuntu/Dockerfile index aec60e1..a4ea9e1 100644 --- a/oses/ubuntu/Dockerfile +++ b/oses/ubuntu/Dockerfile @@ -1,31 +1,35 @@ -FROM --platform=$TARGETOS/$TARGETARCH ubuntu:22.04 +FROM --platform=$TARGETOS/$TARGETARCH ubuntu:24.04 -LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" +LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" -ENV DEBIAN_FRONTEND noninteractive +LABEL org.opencontainers.image.source="https://github.com/pelican-eggs/yolks" +LABEL org.opencontainers.image.licenses=MIT -## add container user -RUN useradd -m -d /home/container -s /bin/bash container +ENV DEBIAN_FRONTEND=noninteractive -## update base packages -RUN apt update \ - && apt upgrade -y +## Add container user +RUN useradd -m -d /home/container -s /bin/bash container +ENV USER=container HOME=/home/container -## install dependencies -RUN apt install -y gcc g++ libgcc1 libc++-dev 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 \ - libfontconfig icu-devtools libunwind8 sqlite3 libsqlite3-dev libzip4 locales ffmpeg apt-transport-https init-system-helpers \ - libcurl3-gnutls liblua5.1-0 libluajit-5.1-2 libsqlite3-0 bzip2 zlib1g libevent-dev libmariadb-dev-compat libmariadb-dev libssl-dev \ - libfluidsynth-dev libmariadb-dev libicu-dev libssl3 libduktape207 libjsoncpp-dev libleveldb1d libncurses5 libncursesw5 tini +## Update base packages +RUN apt update \ + && apt upgrade -y -## configure locale -RUN update-locale lang=en_US.UTF-8 \ - && dpkg-reconfigure --frontend noninteractive locales +## Install dependencies +RUN apt install -y gcc g++ libgcc1 libc++-dev gdb libc6 git wget curl tar zip unzip binutils xz-utils liblzo2-2 cabextract iproute2 net-tools netcat-openbsd telnet libatomic1 libsdl1.2debian libsdl2-2.0-0 \ + libfontconfig icu-devtools libunwind8 sqlite3 libsqlite3-dev libzip4 locales ffmpeg apt-transport-https init-system-helpers \ + libcurl3-gnutls liblua5.1-0 libluajit-5.1-2 libsqlite3-0 bzip2 zlib1g libevent-dev libmariadb-dev-compat libmariadb-dev libssl-dev \ + libfluidsynth-dev libmariadb-dev libicu-dev libssl3 libduktape207 libjsoncpp-dev libleveldb1d libncurses6 libncursesw6 tini -WORKDIR /home/container +## Configure locale +RUN update-locale lang=en_US.UTF-8 \ + && dpkg-reconfigure --frontend noninteractive locales -STOPSIGNAL SIGINT +WORKDIR /home/container + +STOPSIGNAL SIGINT COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh -ENTRYPOINT ["/usr/bin/tini", "-g", "--"] -CMD ["/entrypoint.sh"] \ No newline at end of file +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] From e8a541d1eef84140ea9397cb8c89bd2cb88d1c81 Mon Sep 17 00:00:00 2001 From: It's Davitt Date: Wed, 23 Oct 2024 18:55:54 +0700 Subject: [PATCH 65/74] Adding Nodejs (v22, v23) --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f0a211c..02a0dbe 100644 --- a/README.md +++ b/README.md @@ -234,7 +234,11 @@ is tagged correctly. * `ghcr.io/parkervcp/yolks:nodejs_20` * [`node21`](/nodejs/21) * `ghcr.io/parkervcp/yolks:nodejs_21` - +* [`node21`](/nodejs/22) + * `ghcr.io/parkervcp/yolks:nodejs_22` +* [`node23`](/nodejs/23) + * `ghcr.io/parkervcp/yolks:nodejs_23` + ### [PostgreSQL](/postgres) * [`Postgres 9`](/postgres/9) From 68f92a85abb2d3b9d2dd5279e07c2f0c20d6864f Mon Sep 17 00:00:00 2001 From: mydapitt Date: Wed, 23 Oct 2024 19:13:14 +0700 Subject: [PATCH 66/74] Added Nodejs (v22, v23), slight adjustments to some Nodejs Dockerfiles - Added Nodejs version 22 and 23 - Starting Nodejs 20, 22, and above will not use the Debian version code name to follow the release of the latest Debian operating system version in the future - In Dockerfile Nodejs 18, and 21 will install npm version 10.x.x --- .github/workflows/nodejs.yml | 2 ++ nodejs/18/Dockerfile | 2 +- nodejs/20/Dockerfile | 2 +- nodejs/22/Dockerfile | 25 +++++++++++++++++++++++++ nodejs/23/Dockerfile | 25 +++++++++++++++++++++++++ 5 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 nodejs/22/Dockerfile create mode 100644 nodejs/23/Dockerfile diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 39f3592..c327df6 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -24,6 +24,8 @@ jobs: - 19 - 20 - 21 + - 22 + - 23 steps: - uses: actions/checkout@v4 # Setup QEMU for ARM64 Build diff --git a/nodejs/18/Dockerfile b/nodejs/18/Dockerfile index 6117c85..ee3e920 100644 --- a/nodejs/18/Dockerfile +++ b/nodejs/18/Dockerfile @@ -6,7 +6,7 @@ RUN apt update \ && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 tini \ && useradd -m -d /home/container container -RUN npm install npm@9.8.1 typescript ts-node @types/node --location=global +RUN npm install npm@10.x.x typescript ts-node @types/node --location=global # install pnpm RUN npm install -g corepack diff --git a/nodejs/20/Dockerfile b/nodejs/20/Dockerfile index 691e8b2..a921fac 100644 --- a/nodejs/20/Dockerfile +++ b/nodejs/20/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH node:20-bookworm-slim +FROM --platform=$TARGETOS/$TARGETARCH node:20-slim LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/nodejs/22/Dockerfile b/nodejs/22/Dockerfile new file mode 100644 index 0000000..4877517 --- /dev/null +++ b/nodejs/22/Dockerfile @@ -0,0 +1,25 @@ +FROM --platform=$TARGETOS/$TARGETARCH node:22-slim + +LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" + +RUN apt update \ + && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 tini \ + && useradd -m -d /home/container container + +RUN npm install npm@10.x.x typescript ts-node @types/node --location=global + +# install pnpm +RUN npm install -g corepack +RUN corepack enable +RUN corepack prepare pnpm@latest --activate + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +STOPSIGNAL SIGINT + +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] diff --git a/nodejs/23/Dockerfile b/nodejs/23/Dockerfile new file mode 100644 index 0000000..874eab7 --- /dev/null +++ b/nodejs/23/Dockerfile @@ -0,0 +1,25 @@ +FROM --platform=$TARGETOS/$TARGETARCH node:23-slim + +LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" + +RUN apt update \ + && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 tini \ + && useradd -m -d /home/container container + +RUN npm install npm@latest typescript ts-node @types/node --location=global + +# install pnpm +RUN npm install -g corepack +RUN corepack enable +RUN corepack prepare pnpm@latest --activate + +USER container +ENV USER=container HOME=/home/container +WORKDIR /home/container + +STOPSIGNAL SIGINT + +COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/usr/bin/tini", "-g", "--"] +CMD ["/entrypoint.sh"] From 755085d2d9b45568c816ccc949be7b895356fb86 Mon Sep 17 00:00:00 2001 From: mydapitt Date: Wed, 23 Oct 2024 19:13:22 +0700 Subject: [PATCH 67/74] Added Nodejs (v22, v23), slight adjustments to some Nodejs Dockerfiles - Added Nodejs version 22 and 23 - Starting Nodejs 20, 22, and above will not use the Debian version code name to follow the release of the latest Debian operating system version in the future - In Dockerfile Nodejs 18, and 21 will install npm version 10.x.x --- nodejs/21/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodejs/21/Dockerfile b/nodejs/21/Dockerfile index 8f6953c..fd28e79 100644 --- a/nodejs/21/Dockerfile +++ b/nodejs/21/Dockerfile @@ -6,7 +6,7 @@ RUN apt update \ && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 tini \ && useradd -m -d /home/container container -RUN npm install npm@latest typescript ts-node @types/node --location=global +RUN npm install npm@10.x.x typescript ts-node @types/node --location=global # install pnpm RUN npm install -g corepack From bb8092b59257621cc53dba549db03bd97cff4df2 Mon Sep 17 00:00:00 2001 From: mydapitt Date: Wed, 23 Oct 2024 19:40:51 +0700 Subject: [PATCH 68/74] Add 'bookworm' label to Nodejs v20, v22, and v23 base image --- nodejs/20/Dockerfile | 2 +- nodejs/22/Dockerfile | 4 ++-- nodejs/23/Dockerfile | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nodejs/20/Dockerfile b/nodejs/20/Dockerfile index a921fac..691e8b2 100644 --- a/nodejs/20/Dockerfile +++ b/nodejs/20/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH node:20-slim +FROM --platform=$TARGETOS/$TARGETARCH node:20-bookworm-slim LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" diff --git a/nodejs/22/Dockerfile b/nodejs/22/Dockerfile index 4877517..e5b53b3 100644 --- a/nodejs/22/Dockerfile +++ b/nodejs/22/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH node:22-slim +FROM --platform=$TARGETOS/$TARGETARCH node:22-bookworm-slim LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" @@ -6,7 +6,7 @@ RUN apt update \ && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 tini \ && useradd -m -d /home/container container -RUN npm install npm@10.x.x typescript ts-node @types/node --location=global +RUN npm install npm@latest typescript ts-node @types/node --location=global # install pnpm RUN npm install -g corepack diff --git a/nodejs/23/Dockerfile b/nodejs/23/Dockerfile index 874eab7..5cb4278 100644 --- a/nodejs/23/Dockerfile +++ b/nodejs/23/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH node:23-slim +FROM --platform=$TARGETOS/$TARGETARCH node:23-bookworm-slim LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" From 8331bdfa4239f8cc866cf7851b3a71c9e5cd3b63 Mon Sep 17 00:00:00 2001 From: MartinOscar <40749467+RMartinOscar@users.noreply.github.com> Date: Wed, 30 Oct 2024 00:30:32 +0100 Subject: [PATCH 69/74] Update Dockerfile --- games/rust/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/games/rust/Dockerfile b/games/rust/Dockerfile index 8f15aaa..3a11f02 100644 --- a/games/rust/Dockerfile +++ b/games/rust/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim +FROM --platform=$TARGETOS/$TARGETARCH node:18-slim ENV DEBIAN_FRONTEND=noninteractive @@ -6,10 +6,8 @@ RUN dpkg --add-architecture i386 \ && apt update \ && apt upgrade -y \ && apt install -y lib32gcc-s1 lib32stdc++6 unzip curl iproute2 tzdata libgdiplus libsdl2-2.0-0:i386 \ - && curl -sL https://deb.nodesource.com/setup_14.x | bash - \ - && apt install -y nodejs \ && mkdir /node_modules \ - && npm install --prefix / ws \ + && npm install --prefix /node_modules ws \ && useradd -d /home/container -m container USER container From d5d2194f6b1715e5416138d83d875ac3e9c4a392 Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Thu, 31 Oct 2024 21:58:06 -0400 Subject: [PATCH 70/74] corrected new lines in file ran dos2unix on wrapper.js --- games/rust/wrapper.js | 278 +++++++++++++++++++++--------------------- 1 file changed, 139 insertions(+), 139 deletions(-) diff --git a/games/rust/wrapper.js b/games/rust/wrapper.js index ad79ced..f4f6cc5 100644 --- a/games/rust/wrapper.js +++ b/games/rust/wrapper.js @@ -1,140 +1,140 @@ -#!/usr/bin/env node - -var startupCmd = ""; -const fs = require("fs"); -fs.writeFile("latest.log", "", (err) => { - if (err) console.log("Callback error in appendFile:" + err); -}); - -var args = process.argv.splice(process.execArgv.length + 2); -for (var i = 0; i < args.length; i++) { - if (i === args.length - 1) { - startupCmd += args[i]; - } else { - startupCmd += args[i] + " "; - } -} - -if (startupCmd.length < 1) { - console.log("Error: Please specify a startup command."); - process.exit(); -} - -const seenPercentage = {}; - -function filter(data) { - const str = data.toString(); - if (str.startsWith("Loading Prefab Bundle ")) { // Rust seems to spam the same percentage, so filter out any duplicates. - const percentage = str.substr("Loading Prefab Bundle ".length); - if (seenPercentage[percentage]) return; - - seenPercentage[percentage] = true; - } - - console.log(str); -} - -var exec = require("child_process").exec; -console.log("Starting Rust..."); - -var exited = false; -const gameProcess = exec(startupCmd); -gameProcess.stdout.on('data', filter); -gameProcess.stderr.on('data', filter); -gameProcess.on('exit', function (code, signal) { - exited = true; - - if (code) { - console.log("Main game process exited with code " + code); - // process.exit(code); - } -}); - -function initialListener(data) { - const command = data.toString().trim(); - if (command === 'quit') { - gameProcess.kill('SIGTERM'); - } else { - console.log('Unable to run "' + command + '" due to RCON not being connected yet.'); - } -} -process.stdin.resume(); -process.stdin.setEncoding("utf8"); -process.stdin.on('data', initialListener); - -process.on('exit', function (code) { - if (exited) return; - - console.log("Received request to stop the process, stopping the game..."); - gameProcess.kill('SIGTERM'); -}); - -var waiting = true; -var poll = function () { - function createPacket(command) { - var packet = { - Identifier: -1, - Message: command, - Name: "WebRcon" - }; - return JSON.stringify(packet); - } - - var serverHostname = process.env.RCON_IP ? process.env.RCON_IP : "localhost"; - var serverPort = process.env.RCON_PORT; - var serverPassword = process.env.RCON_PASS; - var WebSocket = require("ws"); - var ws = new WebSocket("ws://" + serverHostname + ":" + serverPort + "/" + serverPassword); - - ws.on("open", function open() { - console.log("Connected to RCON. Generating the map now. Please wait until the server status switches to \"Running\"."); - waiting = false; - - // Hack to fix broken console output - ws.send(createPacket('status')); - - process.stdin.removeListener('data', initialListener); - gameProcess.stdout.removeListener('data', filter); - gameProcess.stderr.removeListener('data', filter); - process.stdin.on('data', function (text) { - ws.send(createPacket(text)); - }); - }); - - ws.on("message", function (data, flags) { - try { - var json = JSON.parse(data); - if (json !== undefined) { - if (json.Message !== undefined && json.Message.length > 0) { - console.log(json.Message); - const fs = require("fs"); - fs.appendFile("latest.log", "\n" + json.Message, (err) => { - if (err) console.log("Callback error in appendFile:" + err); - }); - } - } else { - console.log("Error: Invalid JSON received"); - } - } catch (e) { - if (e) { - console.log(e); - } - } - }); - - ws.on("error", function (err) { - waiting = true; - console.log("Waiting for RCON to come up..."); - setTimeout(poll, 5000); - }); - - ws.on("close", function () { - if (!waiting) { - console.log("Connection to server closed."); - - exited = true; - process.exit(); - } - }); -} +#!/usr/bin/env node + +var startupCmd = ""; +const fs = require("fs"); +fs.writeFile("latest.log", "", (err) => { + if (err) console.log("Callback error in appendFile:" + err); +}); + +var args = process.argv.splice(process.execArgv.length + 2); +for (var i = 0; i < args.length; i++) { + if (i === args.length - 1) { + startupCmd += args[i]; + } else { + startupCmd += args[i] + " "; + } +} + +if (startupCmd.length < 1) { + console.log("Error: Please specify a startup command."); + process.exit(); +} + +const seenPercentage = {}; + +function filter(data) { + const str = data.toString(); + if (str.startsWith("Loading Prefab Bundle ")) { // Rust seems to spam the same percentage, so filter out any duplicates. + const percentage = str.substr("Loading Prefab Bundle ".length); + if (seenPercentage[percentage]) return; + + seenPercentage[percentage] = true; + } + + console.log(str); +} + +var exec = require("child_process").exec; +console.log("Starting Rust..."); + +var exited = false; +const gameProcess = exec(startupCmd); +gameProcess.stdout.on('data', filter); +gameProcess.stderr.on('data', filter); +gameProcess.on('exit', function (code, signal) { + exited = true; + + if (code) { + console.log("Main game process exited with code " + code); + // process.exit(code); + } +}); + +function initialListener(data) { + const command = data.toString().trim(); + if (command === 'quit') { + gameProcess.kill('SIGTERM'); + } else { + console.log('Unable to run "' + command + '" due to RCON not being connected yet.'); + } +} +process.stdin.resume(); +process.stdin.setEncoding("utf8"); +process.stdin.on('data', initialListener); + +process.on('exit', function (code) { + if (exited) return; + + console.log("Received request to stop the process, stopping the game..."); + gameProcess.kill('SIGTERM'); +}); + +var waiting = true; +var poll = function () { + function createPacket(command) { + var packet = { + Identifier: -1, + Message: command, + Name: "WebRcon" + }; + return JSON.stringify(packet); + } + + var serverHostname = process.env.RCON_IP ? process.env.RCON_IP : "localhost"; + var serverPort = process.env.RCON_PORT; + var serverPassword = process.env.RCON_PASS; + var WebSocket = require("ws"); + var ws = new WebSocket("ws://" + serverHostname + ":" + serverPort + "/" + serverPassword); + + ws.on("open", function open() { + console.log("Connected to RCON. Generating the map now. Please wait until the server status switches to \"Running\"."); + waiting = false; + + // Hack to fix broken console output + ws.send(createPacket('status')); + + process.stdin.removeListener('data', initialListener); + gameProcess.stdout.removeListener('data', filter); + gameProcess.stderr.removeListener('data', filter); + process.stdin.on('data', function (text) { + ws.send(createPacket(text)); + }); + }); + + ws.on("message", function (data, flags) { + try { + var json = JSON.parse(data); + if (json !== undefined) { + if (json.Message !== undefined && json.Message.length > 0) { + console.log(json.Message); + const fs = require("fs"); + fs.appendFile("latest.log", "\n" + json.Message, (err) => { + if (err) console.log("Callback error in appendFile:" + err); + }); + } + } else { + console.log("Error: Invalid JSON received"); + } + } catch (e) { + if (e) { + console.log(e); + } + } + }); + + ws.on("error", function (err) { + waiting = true; + console.log("Waiting for RCON to come up..."); + setTimeout(poll, 5000); + }); + + ws.on("close", function () { + if (!waiting) { + console.log("Connection to server closed."); + + exited = true; + process.exit(); + } + }); +} poll(); \ No newline at end of file From 51edfd31b64107b635a3423a48dbcf624916f1a9 Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Thu, 31 Oct 2024 21:59:23 -0400 Subject: [PATCH 71/74] Changed wrapper location Installing `node_modules` in `/` fails made a directory named `/wrapper/` and moved files there to resolve. updated entrypoint to match new location. --- games/rust/Dockerfile | 8 ++++---- games/rust/entrypoint.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/games/rust/Dockerfile b/games/rust/Dockerfile index 3a11f02..540f444 100644 --- a/games/rust/Dockerfile +++ b/games/rust/Dockerfile @@ -6,8 +6,8 @@ RUN dpkg --add-architecture i386 \ && apt update \ && apt upgrade -y \ && apt install -y lib32gcc-s1 lib32stdc++6 unzip curl iproute2 tzdata libgdiplus libsdl2-2.0-0:i386 \ - && mkdir /node_modules \ - && npm install --prefix /node_modules ws \ + && mkdir /wrapper \ + && npm install --prefix /wrapper ws \ && useradd -d /home/container -m container USER container @@ -16,6 +16,6 @@ ENV USER=container HOME=/home/container WORKDIR /home/container COPY ./entrypoint.sh /entrypoint.sh -COPY ./wrapper.js /wrapper.js +COPY ./wrapper.js /wrapper/wrapper.js -CMD [ "/bin/bash", "/entrypoint.sh" ] +CMD [ "/bin/bash", "/entrypoint.sh" ] \ No newline at end of file diff --git a/games/rust/entrypoint.sh b/games/rust/entrypoint.sh index e7c7dbf..03b51fb 100644 --- a/games/rust/entrypoint.sh +++ b/games/rust/entrypoint.sh @@ -45,4 +45,4 @@ fi export LD_LIBRARY_PATH=$(pwd)/RustDedicated_Data/Plugins/x86_64:$(pwd) # Run the Server -wrapper "${MODIFIED_STARTUP}" \ No newline at end of file +/wrapper/wrapper.js "${MODIFIED_STARTUP}" \ No newline at end of file From 0568f685282e45719ab32b522b7a3041d99859b9 Mon Sep 17 00:00:00 2001 From: "Michael (Parker) Parker" Date: Thu, 31 Oct 2024 22:55:26 -0400 Subject: [PATCH 72/74] Make wrapper executable forgot this part, --- games/rust/wrapper.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 games/rust/wrapper.js diff --git a/games/rust/wrapper.js b/games/rust/wrapper.js old mode 100644 new mode 100755 From 4384852949c209b902d38797a5abdce765bc89b3 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Fri, 1 Nov 2024 13:37:10 +0100 Subject: [PATCH 73/74] no need for nodejs 22 --- .github/workflows/nodejs.yml | 1 - README.md | 2 -- nodejs/22/Dockerfile | 25 ------------------------- 3 files changed, 28 deletions(-) delete mode 100644 nodejs/22/Dockerfile diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index c327df6..df3883c 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -24,7 +24,6 @@ jobs: - 19 - 20 - 21 - - 22 - 23 steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index 02a0dbe..a10e18e 100644 --- a/README.md +++ b/README.md @@ -234,8 +234,6 @@ is tagged correctly. * `ghcr.io/parkervcp/yolks:nodejs_20` * [`node21`](/nodejs/21) * `ghcr.io/parkervcp/yolks:nodejs_21` -* [`node21`](/nodejs/22) - * `ghcr.io/parkervcp/yolks:nodejs_22` * [`node23`](/nodejs/23) * `ghcr.io/parkervcp/yolks:nodejs_23` diff --git a/nodejs/22/Dockerfile b/nodejs/22/Dockerfile deleted file mode 100644 index e5b53b3..0000000 --- a/nodejs/22/Dockerfile +++ /dev/null @@ -1,25 +0,0 @@ -FROM --platform=$TARGETOS/$TARGETARCH node:22-bookworm-slim - -LABEL author="Michael Parker" maintainer="parker@pterodactyl.io" - -RUN apt update \ - && apt -y install ffmpeg iproute2 git sqlite3 libsqlite3-dev python3 python3-dev ca-certificates dnsutils tzdata zip tar curl build-essential libtool iputils-ping libnss3 tini \ - && useradd -m -d /home/container container - -RUN npm install npm@latest typescript ts-node @types/node --location=global - -# install pnpm -RUN npm install -g corepack -RUN corepack enable -RUN corepack prepare pnpm@latest --activate - -USER container -ENV USER=container HOME=/home/container -WORKDIR /home/container - -STOPSIGNAL SIGINT - -COPY --chown=container:container ./../entrypoint.sh /entrypoint.sh -RUN chmod +x /entrypoint.sh -ENTRYPOINT ["/usr/bin/tini", "-g", "--"] -CMD ["/entrypoint.sh"] From f792807176762834398b07de26e544346f1397a2 Mon Sep 17 00:00:00 2001 From: Quinten <67589015+QuintenQVD0@users.noreply.github.com> Date: Tue, 12 Nov 2024 09:04:19 +0100 Subject: [PATCH 74/74] Add dotnet 8 to altv --- games/altv/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/games/altv/Dockerfile b/games/altv/Dockerfile index ae54973..0422fae 100644 --- a/games/altv/Dockerfile +++ b/games/altv/Dockerfile @@ -18,7 +18,7 @@ RUN apt update -y \ RUN wget https://packages.microsoft.com/config/debian/12/packages-microsoft-prod.deb -O packages-microsoft-prod.deb \ && dpkg -i packages-microsoft-prod.deb \ && apt update -y \ - && apt install -y dotnet-sdk-6.0 dotnet-sdk-7.0 libgdiplus + && apt install -y dotnet-sdk-6.0 dotnet-sdk-7.0 dotnet-sdk-8.0 libgdiplus RUN update-locale lang=en_US.UTF-8 \ && dpkg-reconfigure --frontend noninteractive locales @@ -32,4 +32,4 @@ STOPSIGNAL SIGINT COPY --chown=container:container ./entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh ENTRYPOINT ["/usr/bin/tini", "-g", "--"] -CMD ["/entrypoint.sh"] \ No newline at end of file +CMD ["/entrypoint.sh"]