Merge pull request #437 from linuxserver/jellyfin-opencl-intel-s6v3

switch to hybrid (jellyfin-opencl-intel)
This commit is contained in:
aptalca 2022-09-06 10:33:08 -04:00 committed by GitHub
commit a8e8808e8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 24 additions and 1 deletions

View File

@ -1,5 +1,5 @@
## Buildstage ##
FROM ghcr.io/linuxserver/baseimage-alpine:3.14 as buildstage
FROM ghcr.io/linuxserver/baseimage-alpine:3.15 as buildstage
ARG COMP_RT_RELEASE

View File

@ -0,0 +1,21 @@
#!/usr/bin/with-contenv bash
# Determine if setup is needed
if [ ! -f "/usr/bin/apt" ]; then
echo "**** Image is not Ubuntu, skipping opencl-intel install ****"
exit 0
fi
if [ $(uname -m) != "x86_64" ]; then
echo "**** Opencl-intel only works on X86_64, skipping ****"
exit 0
fi
if [ -d /opencl-intel ]; then
echo "**** Installing/updating opencl-intel debs and adding clinfo to package install list ****"
dpkg -i /opencl-intel/*.deb
rm -rf /opencl-intel
echo "clinfo" >> /mod-repo-packages-to-install.list
else
echo "**** Opencl-intel already installed ****"
fi

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-mod-jellyfin-opencl-intel-add-package/run