Pipeline hw (#150)
* adding multi arch logic and pipeline, first version of included hardware accel info, pulling debs from new endpoint * removing web screenshotting from ci process * adding update logic for arm variants and templating readme file * Adding nvidia environment variables * Adding information on nvidia container runtime * updating pipeline logic to use static endpoint and disabling updates on those branches * bug bashing escape characters in jenkins logic * remove avahi service that is no longer needed by plex * set new artifact download location
This commit is contained in:
parent
391f0a773c
commit
88765a032a
12 changed files with 1069 additions and 120 deletions
25
Dockerfile
25
Dockerfile
|
|
@ -3,8 +3,13 @@ FROM lsiobase/ubuntu:bionic
|
|||
# set version label
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
ARG PLEX_RELEASE
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="sparklyballs"
|
||||
LABEL maintainer="sparklyballs, thelamer"
|
||||
|
||||
#Add needed nvidia environment variables for https://github.com/NVIDIA/nvidia-docker
|
||||
ENV NVIDIA_DRIVER_CAPABILITIES="compute,video,utility"
|
||||
ENV NVIDIA_DRIVER_CAPABILITIES="all"
|
||||
|
||||
# global environment settings
|
||||
ENV DEBIAN_FRONTEND="noninteractive" \
|
||||
|
|
@ -20,16 +25,24 @@ RUN \
|
|||
echo "**** install runtime packages ****" && \
|
||||
apt-get update && \
|
||||
apt-get install -y \
|
||||
avahi-daemon \
|
||||
dbus \
|
||||
udev \
|
||||
unrar \
|
||||
wget && \
|
||||
wget \
|
||||
jq && \
|
||||
echo "**** Udevadm hack ****" && \
|
||||
mv /sbin/udevadm /sbin/udevadm.bak && \
|
||||
echo "exit 0" > /sbin/udevadm && \
|
||||
chmod +x /sbin/udevadm && \
|
||||
echo "**** install plex ****" && \
|
||||
if [ -z ${PLEX_RELEASE+x} ]; then \
|
||||
PLEX_RELEASE=$(curl -s 'https://plex.tv/downloads/details/1?build=linux-ubuntu-x86_64&distro=ubuntu' \
|
||||
|grep -oP 'version="\K[^"]+' | tail -n 1); \
|
||||
fi && \
|
||||
curl -o \
|
||||
/tmp/plexmediaserver.deb -L \
|
||||
"${PLEX_INSTALL}" && \
|
||||
/tmp/plexmediaserver.deb -L \
|
||||
"https://downloads.plex.tv/plex-media-server/${PLEX_RELEASE}/plexmediaserver_${PLEX_RELEASE}_amd64.deb" && \
|
||||
dpkg -i /tmp/plexmediaserver.deb && \
|
||||
mv /sbin/udevadm.bak /sbin/udevadm && \
|
||||
echo "**** ensure abc user's home folder is /app ****" && \
|
||||
usermod -d /app abc && \
|
||||
echo "**** cleanup ****" && \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue