From 9cf41158dc775393572ec66f3164c14d58564dc0 Mon Sep 17 00:00:00 2001 From: darksaid98 Date: Sat, 12 Aug 2023 16:39:29 +0200 Subject: [PATCH] valheim box64 --- .github/workflows/games.yml | 37 ++----------------------------------- games/valheim/Dockerfile | 11 +++++++++++ 2 files changed, 13 insertions(+), 35 deletions(-) diff --git a/.github/workflows/games.yml b/.github/workflows/games.yml index 733d44a..057c4a6 100644 --- a/.github/workflows/games.yml +++ b/.github/workflows/games.yml @@ -9,39 +9,6 @@ on: paths: - games/** jobs: - pushAMD64: - name: "games_AMD64:${{ matrix.game }}" - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - game: - - altv - - arma3 - - dayz - - mohaa - - samp - - source - - valheim - - steps: - - uses: actions/checkout@v3 - - uses: docker/setup-buildx-action@v2 - with: - buildkitd-flags: --debug - - uses: docker/login-action@v2 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.REGISTRY_TOKEN }} - - uses: docker/build-push-action@v4 - with: - context: ./games/${{ matrix.game }} - file: ./games/${{ matrix.game }}/Dockerfile - platforms: linux/amd64 - push: true - tags: | - ghcr.io/parkervcp/games:${{ matrix.game }} pushAll: name: "games_All:${{ matrix.game }}" runs-on: ubuntu-latest @@ -49,7 +16,7 @@ jobs: fail-fast: false matrix: game: - - minetest + - valheim steps: - uses: actions/checkout@v3 - name: Set up QEMU @@ -71,4 +38,4 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: | - ghcr.io/parkervcp/games:${{ matrix.game }} + ghcr.io/darksaid98/games:${{ matrix.game }} diff --git a/games/valheim/Dockerfile b/games/valheim/Dockerfile index 9741d85..bfc5fc7 100644 --- a/games/valheim/Dockerfile +++ b/games/valheim/Dockerfile @@ -16,10 +16,21 @@ RUN dpkg --add-architecture i386 \ gcc g++ libgcc1 libc++-dev gdb libc6 curl tar iproute2 net-tools libatomic1 libsdl1.2debian libsdl2-2.0-0 \ libfontconfig locales libcurl3-gnutls libpulse-dev libpulse0 libnss-wrapper gettext +## 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 + + ## 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 -qO- https://ryanfortner.github.io/box64-debs/KEY.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/box64-debs-archive-keyring.gpg \ + && apt update && apt install box64-rpi4arm64 -y + ENV USER=container HOME=/home/container WORKDIR /home/container