From 28aed5a0716f844040aa63f1bcd6063623109e7d Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Wed, 11 Jan 2017 20:54:44 +0000 Subject: [PATCH] put LIBPATH in dockerfile, try using /bin/bash in place of /bin/sh to see if jenkins crash happens --- Dockerfile | 3 ++- root/etc/services.d/plex/run | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index ae57867..d74ef3b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,8 @@ PLEX_INSTALL="https://plex.tv/downloads/latest/1?channel=8&build=linux-ubuntu-x8 PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR="/config/Library/Application Support" \ PLEX_MEDIA_SERVER_HOME="/usr/lib/plexmediaserver" \ PLEX_MEDIA_SERVER_INFO_DEVICE=docker \ -PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6" +PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS="6" \ +LD_LIBRARY_PATH="/usr/lib/plexmediaserver:$LD_LIBRARY_PATH" # install packages RUN \ diff --git a/root/etc/services.d/plex/run b/root/etc/services.d/plex/run index b3556ec..cd91d22 100644 --- a/root/etc/services.d/plex/run +++ b/root/etc/services.d/plex/run @@ -1,6 +1,8 @@ #!/usr/bin/with-contenv bash echo "Starting Plex Media Server." -exec s6-setuidgid abc /bin/sh -c 'LD_LIBRARY_PATH=/usr/lib/plexmediaserver /usr/lib/plexmediaserver/Plex\ Media\ Server' +exec \ + s6-setuidgid abc /bin/bash -c \ + '/usr/lib/plexmediaserver/Plex\ Media\ Server'