mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
Merge pull request #437 from linuxserver/jellyfin-opencl-intel-s6v3
switch to hybrid (jellyfin-opencl-intel)
This commit is contained in:
commit
a8e8808e8a
@ -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
|
||||
|
||||
|
||||
21
root/etc/s6-overlay/s6-rc.d/init-mod-jellyfin-opencl-intel-add-package/run
Executable file
21
root/etc/s6-overlay/s6-rc.d/init-mod-jellyfin-opencl-intel-add-package/run
Executable 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
|
||||
@ -0,0 +1 @@
|
||||
oneshot
|
||||
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-mod-jellyfin-opencl-intel-add-package/run
|
||||
Loading…
x
Reference in New Issue
Block a user