Merge branch 'parkervcp:master' into master
This commit is contained in:
39
.github/workflows/box64.yml
vendored
Normal file
39
.github/workflows/box64.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: build box64
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 0 * * 1"
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- box64/**
|
||||||
|
jobs:
|
||||||
|
push:
|
||||||
|
name: "yolks:${{ matrix.tag }}"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
tag:
|
||||||
|
- box64
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- uses: docker/setup-qemu-action@v1
|
||||||
|
- uses: docker/setup-buildx-action@v1
|
||||||
|
with:
|
||||||
|
version: "v0.5.1"
|
||||||
|
buildkitd-flags: --debug
|
||||||
|
- uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
- uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: ./box64
|
||||||
|
file: ./${{ matrix.tag }}/Dockerfile
|
||||||
|
platforms: linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
ghcr.io/parkervcp/yolks:${{ matrix.tag }}
|
1
.github/workflows/games.yml
vendored
1
.github/workflows/games.yml
vendored
@@ -19,6 +19,7 @@ jobs:
|
|||||||
- altv
|
- altv
|
||||||
- arma3
|
- arma3
|
||||||
- dayz
|
- dayz
|
||||||
|
- mohaa
|
||||||
- samp
|
- samp
|
||||||
- source
|
- source
|
||||||
|
|
||||||
|
@@ -46,6 +46,11 @@ is tagged correctly.
|
|||||||
* [`sinusbot`](/bot/sinusbot)
|
* [`sinusbot`](/bot/sinusbot)
|
||||||
* `ghcr.io/parkervcp/yolks:bot_sinusbot`
|
* `ghcr.io/parkervcp/yolks:bot_sinusbot`
|
||||||
|
|
||||||
|
### [Box64](/box64)
|
||||||
|
|
||||||
|
* [`Box64`](/box64)
|
||||||
|
* `ghcr.io/parkervcp/yolks:box64`
|
||||||
|
|
||||||
### [Cassandra](/cassandra)
|
### [Cassandra](/cassandra)
|
||||||
|
|
||||||
* [`cassandra_java8_python27`](/cassandra/cassandra_java8_python2)
|
* [`cassandra_java8_python27`](/cassandra/cassandra_java8_python2)
|
||||||
@@ -81,6 +86,8 @@ is tagged correctly.
|
|||||||
* `ghcr.io/parkervcp/games:arma3`
|
* `ghcr.io/parkervcp/games:arma3`
|
||||||
* [`dayz`](/games/dayz)
|
* [`dayz`](/games/dayz)
|
||||||
* `ghcr.io/parkervcp/games:dayz`
|
* `ghcr.io/parkervcp/games:dayz`
|
||||||
|
* [`mohaa`](games/mohaa)
|
||||||
|
* `ghcr.io/pterodactyl/games:mohaa`
|
||||||
* [`samp`](/games/samp)
|
* [`samp`](/games/samp)
|
||||||
* `ghcr.io/parkervcp/games:samp`
|
* `ghcr.io/parkervcp/games:samp`
|
||||||
* [`source`](/games/source)
|
* [`source`](/games/source)
|
||||||
|
34
box64/Dockerfile
Normal file
34
box64/Dockerfile
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
FROM --platform=$TARGETOS/$TARGETARCH debian:bullseye-slim
|
||||||
|
|
||||||
|
LABEL author="QuintenQVD" maintainer="josdekurk@gmail.com"
|
||||||
|
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
|
||||||
|
## Update base packages
|
||||||
|
RUN apt update \
|
||||||
|
&& apt upgrade -y
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
||||||
|
## Configure locale
|
||||||
|
RUN update-locale lang=en_US.UTF-8 \
|
||||||
|
&& dpkg-reconfigure --frontend noninteractive locales
|
||||||
|
|
||||||
|
|
||||||
|
##Install box64
|
||||||
|
RUN wget https://ryanfortner.github.io/box64-debs/box64.list -O /etc/apt/sources.list.d/box64.list \
|
||||||
|
&& wget -O- https://ryanfortner.github.io/box64-debs/KEY.gpg | gpg --dearmor | tee /usr/share/keyrings/box64-debs-archive-keyring.gpg \
|
||||||
|
&& apt update && apt install box64 -y
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
RUN useradd -d /home/container -m container
|
||||||
|
USER container
|
||||||
|
ENV USER=container HOME=/home/container
|
||||||
|
WORKDIR /home/container
|
||||||
|
|
||||||
|
COPY ./entrypoint.sh /entrypoint.sh
|
||||||
|
CMD ["/bin/bash", "/entrypoint.sh"]
|
13
box64/entrypoint.sh
Normal file
13
box64/entrypoint.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/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}'`
|
||||||
|
|
||||||
|
|
||||||
|
# Replace Startup Variables
|
||||||
|
MODIFIED_STARTUP=$(echo -e ${STARTUP} | sed -e 's/{{/${/g' -e 's/}}/}/g')
|
||||||
|
echo ":/home/container$ ${MODIFIED_STARTUP}"
|
||||||
|
|
||||||
|
# Run the Server
|
||||||
|
eval ${MODIFIED_STARTUP}
|
12
games/mohaa/Dockerfile
Normal file
12
games/mohaa/Dockerfile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
FROM ghcr.io/parkervcp/yolks:debian
|
||||||
|
|
||||||
|
LABEL author="Manuel Dielacher" maintainer="th3dilli@gmx.at"
|
||||||
|
|
||||||
|
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
|
||||||
|
LABEL org.opencontainers.image.licenses=MIT
|
||||||
|
|
||||||
|
RUN dpkg --add-architecture i386 \
|
||||||
|
&& apt update && apt upgrade -y \
|
||||||
|
&& apt install -y lib32gcc-s1 lib32stdc++6 libstdc++5:i386
|
||||||
|
|
||||||
|
|
13
games/mohaa/entrypoint.sh
Normal file
13
games/mohaa/entrypoint.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd /home/container
|
||||||
|
|
||||||
|
# Set environment variable that holds the Internal Docker IP
|
||||||
|
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}
|
@@ -37,9 +37,9 @@ RUN dpkg --add-architecture i386 \
|
|||||||
|
|
||||||
## install rcon
|
## install rcon
|
||||||
RUN cd /tmp/ \
|
RUN cd /tmp/ \
|
||||||
&& curl -sSL https://github.com/gorcon/rcon-cli/releases/download/v0.10.1/rcon-0.10.1-amd64_linux.tar.gz > rcon.tar.gz \
|
&& curl -sSL https://github.com/gorcon/rcon-cli/releases/download/v0.10.2/rcon-0.10.2-amd64_linux.tar.gz > rcon.tar.gz \
|
||||||
&& tar xvf rcon.tar.gz \
|
&& tar xvf rcon.tar.gz \
|
||||||
&& mv rcon-0.10.1-amd64_linux/rcon /usr/local/bin/
|
&& mv rcon-0.10.2-amd64_linux/rcon /usr/local/bin/
|
||||||
|
|
||||||
USER container
|
USER container
|
||||||
ENV USER=container HOME=/home/container
|
ENV USER=container HOME=/home/container
|
||||||
|
@@ -27,4 +27,4 @@ LABEL author="Matthew Penner" maintainer="matthew@pterodactyl.io"
|
|||||||
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
|
LABEL org.opencontainers.image.source="https://github.com/pterodactyl/yolks"
|
||||||
LABEL org.opencontainers.image.licenses=MIT
|
LABEL org.opencontainers.image.licenses=MIT
|
||||||
|
|
||||||
RUN apk add --update --no-cache ca-certificates curl git jq wget
|
RUN apk add --update --no-cache ca-certificates curl unzip tar git jq wget
|
||||||
|
@@ -65,7 +65,7 @@ if [[ $WINETRICKS_RUN =~ mono ]]; then
|
|||||||
WINETRICKS_RUN=${WINETRICKS_RUN/mono}
|
WINETRICKS_RUN=${WINETRICKS_RUN/mono}
|
||||||
|
|
||||||
if [ ! -f "$WINEPREFIX/mono.msi" ]; then
|
if [ ! -f "$WINEPREFIX/mono.msi" ]; then
|
||||||
wget -q -O $WINEPREFIX/mono.msi https://dl.winehq.org/wine/wine-mono/7.1.1/wine-mono-7.1.1-x86.msi
|
wget -q -O $WINEPREFIX/mono.msi https://dl.winehq.org/wine/wine-mono/7.2.0/wine-mono-7.2.0-x86.msi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wine msiexec /i $WINEPREFIX/mono.msi /qn /quiet /norestart /log $WINEPREFIX/mono_install.log
|
wine msiexec /i $WINEPREFIX/mono.msi /qn /quiet /norestart /log $WINEPREFIX/mono_install.log
|
||||||
|
Reference in New Issue
Block a user