Repository navigation
Add read-only and non-root support - #127
tkimball83 wants to merge 1 commit into
Conversation
|
Thanks for opening this pull request! Be sure to follow the pull request template! |
|
This pull request has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions. |
|
Still active and ready for review. It's been running as my production Emby server since it was opened, with no issues. The failing |
I have read the contributing guideline and understand that I have made the correct modifications
An LLM assisted me in writing the code or text for this PR
An LLM agent wrote the code or text for this PR
Description:
Adds read-only and non-root support, following what docker-plex already does.
svc-embyonly runss6-setuidgid abcwhenLSIO_NON_ROOT_USERis unset, andinit-emby-configskips creating/data(read-only or non-root) and the/configownership fix-up (non-root).readme-vars.ymlgetsreadonly_supported/nonroot_supportedand a changelog entry.Benefits of this PR and context:
Today the image can't run with
--user:svc-embyalways callss6-setuidgid abc, which fails as non-root (unable to set supplementary group list), and the ownership check ininit-emby-configtries a recursivelsiownbecausePUIDdefaults to 911. With this change emby can run read-only and as a non-root user with no added capabilities, like plex and the arr images. Root mode is unchanged.How Has This Been Tested?
Built from this branch (Dockerfile unchanged,
EMBY_RELEASE=4.10.2.0) and run against an existing 3.2 GB/configfrom a production server, on rootless Podman 5.8.2 on AlmaLinux 9 with an AMD GPU:/config,/run,/tmpand/transcode./config.Not tested with Docker or on aarch64. The Dockerfiles are unchanged.
Source / References:
docker-plex
svc-plexandinit-plex-chownuse the sameLSIO_NON_ROOT_USER/LSIO_READ_ONLY_FSguards.