Merge plex webtools into plex
This commit is contained in:
parent
2e6e5f3253
commit
d846e0ea29
|
@ -1,20 +0,0 @@
|
|||
FROM buildpack-deps:xenial-scm
|
||||
MAINTAINER Jean Froment <froment.je@gmail.com>
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y unzip libcurl4-openssl-dev \
|
||||
&& wt_tag=$(curl -sX GET "https://api.github.com/repos/ukdtom/WebTools.bundle/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]') \
|
||||
&& wget "https://github.com/ukdtom/WebTools.bundle/releases/download/$wt_tag/WebTools.bundle.zip" \
|
||||
-O /opt/WebTools.bundle.zip \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
VOLUME /config
|
||||
|
||||
RUN mkdir -p "/config/Plex Media Server/" \
|
||||
&& cp /opt/WebTools.bundle.zip /config/Plex\ Media\ Server/ \
|
||||
&& unzip /config/Plex\ Media\ Server/WebTools.bundle.zip \
|
||||
&& rm -f /opt/WebTools.bundle.zip /config/Plex\ Media\ Server/WebTools.bundle.zip
|
||||
|
||||
EXPOSE 33443
|
|
@ -7,12 +7,14 @@ RUN curl -sL "https://raw.githubusercontent.com/Kelvin-Chen/plexupdate/master/pl
|
|||
> /usr/local/bin/plexupdate \
|
||||
&& chmod +x /usr/local/bin/plexupdate \
|
||||
&& plexupdate -pad \
|
||||
&& apt-get install -y unzip \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
VOLUME /config
|
||||
|
||||
EXPOSE 32400
|
||||
# 32400 for Plex server, 33443 for Plex WebTools secure access
|
||||
EXPOSE 32400 33443
|
||||
|
||||
COPY plexmediaserver /etc/default/plexmediaserver
|
||||
COPY init Preferences.xml /
|
||||
|
|
|
@ -9,4 +9,14 @@ mkdir -p "/config/Plex Media Server/"
|
|||
cp -n /Preferences.xml "/config/Plex Media Server/"
|
||||
rm -f "/config/Plex Media Server/plexmediaserver.pid"
|
||||
|
||||
# Plex WebTools
|
||||
if [ ! -d "/config/Plex Media Server/Plug-ins/WebTools.bundle" ]; then
|
||||
wt_tag = $(curl -sX GET "https://api.github.com/repos/ukdtom/WebTools.bundle/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]')
|
||||
wget "https://github.com/ukdtom/WebTools.bundle/releases/download/$wt_tag/WebTools.bundle.zip" \
|
||||
-O /config/Plex\ Media\ Server/Plug-ins/WebTools.bundle.zip
|
||||
unzip /config/Plex\ Media\ Server/Plug-ins/WebTools.bundle.zip
|
||||
rm /config/Plex\ Media\ Server/Plug-ins/WebTools.bundle.zip
|
||||
fi
|
||||
|
||||
exec start_pms > /dev/null 2>&1
|
Loading…
Reference in New Issue