Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added prismlauncher as an image #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 10 additions & 9 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,16 @@ jobs:
strategy:
matrix:
image:
- { name: xorg, platforms: "linux/amd64" }
- { name: pulseaudio, platforms: "linux/amd64" }
- { name: udevd, platforms: "linux/amd64" }
- { name: sunshine, platforms: "linux/amd64" }
- { name: retroarch, platforms: "linux/amd64" }
- { name: firefox, platforms: "linux/amd64" }
- { name: steam, platforms: "linux/amd64" }
- { name: pegasus, platforms: "linux/amd64" }
- { name: lutris, platforms: "linux/amd64" }
- { name: xorg, platforms: "linux/amd64" }
- { name: pulseaudio, platforms: "linux/amd64" }
- { name: udevd, platforms: "linux/amd64" }
- { name: sunshine, platforms: "linux/amd64" }
- { name: retroarch, platforms: "linux/amd64" }
- { name: firefox, platforms: "linux/amd64" }
- { name: steam, platforms: "linux/amd64" }
- { name: pegasus, platforms: "linux/amd64" }
- { name: lutris, platforms: "linux/amd64" }
- { name: prismlauncher, platforms: "linux/amd64" }
#- { name: es-de, platforms: "linux/amd64" }
fail-fast: false
uses: ./.github/workflows/docker-build-and-publish.yml
Expand Down
32 changes: 32 additions & 0 deletions images/prismlauncher/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
ARG BASE_APP_IMAGE

# hadolint ignore=DL3006
FROM ${BASE_APP_IMAGE}

# install all needed java runtimes.
ARG REQUIRED_PACKAGES=" \
openjdk-21-jre \
openjdk-17-jre \
openjdk-8-jre \
lsb-release \
wget \
gnupg2 \
"

RUN apt-get update && \
apt-get install -y --no-install-recommends $REQUIRED_PACKAGES && \
# Get PrismLauncher from makedeb \
wget -qO - "https://proget.makedeb.org/debian-feeds/prebuilt-mpr.pub" | gpg --dearmor | tee /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg 1> /dev/null && \
echo "deb [signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr $(lsb_release -cs)" | tee /etc/apt/sources.list.d/prebuilt-mpr.list && \
apt update && \
apt install -y prismlauncher && \
# Cleanup \
apt-get autoremove -y && \
rm -rf /var/lib/apt/lists/*

COPY --chmod=777 scripts/startup.sh /opt/gow/startup-app.sh

ENV XDG_RUNTIME_DIR=/tmp/.X11-unix

ARG IMAGE_SOURCE
LABEL org.opencontainers.image.source=$IMAGE_SOURCE
18 changes: 18 additions & 0 deletions images/prismlauncher/scripts/startup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash -e

source /opt/gow/bash-lib/utils.sh

PrismLauncher=prismlauncher

# Run additional startup scripts
for file in /opt/gow/startup.d/* ; do
if [ -f "$file" ] ; then
gow_log "[start] Sourcing $file"
source $file
fi
done

gow_log "[start] Starting PrismLauncher"

source /opt/gow/launch-comp.sh
launcher "${PrismLauncher}"
Loading