Skip to content

mwscript: Containerize MediaWiki script execution

Dduvall requested to merge master-I79d2e648a0df8fb15218ab5d601e94e603bcf6cf into master

Run all MediaWiki PHP scripts using Docker.

This will allow us to run certain scap commands in environments other
than the deployment host (such as release hosts) without installing a
large number of MediaWiki dependencies.

Provide a new mwscript module and mwscript.Runtime class that
implements mwscript and shell execution using Docker. The latter
replaces some commands that were previously executed using sudo.

Refactor tasks and main modules to use mwscript.Runtime instead of
sudo_check_call.

Bug: T369115

Merge request reports