Compare commits

...

76 commits

Author SHA1 Message Date
fej
492da39dea Update .forgejo/workflows/build.yml
All checks were successful
Build and push image / build (push) Successful in 41s
2026-05-09 10:34:17 +02:00
forgejo-runner
252e2b2b5c Merge remote-tracking branch 'upstream/master'
Some checks failed
Build and push image / build (push) Failing after 7s
2026-05-09 08:33:17 +00:00
BuildTools
2d16c92cb3 fix pipeline
Some checks failed
Build and push image / build (push) Has been cancelled
2026-05-09 10:30:50 +02:00
BuildTools
3faea15cf3 ci: add forgejo actions build workflow
Some checks failed
Build and push image / build (push) Failing after 21s
2026-05-09 10:03:33 +02:00
LinuxServer-CI
0a43190ac9
Bot Updating Package Versions 2026-05-04 11:10:31 +00:00
LinuxServer-CI
68fa685a3c
Bot Updating Package Versions 2026-04-27 11:10:30 +00:00
LinuxServer-CI
7378fb237d
Bot Updating Package Versions 2026-04-20 10:55:12 +00:00
LinuxServer-CI
1a7cf74b6e
Bot Updating Package Versions 2026-04-10 13:52:50 +00:00
LinuxServer-CI
e0048bb650
Bot Updating Package Versions 2026-04-08 15:46:39 +00:00
LinuxServer-CI
be4e12409d
Bot Updating Templated Files 2026-04-06 10:14:36 +00:00
BuildTools
302c6e5702 Merge remote-tracking branch 'upstream/master' 2026-04-05 17:00:27 +02:00
LinuxServer-CI
ecb66b1ca3
Bot Updating Package Versions 2026-03-30 10:23:10 +00:00
BuildTools
e3bbf927d8 Merge remote-tracking branch 'upstream/master' 2026-03-29 13:48:04 +02:00
LinuxServer-CI
ee772de585
Bot Updating Package Versions 2026-03-21 14:30:06 +00:00
Adam
468a4995e0
Merge pull request #448 from evan314159/readonly-tmpdir 2026-03-21 14:26:18 +00:00
Evan Champion
a56f4d3e85 Update readme-vars.yml 2026-03-17 06:34:26 +08:00
Evan Champion
094d2071e2 init-plex-chown/run: use TMPDIR instead of hardcoded /run/plex-temp
Changes init-plex-chown/run to use TMPDIR instead of hardcoded /run/plex-temp

Plex uses TMPDIR to store transcodes of music to WAV format for music
analysis (and maybe other things).

LS.io container sets TMPDIR=/run/plex-temp.  With read-only root this
means the /run tmpfs needs to have enough memory to store music analysis
transcodes.

LS.io container hardcoded /run/plex-temp in init so TMPDIR could not be
flexibly changed -- changed to use TMPDIR and clean on restart in case
of unclean shutdown.

Plex container is marked as supporting read-only root.
2026-03-16 06:05:53 +08:00
LinuxServer-CI
2186587d37
Bot Updating Templated Files 2026-03-15 21:47:12 +00:00
Adam
c1ab38b66e
Merge pull request #447 from evan314159/nonroot-init-plex-claim 2026-03-15 21:45:12 +00:00
BuildTools
8551fb88e9 Merge remote-tracking branch 'upstream/master' 2026-03-15 16:12:23 +01:00
Evan Champion
e64b2579d7 init-plex-claim/run: do not run s6-setuidgid on non-root containers
Fixes #422
2026-03-15 12:06:57 +08:00
LinuxServer-CI
cb3568d81a
Bot Updating Package Versions 2026-03-02 09:58:27 +00:00
LinuxServer-CI
4a4dc88e6c
Bot Updating Package Versions 2026-02-23 10:03:04 +00:00
BuildTools
9f0882a70e Merge remote-tracking branch 'upstream/master' 2026-02-22 11:05:46 +01:00
LinuxServer-CI
82cbb863bc
Bot Updating Package Versions 2026-02-11 16:23:50 +00:00
LinuxServer-CI
6374e18803
Bot Updating Templated Files 2026-02-11 16:20:09 +00:00
LinuxServer-CI
944fc560c6
Bot Updating Templated Files 2026-02-11 16:18:08 +00:00
LinuxServer-CI
c9ffa88637
Bot Updating Package Versions 2026-02-09 10:08:55 +00:00
BuildTools
d4262cc4e9 Merge remote-tracking branch 'upstream/master' 2026-02-07 11:57:53 +01:00
LinuxServer-CI
2d9cdff163
Bot Updating Package Versions 2026-01-28 20:54:07 +00:00
LinuxServer-CI
163c200dcb
Bot Updating Package Versions 2026-01-27 19:43:54 +00:00
LinuxServer-CI
77cca7947b
Bot Updating Package Versions 2026-01-19 09:41:26 +00:00
BuildTools
d63927007f Merge remote-tracking branch 'upstream/master' 2025-12-27 13:51:50 +01:00
LinuxServer-CI
8056a354f5
Bot Updating Package Versions 2025-12-22 09:35:14 +00:00
LinuxServer-CI
f32896aed4
Bot Updating Templated Files 2025-12-13 16:34:25 +00:00
aptalca
144b87d05b
Merge pull request #437 from linuxserver/dev-perms
use device perm fixer from baseimage
2025-12-13 11:32:46 -05:00
aptalca
64aed46150
use device perm fixer from baseimage 2025-12-09 12:58:58 -05:00
BuildTools
a1bac2c988 Merge remote-tracking branch 'upstream/master' 2025-12-08 16:37:58 +01:00
BuildTools
a5ad980f28 Merge remote-tracking branch 'upstream/master' 2025-11-08 10:19:16 +01:00
BuildTools
806b88c37a Merge remote-tracking branch 'upstream/master' 2025-10-26 14:30:02 +01:00
BuildTools
c0b54e8512 Merge remote-tracking branch 'upstream/master' 2025-10-04 15:16:38 +02:00
BuildTools
71640b3d41 Merge remote-tracking branch 'upstream/master' 2025-09-21 13:44:30 +02:00
BuildTools
3644491d23 Merge remote-tracking branch 'upstream/master' 2025-08-24 12:52:25 +02:00
BuildTools
0f27fcacc2 Merge remote-tracking branch 'upstream/master' 2025-08-09 15:45:29 +02:00
BuildTools
727499b357 Merge remote-tracking branch 'upstream/master' 2025-08-03 12:31:06 +02:00
BuildTools
c87f1010a7 Merge remote-tracking branch 'upstream/master' 2025-07-20 10:09:20 +02:00
BuildTools
c14dd5a47c Merge remote-tracking branch 'upstream/master' 2025-07-06 09:52:19 +02:00
BuildTools
70c49ef2d4 Merge remote-tracking branch 'upstream/master' 2025-06-19 15:31:30 +02:00
BuildTools
303d122c01 Merge remote-tracking branch 'upstream/master' 2025-06-08 10:14:27 +02:00
BuildTools
c35f69d4fa Merge remote-tracking branch 'upstream/master' 2025-05-31 11:35:19 +02:00
BuildTools
05ec76e7e9 Merge remote-tracking branch 'upstream/master' 2025-05-11 10:15:24 +00:00
BuildTools
97c9c78c0c Merge remote-tracking branch 'upstream/master' 2025-03-29 09:13:32 +00:00
BuildTools
5be1cb4c1c Merge remote-tracking branch 'upstream/master' 2025-03-16 11:06:55 +00:00
BuildTools
dbabe2bee4 Merge remote-tracking branch 'upstream/master' 2025-02-15 09:20:18 +00:00
BuildTools
b9716badd9 Merge remote-tracking branch 'upstream/master' 2025-01-26 12:52:01 +00:00
BuildTools
54de1404ca Merge remote-tracking branch 'upstream/master' 2025-01-03 14:10:00 +00:00
BuildTools
56d67a38c4 made wg a dependency for plex service 2024-12-27 13:00:23 +00:00
BuildTools
c8c020c491 Merge remote-tracking branch 'upstream/master' 2024-12-27 12:47:35 +00:00
BuildTools
bd368dfbf3 Merge remote-tracking branch 'upstream/master' 2024-12-22 11:32:26 +00:00
BuildTools
7c019750ce Merge remote-tracking branch 'upstream/master' 2024-11-16 08:56:01 +00:00
BuildTools
a54fdfbce9 Merge remote-tracking branch 'upstream/master' 2024-11-09 11:02:57 +00:00
BuildTools
8e9b62b828 Merge remote-tracking branch 'upstream/master' 2024-11-02 12:42:42 +00:00
BuildTools
1a6eae12a2 Merge remote-tracking branch 'upstream/master' 2024-10-05 10:42:35 +00:00
BuildTools
fedcb7ae7a Merge remote-tracking branch 'upstream/master' 2024-09-28 08:33:03 +00:00
BuildTools
5be889429b Merge remote-tracking branch 'upstream/master' 2024-09-08 09:23:27 +00:00
BuildTools
5c3b47763c Merge remote-tracking branch 'upstream/master' 2024-08-31 14:54:39 +00:00
BuildTools
521b7d06d8 Merge remote-tracking branch 'upstream/master' 2024-08-26 19:11:38 +00:00
BuildTools
2ca56eb1ce Merge remote-tracking branch 'upstream/master' 2024-08-16 15:16:14 +00:00
BuildTools
9fdb4a4894 Merge remote-tracking branch 'upstream/master' 2024-08-13 15:41:36 +00:00
BuildTools
34130ffa25 Merge remote-tracking branch 'upstream/master' 2024-06-15 08:53:43 +00:00
BuildTools
c25a8e637e Merge remote-tracking branch 'upstream/master' 2024-05-05 09:30:32 +00:00
BuildTools
658c63714c Merge remote-tracking branch 'upstream/master' 2024-03-16 10:00:25 +00:00
BuildTools
d177f3a00e Merge remote-tracking branch 'upstream/master' 2023-12-05 15:37:00 +00:00
BuildTools
603a79335f removed wg0 at build 2023-11-01 10:50:50 +00:00
jaannnis
fa08911915 Update README.md 2023-11-01 10:50:47 +00:00
jaannnis
3cced1d334 Update Dockerfile
install wireguard
copy wireguard config

added wireguarg config

Update Dockerfile

Update Dockerfile

a

cleanup
2023-11-01 10:49:42 +00:00
21 changed files with 245 additions and 185 deletions

View file

@ -0,0 +1,49 @@
name: Build and push image
on:
push:
branches: [master]
schedule:
- cron: '0 4 * * *' # daily, picks up LSIO base image updates
workflow_dispatch:
jobs:
build:
runs-on: docker
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: master
fetch-depth: 0
token: ${{ secrets.PUSH_TOKEN }}
- name: Merge upstream
run: |
git config user.name "forgejo-runner"
git config user.email "runner@forge.jannis.wtf"
git fetch origin master
git reset --hard origin/master
git remote add upstream https://github.com/linuxserver/docker-plex
git fetch upstream
git merge upstream/master --no-edit
git push origin master
- name: Set up Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Forgejo registry
uses: docker/login-action@v3
with:
registry: forge.jannis.wtf
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
forge.jannis.wtf/fej/plex-wireguard:latest
forge.jannis.wtf/fej/plex-wireguard:${{ github.sha }}

2
.gitignore vendored
View file

@ -1,3 +1,5 @@
# Wireguard configs, you never know
wg*.conf
# Windows image file caches
Thumbs.db
ehthumbs.db

View file

@ -24,14 +24,17 @@ ENV DEBIAN_FRONTEND="noninteractive" \
PLEX_MEDIA_SERVER_USER="abc" \
PLEX_MEDIA_SERVER_INFO_VENDOR="Docker" \
PLEX_MEDIA_SERVER_INFO_DEVICE="Docker Container (LinuxServer.io)" \
TMPDIR=/run/plex-temp
TMPDIR=/run/plex-temp \
ATTACHED_DEVICES_PERMS="/dev/dri /dev/dvb -type c"
RUN \
echo "**** install runtime packages ****" && \
echo "**** install runtime packages & wireguard ****" && \
apt-get update && \
apt-get install -y \
udev \
wget && \
wget \
iproute2 \
wireguard-tools &&\
echo "**** install plex ****" && \
if [ -z ${PLEX_RELEASE+x} ]; then \
PLEX_RELEASE=$(curl -sX GET 'https://plex.tv/api/downloads/5.json' \
@ -55,6 +58,7 @@ RUN \
# add local files
COPY root/ /
# add unrar
COPY --from=unrar /usr/bin/unrar-ubuntu /usr/bin/unrar

View file

@ -21,7 +21,8 @@ ENV DEBIAN_FRONTEND="noninteractive" \
PLEX_MEDIA_SERVER_USER="abc" \
PLEX_MEDIA_SERVER_INFO_VENDOR="Docker" \
PLEX_MEDIA_SERVER_INFO_DEVICE="Docker Container (LinuxServer.io)" \
TMPDIR=/run/plex-temp
TMPDIR=/run/plex-temp \
ATTACHED_DEVICES_PERMS="/dev/dri /dev/dvb -type c"
RUN \
echo "**** install runtime packages ****" && \

174
Jenkinsfile vendored
View file

@ -77,6 +77,7 @@ pipeline {
'''
script{
env.EXIT_STATUS = ''
env.CI_TEST_ATTEMPTED = ''
env.LS_RELEASE = sh(
script: '''docker run --rm quay.io/skopeo/stable:v1 inspect docker://ghcr.io/${LS_USER}/${CONTAINER_NAME}:latest 2>/dev/null | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''',
returnStdout: true).trim()
@ -285,7 +286,7 @@ pipeline {
-v ${WORKSPACE}:/mnt \
-e AWS_ACCESS_KEY_ID=\"${S3_KEY}\" \
-e AWS_SECRET_ACCESS_KEY=\"${S3_SECRET}\" \
ghcr.io/linuxserver/baseimage-alpine:3 s6-envdir -fn -- /var/run/s6/container_environment /bin/bash -c "\
ghcr.io/linuxserver/baseimage-alpine:3.23 s6-envdir -fn -- /var/run/s6/container_environment /bin/bash -c "\
apk add --no-cache python3 && \
python3 -m venv /lsiopy && \
pip install --no-cache-dir -U pip && \
@ -873,6 +874,7 @@ pipeline {
script{
env.CI_URL = 'https://ci-tests.linuxserver.io/' + env.IMAGE + '/' + env.META_TAG + '/index.html'
env.CI_JSON_URL = 'https://ci-tests.linuxserver.io/' + env.IMAGE + '/' + env.META_TAG + '/report.json'
env.CI_TEST_ATTEMPTED = 'true'
}
sh '''#! /bin/bash
set -e
@ -1075,98 +1077,13 @@ EOF
) '''
}
}
// If this is a Pull request send the CI link as a comment on it
stage('Pull Request Comment') {
when {
not {environment name: 'CHANGE_ID', value: ''}
environment name: 'EXIT_STATUS', value: ''
}
steps {
sh '''#! /bin/bash
# Function to retrieve JSON data from URL
get_json() {
local url="$1"
local response=$(curl -s "$url")
if [ $? -ne 0 ]; then
echo "Failed to retrieve JSON data from $url"
return 1
fi
local json=$(echo "$response" | jq .)
if [ $? -ne 0 ]; then
echo "Failed to parse JSON data from $url"
return 1
fi
echo "$json"
}
build_table() {
local data="$1"
# Get the keys in the JSON data
local keys=$(echo "$data" | jq -r 'to_entries | map(.key) | .[]')
# Check if keys are empty
if [ -z "$keys" ]; then
echo "JSON report data does not contain any keys or the report does not exist."
return 1
fi
# Build table header
local header="| Tag | Passed |\\n| --- | --- |\\n"
# Loop through the JSON data to build the table rows
local rows=""
for build in $keys; do
local status=$(echo "$data" | jq -r ".[\\"$build\\"].test_success")
if [ "$status" = "true" ]; then
status="✅"
else
status="❌"
fi
local row="| "$build" | "$status" |\\n"
rows="${rows}${row}"
done
local table="${header}${rows}"
local escaped_table=$(echo "$table" | sed 's/\"/\\\\"/g')
echo "$escaped_table"
}
if [[ "${CI}" = "true" ]]; then
# Retrieve JSON data from URL
data=$(get_json "$CI_JSON_URL")
# Create table from JSON data
table=$(build_table "$data")
echo -e "$table"
curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/$LS_USER/$LS_REPO/issues/$PULL_REQUEST/comments" \
-d "{\\"body\\": \\"I am a bot, here are the test results for this PR: \\n${CI_URL}\\n${SHELLCHECK_URL}\\n${table}\\"}"
else
curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/$LS_USER/$LS_REPO/issues/$PULL_REQUEST/comments" \
-d "{\\"body\\": \\"I am a bot, here is the pushed image/manifest for this PR: \\n\\n\\`${GITHUBIMAGE}:${META_TAG}\\`\\"}"
fi
'''
}
}
}
/* ######################
Send status to Discord
Comment on PR and Send status to Discord
###################### */
post {
always {
sh '''#!/bin/bash
rm -rf /config/.ssh/id_sign
rm -rf /config/.ssh/id_sign.pub
git config --global --unset gpg.format
git config --global --unset user.signingkey
git config --global --unset commit.gpgsign
'''
script{
script {
env.JOB_DATE = sh(
script: '''date '+%Y-%m-%dT%H:%M:%S%:z' ''',
returnStdout: true).trim()
@ -1209,6 +1126,87 @@ EOF
"username": "Jenkins"}' ${BUILDS_DISCORD} '''
}
}
script {
if (env.GITHUBIMAGE =~ /lspipepr/){
if (env.CI_TEST_ATTEMPTED == "true"){
sh '''#! /bin/bash
# Function to retrieve JSON data from URL
get_json() {
local url="$1"
local response=$(curl -s "$url")
if [ $? -ne 0 ]; then
echo "Failed to retrieve JSON data from $url"
return 1
fi
local json=$(echo "$response" | jq .)
if [ $? -ne 0 ]; then
echo "Failed to parse JSON data from $url"
return 1
fi
echo "$json"
}
build_table() {
local data="$1"
# Get the keys in the JSON data
local keys=$(echo "$data" | jq -r 'to_entries | map(.key) | .[]')
# Check if keys are empty
if [ -z "$keys" ]; then
echo "JSON report data does not contain any keys or the report does not exist."
return 1
fi
# Build table header
local header="| Tag | Passed |\\n| --- | --- |\\n"
# Loop through the JSON data to build the table rows
local rows=""
for build in $keys; do
local status=$(echo "$data" | jq -r ".[\\"$build\\"].test_success")
if [ "$status" = "true" ]; then
status="✅"
else
status="❌"
fi
local row="| "$build" | "$status" |\\n"
rows="${rows}${row}"
done
local table="${header}${rows}"
local escaped_table=$(echo "$table" | sed 's/\"/\\\\"/g')
echo "$escaped_table"
}
if [[ "${CI}" = "true" ]]; then
# Retrieve JSON data from URL
data=$(get_json "$CI_JSON_URL")
# Create table from JSON data
table=$(build_table "$data")
echo -e "$table"
curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/$LS_USER/$LS_REPO/issues/$PULL_REQUEST/comments" \
-d "{\\"body\\": \\"I am a bot, here are the test results for this PR: \\n${CI_URL}\\n${SHELLCHECK_URL}\\n${table}\\"}"
else
curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/$LS_USER/$LS_REPO/issues/$PULL_REQUEST/comments" \
-d "{\\"body\\": \\"I am a bot, here is the pushed image/manifest for this PR: \\n\\n\\`${GITHUBIMAGE}:${META_TAG}\\`\\"}"
fi
'''
}
}
}
sh '''#!/bin/bash
rm -rf /config/.ssh/id_sign
rm -rf /config/.ssh/id_sign.pub
git config --global --unset gpg.format
git config --global --unset user.signingkey
git config --global --unset commit.gpgsign
'''
}
cleanup {
sh '''#! /bin/bash

View file

@ -1,5 +1,19 @@
<<<<<<< HEAD
<!-- DO NOT EDIT THIS FILE MANUALLY -->
<!-- Please read https://github.com/linuxserver/docker-plex/blob/master/.github/CONTRIBUTING.md -->
=======
due to the recent purge of Hosters by plex, this fork adds wireguard functionallity to the plex container as a quick workaround. all traffic gets tunneled.
wireguard onfig file has to be mounted in /etc/wireguard/wg0.conf. e.g.:
```
volumes:
- ./wg0.conf:/etc/wireguard/wg0.conf
```
<!-- DO NOT EDIT THIS FILE MANUALLY -->
<!-- Please read the https://github.com/linuxserver/docker-plex/blob/master/.github/CONTRIBUTING.md -->
>>>>>>> 72bdfaa (Update README.md)
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io)
[![Blog](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Blog)](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
@ -122,7 +136,7 @@ This image can be run with a non-root user. For details please [read the docs](h
To help you get started creating a container from this image you can either use docker-compose or the docker cli.
>[!NOTE]
>Unless a parameter is flaged as 'optional', it is *mandatory* and a value must be provided.
>Unless a parameter is flagged as 'optional', it is *mandatory* and a value must be provided.
### docker-compose (recommended, [click here for more info](https://docs.linuxserver.io/general/docker-compose))
@ -371,6 +385,8 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
* **15.03.26:** - Allow TMPDIR to be changed to better support read-only containers
* **15.03.26:** - Fix initial claim setup on non-root containers
* **04.11.24:** - Add Nvidia capability needed for h265
* **18.07.24:** - Rebase to Ubuntu Noble.
* **12.02.24:** - Use universal hardware acceleration blurb

View file

@ -2,40 +2,40 @@ NAME VERSION TYPE
adduser 3.137ubuntu1 deb
apt 2.8.3 deb
apt-utils 2.8.3 deb
base-files 13ubuntu10.3 deb
base-files 13ubuntu10.4 deb
base-passwd 3.6.3build1 deb
bash 5.2.21-2ubuntu4 deb
bsdutils 1:2.39.3-9ubuntu6.3 deb
bsdutils 1:2.39.3-9ubuntu6.5 deb
ca-certificates 20240203 deb
catatonit 0.1.7-1 deb
coreutils 9.4-3ubuntu6.1 deb
coreutils 9.4-3ubuntu6.2 deb
cron 3.0pl1-184ubuntu2 deb
cron-daemon-common 3.0pl1-184ubuntu2 deb
curl 8.5.0-2ubuntu10.6 deb
curl 8.5.0-2ubuntu10.8 deb
dash 0.5.12-6ubuntu5 deb
debconf 1.5.86ubuntu1 deb
debianutils 5.17build1 deb
diffutils 1:3.10-1build1 deb
dirmngr 2.4.4-2ubuntu17.3 deb
dirmngr 2.4.4-2ubuntu17.4 deb
dpkg 1.22.6ubuntu6.5 deb
e2fsprogs 1.47.0-2.4~exp1ubuntu4.1 deb
findutils 4.9.0-5build1 deb
gcc-14-base 14.2.0-4ubuntu2~24.04 deb
gnupg 2.4.4-2ubuntu17.3 deb
gnupg-l10n 2.4.4-2ubuntu17.3 deb
gnupg-utils 2.4.4-2ubuntu17.3 deb
gpg 2.4.4-2ubuntu17.3 deb
gpg-agent 2.4.4-2ubuntu17.3 deb
gpg-wks-client 2.4.4-2ubuntu17.3 deb
gpgconf 2.4.4-2ubuntu17.3 deb
gpgsm 2.4.4-2ubuntu17.3 deb
gpgv 2.4.4-2ubuntu17.3 deb
gcc-14-base 14.2.0-4ubuntu2~24.04.1 deb
gnupg 2.4.4-2ubuntu17.4 deb
gnupg-l10n 2.4.4-2ubuntu17.4 deb
gnupg-utils 2.4.4-2ubuntu17.4 deb
gpg 2.4.4-2ubuntu17.4 deb
gpg-agent 2.4.4-2ubuntu17.4 deb
gpg-wks-client 2.4.4-2ubuntu17.4 deb
gpgconf 2.4.4-2ubuntu17.4 deb
gpgsm 2.4.4-2ubuntu17.4 deb
gpgv 2.4.4-2ubuntu17.4 deb
grep 3.11-4build1 deb
gzip 1.12-1ubuntu3.1 deb
hostname 3.23+nmu2ubuntu2 deb
init-system-helpers 1.66ubuntu1 deb
jq 1.7.1-3ubuntu0.24.04.1 deb
keyboxd 2.4.4-2ubuntu17.3 deb
jq 1.7.1-3ubuntu0.24.04.2 deb
keyboxd 2.4.4-2ubuntu17.4 deb
krb5-locales 1.20.1-6ubuntu2.6 deb
libacl1 2.3.2-1build1.1 deb
libapt-pkg6.0t64 2.8.3 deb
@ -43,42 +43,42 @@ libassuan0 2.5.6-1build1 deb
libattr1 1:2.5.2-1build1.1 deb
libaudit-common 1:3.1.2-2.1build1.1 deb
libaudit1 1:3.1.2-2.1build1.1 deb
libblkid1 2.39.3-9ubuntu6.3 deb
libblkid1 2.39.3-9ubuntu6.5 deb
libbrotli1 1.1.0-2build2 deb
libbsd0 0.12.1-1build1.1 deb
libbz2-1.0 1.0.8-5.1build0.1 deb
libc-bin 2.39-0ubuntu8.6 deb
libc6 2.39-0ubuntu8.6 deb
libc-bin 2.39-0ubuntu8.7 deb
libc6 2.39-0ubuntu8.7 deb
libcap-ng0 0.8.4-2build2 deb
libcap2 1:2.66-5ubuntu2.2 deb
libcap2 1:2.66-5ubuntu2.4 deb
libcom-err2 1.47.0-2.4~exp1ubuntu4.1 deb
libcrypt1 1:4.4.36-4build1 deb
libcurl4t64 8.5.0-2ubuntu10.6 deb
libcurl4t64 8.5.0-2ubuntu10.8 deb
libdb5.3t64 5.3.28+dfsg2-7 deb
libdebconfclient0 0.271ubuntu3 deb
libext2fs2t64 1.47.0-2.4~exp1ubuntu4.1 deb
libffi8 3.4.6-1build1 deb
libgcc-s1 14.2.0-4ubuntu2~24.04 deb
libgcc-s1 14.2.0-4ubuntu2~24.04.1 deb
libgcrypt20 1.10.3-2build1 deb
libgmp10 2:6.3.0+dfsg-2ubuntu6.1 deb
libgnutls30t64 3.8.3-1.1ubuntu3.4 deb
libgnutls30t64 3.8.3-1.1ubuntu3.5 deb
libgpg-error0 1.47-3build2.1 deb
libgssapi-krb5-2 1.20.1-6ubuntu2.6 deb
libhogweed6t64 3.9.1-2.2build1.1 deb
libidn2-0 2.3.7-2build1.1 deb
libjq1 1.7.1-3ubuntu0.24.04.1 deb
libjq1 1.7.1-3ubuntu0.24.04.2 deb
libk5crypto3 1.20.1-6ubuntu2.6 deb
libkeyutils1 1.6.3-3build1 deb
libkmod2 31+20240202-2ubuntu7.1 deb
libkmod2 31+20240202-2ubuntu7.2 deb
libkrb5-3 1.20.1-6ubuntu2.6 deb
libkrb5support0 1.20.1-6ubuntu2.6 deb
libksba8 1.6.6-1build1 deb
libldap-common 2.6.7+dfsg-1~exp1ubuntu8.2 deb
libldap2 2.6.7+dfsg-1~exp1ubuntu8.2 deb
libldap-common 2.6.10+dfsg-0ubuntu0.24.04.1 deb
libldap2 2.6.10+dfsg-0ubuntu0.24.04.1 deb
liblz4-1 1.9.4-1build1.1 deb
liblzma5 5.6.1+really5.4.5-1ubuntu0.2 deb
libmd0 1.1.0-2build1.1 deb
libmount1 2.39.3-9ubuntu6.3 deb
libmount1 2.39.3-9ubuntu6.5 deb
libncursesw6 6.4+20240113-1ubuntu2 deb
libnettle8t64 3.9.1-2.2build1.1 deb
libnghttp2-14 1.59.0-1ubuntu0.2 deb
@ -102,47 +102,47 @@ libselinux1 3.5-2ubuntu2.1 deb
libsemanage-common 3.5-1build5 deb
libsemanage2 3.5-1build5 deb
libsepol2 3.5-2build1 deb
libsmartcols1 2.39.3-9ubuntu6.3 deb
libsmartcols1 2.39.3-9ubuntu6.5 deb
libsqlite3-0 3.45.1-1ubuntu2.5 deb
libss2 1.47.0-2.4~exp1ubuntu4.1 deb
libssh-4 0.10.6-2ubuntu0.2 deb
libssl3t64 3.0.13-0ubuntu3.6 deb
libstdc++6 14.2.0-4ubuntu2~24.04 deb
libsystemd0 255.4-1ubuntu8.11 deb
libtasn1-6 4.19.0-3ubuntu0.24.04.1 deb
libssh-4 0.10.6-2ubuntu0.4 deb
libssl3t64 3.0.13-0ubuntu3.9 deb
libstdc++6 14.2.0-4ubuntu2~24.04.1 deb
libsystemd0 255.4-1ubuntu8.15 deb
libtasn1-6 4.19.0-3ubuntu0.24.04.2 deb
libtinfo6 6.4+20240113-1ubuntu2 deb
libudev1 255.4-1ubuntu8.11 deb
libudev1 255.4-1ubuntu8.15 deb
libunistring5 1.1-2build1.1 deb
libuuid1 2.39.3-9ubuntu6.3 deb
libuuid1 2.39.3-9ubuntu6.5 deb
libxxhash0 0.8.2-2build1 deb
libzstd1 1.5.5+dfsg2-2build1.1 deb
locales 2.39-0ubuntu8.6 deb
locales 2.39-0ubuntu8.7 deb
login 1:4.13+dfsg1-4ubuntu3.2 deb
logsave 1.47.0-2.4~exp1ubuntu4.1 deb
mawk 1.3.4.20240123-1build1 deb
mount 2.39.3-9ubuntu6.3 deb
mount 2.39.3-9ubuntu6.5 deb
ncurses-base 6.4+20240113-1ubuntu2 deb
ncurses-bin 6.4+20240113-1ubuntu2 deb
netcat-openbsd 1.226-1ubuntu2 deb
openssl 3.0.13-0ubuntu3.6 deb
openssl 3.0.13-0ubuntu3.9 deb
passwd 1:4.13+dfsg1-4ubuntu3.2 deb
perl-base 5.38.2-3.2ubuntu0.2 deb
pinentry-curses 1.2.1-3ubuntu5 deb
plexmediaserver 1.42.2.10156-f737b826c deb
plexmediaserver 1.43.1.10611-1e34174b1 deb
procps 2:4.0.4-4ubuntu3.2 deb
publicsuffix 20231001.0357-0.1 deb
readline-common 8.2-4build1 deb
sed 4.9-2build1 deb
sensible-utils 0.0.22 deb
systemd-dev 255.4-1ubuntu8.11 deb
systemd-hwe-hwdb 255.1.6 deb
systemd-standalone-sysusers 255.4-1ubuntu8.11 deb
systemd-dev 255.4-1ubuntu8.15 deb
systemd-hwe-hwdb 255.1.7 deb
systemd-standalone-sysusers 255.4-1ubuntu8.15 deb
sysvinit-utils 3.08-6ubuntu3 deb
tar 1.35+dfsg-3build1 deb
tzdata 2025b-0ubuntu0.24.04.1 deb
tzdata 2026a-0ubuntu0.24.04.1 deb
ubuntu-keyring 2023.11.28.1 deb
udev 255.4-1ubuntu8.11 deb
udev 255.4-1ubuntu8.15 deb
unminimize 0.2.1 deb
util-linux 2.39.3-9ubuntu6.3 deb
util-linux 2.39.3-9ubuntu6.5 deb
wget 1.21.4-1ubuntu4.1 deb
zlib1g 1:1.3.dfsg-3.1ubuntu2.1 deb

View file

@ -112,8 +112,7 @@ init_diagram: |
init-envfile -> init-os-end
init-config -> init-plex-chown
init-plex-chown -> init-plex-claim
init-plex-claim -> init-plex-gid-video
init-plex-gid-video -> init-plex-update
init-plex-claim -> init-plex-update
init-custom-files -> init-services
init-services -> svc-cron
svc-cron -> legacy-services
@ -126,6 +125,8 @@ init_diagram: |
"plex:latest" <- Base Images
# changelog
changelogs:
- {date: "15.03.26:", desc: "Allow TMPDIR to be changed to better support read-only containers"}
- {date: "15.03.26:", desc: "Fix initial claim setup on non-root containers"}
- {date: "04.11.24:", desc: "Add Nvidia capability needed for h265"}
- {date: "18.07.24:", desc: "Rebase to Ubuntu Noble."}
- {date: "12.02.24:", desc: "Use universal hardware acceleration blurb"}

View file

@ -1,7 +1,11 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
mkdir -p /run/plex-temp
# remove plex temporary directory after unclean stop
if [[ -d "${TMPDIR}" ]]; then
rm -rf "${TMPDIR}"
fi
mkdir -p ${TMPDIR}
# create folders
if [[ ! -d "${PLEX_MEDIA_SERVER_APPLICATION_SUPPORT_DIR}" ]]; then
@ -40,7 +44,7 @@ if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
# permissions (non-recursive) on config root and folders
lsiown abc:abc \
/run/plex-temp \
"${TMPDIR}" \
/config \
/config/*
fi

View file

@ -19,8 +19,15 @@ if [[ ! -f "${PLEX_MEDIA_SERVER_PREFERENCES}" ]]; then
export PLEX_MEDIA_SERVER_INFO_MODEL
PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION=$(uname -r)
export PLEX_MEDIA_SERVER_INFO_PLATFORM_VERSION
s6-setuidgid abc /bin/bash -c \
'LD_LIBRARY_PATH=/usr/lib/plexmediaserver:/usr/lib/plexmediaserver/lib /usr/lib/plexmediaserver/Plex\ Media\ Server' &
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
s6-setuidgid abc /bin/bash -c \
'LD_LIBRARY_PATH=/usr/lib/plexmediaserver:/usr/lib/plexmediaserver/lib /usr/lib/plexmediaserver/Plex\ Media\ Server' &
else
/bin/bash -c \
'LD_LIBRARY_PATH=/usr/lib/plexmediaserver:/usr/lib/plexmediaserver/lib /usr/lib/plexmediaserver/Plex\ Media\ Server' &
fi
PID=$!
echo "Waiting for Plex to generate its config"
DBNAME="/config/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db-wal"

View file

@ -1,37 +0,0 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
if [[ -z ${LSIO_NON_ROOT_USER} ]]; then
FILES=$(find /dev/dri /dev/dvb -type c -print 2>/dev/null)
for i in ${FILES}; do
VIDEO_GID=$(stat -c '%g' "${i}")
VIDEO_UID=$(stat -c '%u' "${i}")
# check if user matches device
if id -u abc | grep -qw "${VIDEO_UID}"; then
echo "**** permissions for ${i} are good ****"
else
# check if group matches and that device has group rw
if id -G abc | grep -qw "${VIDEO_GID}" && [[ $(stat -c '%A' "${i}" | cut -b 5,6) == "rw" ]]; then
echo "**** permissions for ${i} are good ****"
# check if device needs to be added to video group
elif ! id -G abc | grep -qw "${VIDEO_GID}"; then
# check if video group needs to be created
VIDEO_NAME=$(getent group "${VIDEO_GID}" | awk -F: '{print $1}')
if [[ -z "${VIDEO_NAME}" ]]; then
VIDEO_NAME="video$(head /dev/urandom | tr -dc 'a-z0-9' | head -c4)"
groupadd "${VIDEO_NAME}"
groupmod -g "${VIDEO_GID}" "${VIDEO_NAME}"
echo "**** creating video group ${VIDEO_NAME} with id ${VIDEO_GID} ****"
fi
echo "**** adding ${i} to video group ${VIDEO_NAME} with id ${VIDEO_GID} ****"
usermod -a -G "${VIDEO_NAME}" abc
fi
# check if device has group rw
if [[ $(stat -c '%A' "${i}" | cut -b 5,6) != "rw" ]]; then
echo -e "**** The device ${i} does not have group read/write permissions, attempting to fix inside the container. ****"
chmod g+rw "${i}"
fi
fi
done
fi

View file

@ -1 +0,0 @@
oneshot

View file

@ -1 +0,0 @@
/etc/s6-overlay/s6-rc.d/init-plex-gid-video/run

View file

@ -0,0 +1,14 @@
#!/usr/bin/with-contenv bash
# Bring up WireGuard if not already up
if ! ip link show dev wg0 > /dev/null 2>&1; then
wg-quick up wg0
fi
# Monitor wireguard status
while true; do
if ! ip link show dev wg0 | grep -q "UP"; then
wg-quick up wg0
fi
sleep 60
done

View file

@ -0,0 +1 @@
longrun

View file

@ -1,6 +1,8 @@
#!/usr/bin/with-contenv bash
# shellcheck shell=bash
# Wait for WireGuard to be up
echo "Starting Plex Media Server. . . (you can ignore the libusb_init error)"
PLEX_MEDIA_SERVER_INFO_MODEL=$(uname -m)
export PLEX_MEDIA_SERVER_INFO_MODEL