mirror of
https://github.com/darksaid98/yolks.git
synced 2026-12-01 14:38:59 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
16 files changed
+236
-16
No files matched your search
@@ -50,6 +50,7 @@ jobs:
|
||||
matrix:
|
||||
game:
|
||||
- minetest
|
||||
- mta
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up QEMU
|
||||
|
||||
@@ -16,12 +16,14 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
tag:
|
||||
- 1.14
|
||||
- 1.15
|
||||
- 1.16
|
||||
- 1.17
|
||||
- 1.18
|
||||
- 1.19
|
||||
- '1.14'
|
||||
- '1.15'
|
||||
- '1.16'
|
||||
- '1.17'
|
||||
- '1.18'
|
||||
- '1.19'
|
||||
- '1.20'
|
||||
- '1.21'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
|
||||
@@ -24,6 +24,7 @@ jobs:
|
||||
# - 16j9
|
||||
- 17
|
||||
- 19
|
||||
- 21
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: docker/setup-qemu-action@v2
|
||||
|
||||
@@ -31,7 +31,7 @@ jobs:
|
||||
with:
|
||||
context: ./mono
|
||||
file: ./mono/${{ matrix.tag }}/Dockerfile
|
||||
platforms: linux/amd64
|
||||
platforms: linux/amd64,linux/arm64
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/darksaid98/yolks:mono_${{ matrix.tag }}
|
||||
@@ -22,6 +22,7 @@ jobs:
|
||||
- '3.9'
|
||||
- '3.10'
|
||||
- '3.11'
|
||||
- '3.12'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
# Setup QEMU for ARM64 Build
|
||||
|
||||
@@ -122,6 +122,8 @@ is tagged correctly.
|
||||
* `ghcr.io/darksaid98/games:minetest`
|
||||
* [`mohaa`](games/mohaa)
|
||||
* `ghcr.io/pterodactyl/games:mohaa`
|
||||
* [`Multi Theft Auto: San Andreas`](games/mta)
|
||||
* `ghcr.io/pterodactyl/games:mta`
|
||||
* [`samp`](/games/samp)
|
||||
* `ghcr.io/darksaid98/games:samp`
|
||||
* [`source`](/games/source)
|
||||
@@ -143,6 +145,10 @@ is tagged correctly.
|
||||
* `ghcr.io/darksaid98/yolks:go_1.18`
|
||||
* [`go1.19`](/go/1.19)
|
||||
* `ghcr.io/darksaid98/yolks:go_1.19`
|
||||
* [`go1.20`](/go/1.20)
|
||||
* `ghcr.io/darksaid98/yolks:go_1.20`
|
||||
* [`go1.21`](/go/1.21)
|
||||
* `ghcr.io/darksaid98/yolks:go_1.21`
|
||||
|
||||
### [Java](/java)
|
||||
|
||||
@@ -229,6 +235,8 @@ is tagged correctly.
|
||||
* `ghcr.io/darksaid98/yolks:python_3.10`
|
||||
* [`python3.11`](/python/3.11)
|
||||
* `ghcr.io/darksaid98/yolks:python_3.11`
|
||||
* [`python3.12`](/python/3.12)
|
||||
* `ghcr.io/darksaid98/yolks:python_3.12`
|
||||
|
||||
### [Redis](/redis)
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ RUN apk add --no-cache \
|
||||
automake \
|
||||
build-base \
|
||||
ca-certificates\
|
||||
chromium \
|
||||
curl \
|
||||
bind-tools \
|
||||
ffmpeg \
|
||||
@@ -24,6 +25,7 @@ RUN apk add --no-cache \
|
||||
libtool \
|
||||
python3 \
|
||||
python3-dev \
|
||||
py3-pip \
|
||||
sqlite \
|
||||
tzdata \
|
||||
zip \
|
||||
@@ -38,6 +40,9 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ]; then ARCHITECTURE=amd64; e
|
||||
&& curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-${ARCHITECTURE} -o /usr/bin/cloudflared
|
||||
RUN chmod +x /usr/bin/cloudflared
|
||||
|
||||
# install apprise
|
||||
RUN pip install apprise
|
||||
|
||||
## Setup user and working directory
|
||||
RUN adduser -D -h /home/container container -s /bin/bash container
|
||||
USER container
|
||||
|
||||
@@ -26,7 +26,7 @@ echo -e "${BLUE}-------------------------------------------------${NC}"
|
||||
echo -e "${RED}Uptime Kuma Image${NC}"
|
||||
echo -e "${BLUE}-------------------------------------------------${NC}"
|
||||
echo -e "${YELLOW}Running on Alpine: ${RED} $(cat /etc/alpine-release)${NC}"
|
||||
echo -e "${YELLOW}Current timezone: ${RED} $(cat /etc/localtime)${NC}"
|
||||
echo -e "${YELLOW}Current timezone: ${RED} ${TZ} ${NC}"
|
||||
echo -e "${YELLOW}NodeJS Version: ${RED} $(node -v) ${NC}"
|
||||
echo -e "${YELLOW}Cloudflared Version: ${RED} $(/usr/bin/cloudflared --version) ${NC}"
|
||||
echo -e "${BLUE}-------------------------------------------------${NC}"
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
FROM --platform=$TARGETOS/$TARGETARCH ubuntu:20.04
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
|
||||
## add container user
|
||||
RUN useradd -m -d /home/container -s /bin/bash container
|
||||
|
||||
## update base packages
|
||||
RUN apt update \
|
||||
&& apt upgrade -y
|
||||
|
||||
## install dependencies
|
||||
RUN apt install -y iproute2 tar libssl1.1 curl git default-libmysqlclient-dev libmysqlclient-dev libreadline-gplv2-dev libncurses5-dev libncursesw5-dev \
|
||||
libtool zip unzip libncurses5 libncursesw5 python3 openssl locales ffmpeg apt-transport-https libc6 binutils xz-utils liblua5.1-0
|
||||
|
||||
## configure locale
|
||||
RUN update-locale lang=en_US.UTF-8 \
|
||||
&& dpkg-reconfigure --frontend noninteractive locales
|
||||
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./entrypoint.sh /entrypoint.sh
|
||||
CMD [ "/bin/bash", "/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 $(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g'))
|
||||
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the Server
|
||||
eval ${MODIFIED_STARTUP}
|
||||
@@ -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.20-alpine
|
||||
|
||||
LABEL author="Matthew Penner" maintainer="[email protected]"
|
||||
|
||||
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" ]
|
||||
@@ -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.21-alpine
|
||||
|
||||
LABEL author="Matthew Penner" maintainer="[email protected]"
|
||||
|
||||
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" ]
|
||||
@@ -0,0 +1,29 @@
|
||||
FROM --platform=$TARGETOS/$TARGETARCH eclipse-temurin:21-jdk-jammy
|
||||
|
||||
LABEL author="Michael Parker" maintainer="[email protected]"
|
||||
|
||||
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
|
||||
LABEL org.opencontainers.image.licenses=MIT
|
||||
|
||||
RUN apt update -y \
|
||||
&& apt install -y \
|
||||
curl \
|
||||
lsof \
|
||||
ca-certificates \
|
||||
openssl \
|
||||
git \
|
||||
tar \
|
||||
sqlite3 \
|
||||
fontconfig \
|
||||
tzdata \
|
||||
iproute2 \
|
||||
libfreetype6
|
||||
|
||||
## Setup user and working directory
|
||||
RUN useradd -m -d /home/container -s /bin/bash container
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
WORKDIR /home/container
|
||||
|
||||
COPY ./../entrypoint.sh /entrypoint.sh
|
||||
CMD [ "/bin/bash", "/entrypoint.sh" ]
|
||||
+44
-5
@@ -1,13 +1,52 @@
|
||||
#!/bin/bash
|
||||
cd /home/container
|
||||
# Wait for the container to fully initialize
|
||||
sleep 1
|
||||
|
||||
# Make internal Docker IP address available to processes.
|
||||
# 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
|
||||
|
||||
# Switch to the container's working directory
|
||||
cd /home/container || exit 1
|
||||
|
||||
if [ ! -z "${SRCDS_APPID}" ]; then
|
||||
## 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} $( [[ -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
|
||||
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
|
||||
fi
|
||||
|
||||
|
||||
# Replace Startup Variables
|
||||
MODIFIED_STARTUP="eval $(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')"
|
||||
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
MODIFIED_STARTUP=$(echo ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
||||
echo -e ":/home/container$ ${MODIFIED_STARTUP}"
|
||||
|
||||
# Run the Server
|
||||
${MODIFIED_STARTUP}
|
||||
eval ${MODIFIED_STARTUP}
|
||||
+11
-3
@@ -1,14 +1,22 @@
|
||||
FROM ghcr.io/darksaid98/yolks:debian
|
||||
FROM --platform=$TARGETOS/$TARGETARCH ghcr.io/darksaid98/yolks:debian
|
||||
|
||||
LABEL author="Torsten Widmann" maintainer="[email protected]"
|
||||
|
||||
RUN apt update \
|
||||
&& apt -y upgrade
|
||||
RUN apt install -y fontconfig dirmngr
|
||||
RUN apt install -y fontconfig dirmngr numactl
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
|
||||
RUN sh -c 'echo "deb https://download.mono-project.com/repo/debian stable-buster main" > /etc/apt/sources.list.d/mono-official-stable.list'
|
||||
RUN apt update
|
||||
RUN apt install -y mono-complete lib32gcc-s1
|
||||
RUN apt install -y mono-complete
|
||||
|
||||
# Only install the needed steamcmd packages on the AMD64 build
|
||||
RUN if [ "$(uname -m)" = "x86_64" ]; then \
|
||||
dpkg --add-architecture i386 && \
|
||||
apt update && \
|
||||
apt -y install lib32gcc-s1 libsdl2-2.0-0:i386; \
|
||||
fi
|
||||
|
||||
|
||||
USER container
|
||||
ENV USER=container HOME=/home/container
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
FROM --platform=$TARGETOS/$TARGETARCH python:3.12-slim
|
||||
|
||||
LABEL author="Michael Parker" maintainer="[email protected]"
|
||||
|
||||
RUN apt update \
|
||||
&& apt -y install git gcc g++ ca-certificates dnsutils curl iproute2 ffmpeg procps \
|
||||
&& 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" ]
|
||||
Reference in new issue
Block a user