Cli/ref/mw docker mediawiki fresh
mw docker mediawiki fresh
[edit]Runs commands in a âfreshâ container.
Synopsis
[edit]
MediaWiki Fresh
[edit]A Fresh environment is a fast and ready-to-use Docker container with various developer tools pre-installed. Including Node.js, and headless browsers. It aims to help to run npm packages on your machine, without putting your personal data at risk!
Some default environment variables will be provided for you in the fresh container.
MW_SERVER=http://default.mediawiki.mwdd:${PORT}
MW_SCRIPT_PATH=/w
MEDIAWIKI_USER=Admin
MEDIAWIKI_PASSWORD=mwddpassword
Usage
[edit]Note: the lack of .localhost
at the end of the site name. Using .localhost
will NOT work in this container.
Start an interactive terminal in the fresh container
fresh bash
Run npm ci in the currently directory (if within mediawiki)
fresh npm ci
Run mediawiki core tests (when in the mediawiki core directory)
fresh npm run selenium-test
Run a single Wikibase extension test spec (when in the Wikibase extension directory)
fresh npm run selenium-test:repo -- -- --spec repo/tests/selenium/specs/item.js
Documentation
[edit]mw docker mediawiki fresh [flags] [fresh-commands]... -- [fresh-args]
Options
[edit]-u, --user string User to run as, defaults to current OS user uid:gid (default "0:0")
Options inherited from parent commands
[edit]-c, --context string The context to use (default "default") --help Help for this command --no-interaction Do not ask any interactive questions -v, --verbose count Increase output verbosity. Example: --verbose=2 or -vv
SEE ALSO
[edit]- mw docker mediawiki - MediaWiki service