Adjust entrypoints and add steam sniper
This commit is contained in:
parent
1cf361059c
commit
e8dec3f984
25 changed files with 157 additions and 40 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -212,6 +212,7 @@ pipeline {
|
|||
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_dotnet steamcmd/dotnet
|
||||
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_proton steamcmd/proton
|
||||
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_proton8 steamcmd/proton_8
|
||||
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_sniper steamcmd/sniper
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
@ -231,6 +232,7 @@ pipeline {
|
|||
docker push git.zontreck.com/ariascreations/yolks:steamcmd_dotnet
|
||||
docker push git.zontreck.com/ariascreations/yolks:steamcmd_proton
|
||||
docker push git.zontreck.com/ariascreations/yolks:steamcmd_proton8
|
||||
docker push git.zontreck.com/ariascreations/yolks:steamcmd_sniper
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
|
|
@ -15,5 +15,5 @@ STOPSIGNAL SIGINT
|
|||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -5,7 +5,7 @@ LABEL upstream="https://github.com/pelican-eggs/yolks"
|
|||
|
||||
RUN pacman -Sy
|
||||
RUN echo "y" | pacman -Syu
|
||||
RUN echo "y" | pacman -S base-devel git gcc cmake nasm curl tar zip unzip sqlite3 bzip2 cabextract gnu-netcat
|
||||
RUN echo "y" | pacman -S base-devel git gcc cmake nasm curl tar zip unzip sqlite3 bzip2 cabextract gnu-netcat tini
|
||||
|
||||
RUN useradd -m -d /home/container -s /bin/bash container
|
||||
|
||||
|
@ -18,5 +18,5 @@ STOPSIGNAL SIGINT
|
|||
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -1,4 +1,4 @@
|
|||
FROM debian:bookworm
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
|
||||
LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
|
||||
|
@ -15,7 +15,7 @@ RUN apt-get upgrade -y
|
|||
|
||||
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 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 build-essential
|
||||
liblua5.3-0 libz3-dev libzadc4 rapidjson-dev tzdata libevent-dev libzip4 libprotobuf32 libfluidsynth3 procps libstdc++6 build-essential tini
|
||||
|
||||
RUN update-locale en_US.UTF-8
|
||||
RUN dpkg-reconfigure --frontend noninteractive locales
|
||||
|
@ -25,5 +25,5 @@ STOPSIGNAL SIGINT
|
|||
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -16,7 +16,7 @@ RUN apt-get upgrade -y
|
|||
RUN apt-get install -y build-essential 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
|
||||
libfluidsynth-dev libmariadb-dev libicu-dev libssl3 libduktape207 libjsoncpp-dev libleveldb1d libncurses5 libncursesw5 tini
|
||||
|
||||
|
||||
RUN update-locale en_US.UTF-8
|
||||
|
@ -28,5 +28,5 @@ STOPSIGNAL SIGINT
|
|||
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
3
build.sh
3
build.sh
|
@ -34,4 +34,5 @@ docker build -t git.zontreck.com/ariascreations/yolks:installers_ubuntu installe
|
|||
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_debian steamcmd/debian
|
||||
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_dotnet steamcmd/dotnet
|
||||
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_proton steamcmd/proton
|
||||
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_proton8 steamcmd/proton_8
|
||||
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_proton8 steamcmd/proton_8
|
||||
docker build -t git.zontreck.com/ariascreations/yolks:steamcmd_sniper steamcmd/sniper
|
|
@ -4,7 +4,7 @@ LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
|
|||
LABEL upstream="https://github.com/pelican-eggs/yolks"
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y tzdata iproute2 git ca-certificates
|
||||
RUN apt-get install -y tzdata iproute2 git ca-certificates tini
|
||||
|
||||
RUN useradd -m -d /home/container -s /bin/bash container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
@ -16,5 +16,5 @@ STOPSIGNAL SIGINT
|
|||
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -4,7 +4,7 @@ LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
|
|||
LABEL upstream="https://github.com/pelican-eggs/yolks"
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y tzdata iproute2 git ca-certificates
|
||||
RUN apt-get install -y tzdata iproute2 git ca-certificates tini
|
||||
|
||||
RUN useradd -m -d /home/container -s /bin/bash container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
@ -16,5 +16,5 @@ STOPSIGNAL SIGINT
|
|||
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -10,7 +10,7 @@ RUN apt-get upgrade -y
|
|||
RUN apt-get install -y ca-certificates curl git unzip zip tar jq wget
|
||||
|
||||
RUN if [ "$(uname -m)" = "x86_64" ]; then \
|
||||
dpkg --add-architecture i386 && \
|
||||
apt-get update \
|
||||
apt-get install -y lib32gcc-s1 libsdl2-2.0-0:i386; \
|
||||
dpkg --add-architecture i386 && \
|
||||
apt-get update \
|
||||
apt-get install -y lib32gcc-s1 libsdl2-2.0-0:i386; \
|
||||
fi
|
|
@ -7,7 +7,7 @@ LABEL type="OpenJDK 11"
|
|||
|
||||
USER root
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 zip unzip
|
||||
RUN apt-get install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 zip unzip tini
|
||||
|
||||
RUN useradd -m -d /home/container -s /bin/bash container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
@ -21,5 +21,5 @@ USER container
|
|||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -7,7 +7,7 @@ LABEL type="OpenJDK 16"
|
|||
|
||||
USER root
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 zip unzip
|
||||
RUN apt-get install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 zip unzip tini
|
||||
|
||||
RUN useradd -m -d /home/container -s /bin/bash container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
@ -21,5 +21,5 @@ USER container
|
|||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -7,7 +7,7 @@ LABEL type="OpenJDK 17"
|
|||
|
||||
USER root
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 zip unzip
|
||||
RUN apt-get install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 zip unzip tini
|
||||
|
||||
RUN useradd -m -d /home/container -s /bin/bash container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
@ -21,5 +21,5 @@ USER container
|
|||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -7,7 +7,7 @@ LABEL type="OpenJDK 19"
|
|||
|
||||
USER root
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 zip unzip
|
||||
RUN apt-get install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 zip unzip tini
|
||||
|
||||
RUN useradd -m -d /home/container -s /bin/bash container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
@ -21,5 +21,5 @@ USER container
|
|||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -7,7 +7,7 @@ LABEL type="OpenJDK 21"
|
|||
|
||||
USER root
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 zip unzip
|
||||
RUN apt-get install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 zip unzip tini
|
||||
|
||||
RUN useradd -m -d /home/container -s /bin/bash container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
@ -21,5 +21,5 @@ USER container
|
|||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -7,7 +7,7 @@ LABEL type="OpenJDK 8"
|
|||
|
||||
USER root
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 zip unzip
|
||||
RUN apt-get install -y curl lsof ca-certificates openssl git tar sqlite3 fontconfig tzdata iproute2 libfreetype6 zip unzip tini
|
||||
|
||||
RUN useradd -m -d /home/container -s /bin/bash container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
@ -21,5 +21,5 @@ USER container
|
|||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -1,4 +1,7 @@
|
|||
FROM debian:bookworm
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
|
||||
LABEL upstream="https://github.com/pelican-eggs/yolks"
|
||||
|
||||
LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
|
||||
LABEL upstream="https://github.com/pelican-eggs/yolks"
|
||||
|
@ -8,7 +11,7 @@ ENV DEBIAN_FRONTEND=noninteractive
|
|||
RUN dpkg --add-architecture i386
|
||||
RUN apt-get update
|
||||
RUN apt-get upgrade -y
|
||||
RUN apt-get install -y tar curl gcc build-essential 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
|
||||
RUN apt-get install -y tar curl gcc build-essential 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 tini xvfb wget
|
||||
|
||||
## install rcon
|
||||
RUN cd /tmp/ \
|
||||
|
@ -33,5 +36,5 @@ STOPSIGNAL SIGINT
|
|||
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/bash", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -1,4 +1,4 @@
|
|||
FROM debian:bookworm
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
|
||||
LABEL upstream="https://github.com/pelican-eggs/yolks"
|
||||
|
@ -10,7 +10,7 @@ RUN apt-get update
|
|||
RUN apt-get upgrade -y
|
||||
RUN apt-get install -y tar curl gcc build-essential 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
|
||||
|
||||
RUN apt-get install -y python3 python3-dev apt-transport-https iproute2 sqlite3 xvfb libgdiplus
|
||||
RUN apt-get install -y python3 python3-dev apt-transport-https iproute2 sqlite3 xvfb libgdiplus 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 \
|
||||
|
@ -41,5 +41,5 @@ STOPSIGNAL SIGINT
|
|||
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/bash", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -1,4 +1,4 @@
|
|||
FROM debian:bookworm
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
|
||||
LABEL upstream="https://github.com/pelican-eggs/yolks"
|
||||
|
@ -9,7 +9,7 @@ ENV PROTON_VERSION=9.13
|
|||
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 file pipx
|
||||
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
|
||||
|
@ -44,5 +44,5 @@ STOPSIGNAL SIGINT
|
|||
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/bash", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
|
@ -1,9 +1,9 @@
|
|||
FROM debian:bookworm
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
|
||||
LABEL upstream="https://github.com/pelican-eggs/yolks"
|
||||
|
||||
ENV PROTON_VERSION=8.22
|
||||
ENV PROTON_VERSION=8-32
|
||||
|
||||
## install required packages
|
||||
RUN dpkg --add-architecture i386
|
||||
|
@ -44,5 +44,5 @@ STOPSIGNAL SIGINT
|
|||
|
||||
COPY --chown=container:container ./entrypoint.sh /entrypoint.sh
|
||||
RUN chmod +x /entrypoint.sh
|
||||
ENTRYPOINT ["/bin/bash", "-c", "--"]
|
||||
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
|
||||
CMD ["/entrypoint.sh"]
|
33
steamcmd/sniper/Dockerfile
Normal file
33
steamcmd/sniper/Dockerfile
Normal file
|
@ -0,0 +1,33 @@
|
|||
# ---------------------------------------------
|
||||
# Steam Sniper image (RT3)
|
||||
# ---------------------------------------------
|
||||
FROM --platform=$TARGETOS/$TARGETARCH registry.gitlab.steamos.cloud/steamrt/sniper/platform:latest-container-runtime-depot
|
||||
|
||||
|
||||
LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
|
||||
LABEL upstream="https://github.com/pelican-eggs/yolks"
|
||||
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"]
|
66
steamcmd/sniper/entrypoint.sh
Normal file
66
steamcmd/sniper/entrypoint.sh
Normal file
|
@ -0,0 +1,66 @@
|
|||
|
||||
# Wait for the container to fully initialize
|
||||
sleep 1
|
||||
|
||||
# Default the TZ environment variable to UTC.
|
||||
TZ=${TZ:-UTC}
|
||||
export TZ
|
||||
|
||||
# Set environment variable that holds the Internal Docker IP
|
||||
INTERNAL_IP=$(ip route get 1 | awk '{print $(NF-2);exit}')
|
||||
export INTERNAL_IP
|
||||
|
||||
# Set environment for Steam Proton
|
||||
if [ -f "/usr/local/bin/proton" ]; then
|
||||
if [ ! -z ${SRCDS_APPID} ]; 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"
|
||||
echo -e "Server stops now"
|
||||
echo -e "----------------------------------------------------------------------------------"
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
# Switch to the container's working directory
|
||||
cd /home/container || exit 1
|
||||
|
||||
## just in case someone removed the defaults.
|
||||
if [ "${STEAM_USER}" == "" ]; then
|
||||
echo -e "steam user is not set.\n"
|
||||
echo -e "Using anonymous user.\n"
|
||||
STEAM_USER=anonymous
|
||||
STEAM_PASS=""
|
||||
STEAM_AUTH=""
|
||||
else
|
||||
echo -e "user set to ${STEAM_USER}"
|
||||
fi
|
||||
|
||||
## if auto_update is not set or to 1 update
|
||||
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
|
||||
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
|
||||
fi
|
||||
else
|
||||
echo -e "No appid set. Starting Server"
|
||||
fi
|
||||
|
||||
else
|
||||
echo -e "Not updating game server as auto update was set to 0. Starting Server"
|
||||
fi
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP=$(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
||||
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the Server
|
||||
eval ${MODIFIED_STARTUP}
|
|
@ -72,6 +72,9 @@ RUN make install
|
|||
|
||||
FROM git.zontreck.com/ariascreations/yolks:debian
|
||||
|
||||
LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
|
||||
LABEL upstream="https://github.com/pelican-eggs/yolks"
|
||||
|
||||
RUN dpkg --add-architecture i386
|
||||
|
||||
RUN apt-get update
|
||||
|
|
|
@ -72,6 +72,9 @@ RUN make install
|
|||
|
||||
FROM git.zontreck.com/ariascreations/yolks:debian
|
||||
|
||||
LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
|
||||
LABEL upstream="https://github.com/pelican-eggs/yolks"
|
||||
|
||||
RUN dpkg --add-architecture i386
|
||||
|
||||
RUN apt-get update
|
||||
|
|
|
@ -72,6 +72,9 @@ RUN make install
|
|||
|
||||
FROM git.zontreck.com/ariascreations/yolks:debian
|
||||
|
||||
LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
|
||||
LABEL upstream="https://github.com/pelican-eggs/yolks"
|
||||
|
||||
RUN dpkg --add-architecture i386
|
||||
|
||||
RUN apt-get update
|
||||
|
|
|
@ -72,6 +72,9 @@ RUN make install
|
|||
|
||||
FROM git.zontreck.com/ariascreations/yolks:debian
|
||||
|
||||
LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com"
|
||||
LABEL upstream="https://github.com/pelican-eggs/yolks"
|
||||
|
||||
RUN dpkg --add-architecture i386
|
||||
|
||||
RUN apt-get update
|
||||
|
|
Loading…
Reference in a new issue