< Cli < ref
mw docker mediawiki fresh
Runs commands in a ‘fresh’ container.
Synopsis
MediaWiki Fresh
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
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
mw docker mediawiki fresh [flags] [fresh-commands]... -- [fresh-args]
Options
-u, --user string User to run as, defaults to current OS user uid:gid (default "0:0")
Options inherited from parent commands
-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
- mw docker mediawiki - MediaWiki service
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.