fix: rootless support for Alpine container image#123
Merged
rwaffen merged 1 commit intoOpenVoxProject:mainfrom Apr 7, 2026
Merged
fix: rootless support for Alpine container image#123rwaffen merged 1 commit intoOpenVoxProject:mainfrom
rwaffen merged 1 commit intoOpenVoxProject:mainfrom
Conversation
2d68854 to
8af527d
Compare
rwaffen
reviewed
Apr 7, 2026
f5a834a to
7c51cb5
Compare
bastelfreak
reviewed
Apr 7, 2026
7c51cb5 to
bf99a75
Compare
bastelfreak
reviewed
Apr 7, 2026
Patch out chown calls that fail without CAP_CHOWN in rootless containers. Use find instead of hardcoded gem paths so patches survive Ruby and gem version changes. Signed-off-by: Simon Lauger <simon@lauger.de>
bf99a75 to
601abd0
Compare
Member
Author
|
Maybe we should also add some tests - e.g. with https://github.com/googlecontainertools/container-structure-test |
bastelfreak
reviewed
Apr 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FileUtils.chowncalls inopenvoxserver-cagem — these fail in rootless containers because the process lacksCAP_CHOWN. The directory ownership is already handled correctly by theg=u/ SGID permission pattern.foregroundscript to usetouch + chmodinstead ofinstall --owner --groupfor the restartcounter file, which also requiresCAP_CHOWN.Both patches are the same approach used in the openvox-operator.
Tested on Linux with podman and bind-mounted CA directory — container starts successfully.
Note: When bind-mounting the CA directory with podman rootless, users need to ensure the directory is writable by the container user, e.g. using the
:Uvolume flag.Ref: #121