Permission errors in run-apache.sh
Hi CHT!
We've identified an issue with the Dockerfile where it looks like the defined USER www-data
in the Dockerfile breaks some permissions within /run-apache.sh
as it is expecting USER root
. I'm hoping you can help me resolve the root cause or at least find workarounds for the major issues. Specifically it results in files not going where they need to, resulting in various issues and broken install. I know normally running containers as root is not allowed and I need help determining alternatives.
Errors during container startup:
Syncing files.. rsync: chgrp "/mediawiki/images" failed: Operation not permitted (1) rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]
/run-apache.sh: line 65: /etc/hosts: Permission denied
-
PHP Fatal error: Uncaught Exception: Unable to open file /var/www/mediawiki/w/extensions/AdminLinks/extension.json: filemtime(): stat failed
for any extension called bywfLoadExtension
from theextensions/
folder. -
Semantic MediaWiki was installed and enabled but is missing an appropriate upgrade key.
Similar issue here. + runuser -c 'php maintenance/update.php --quick' -s /bin/bash www-data.. Checking for LocalSettings.. Running Auto-update.. runuser: may not be used by non-root users
I am thinking the Dockerfile could do COPY --chmod=755 --chown=root:www-data /reqd/folders/here
or something. Thoughts on what to make that command or how to get the show-stoppers working? I don't know what to do about things like may not be used by non-root users
.
Thanks in advance,
--Jared
Space Wiki project, COT-475 - https://space-wiki.staging.dso.mil/
Mentions: