Wikibase extension running on Mediawiki.
If no LocalSettings.php
file is mounted then an installation & update will automatically happen.
If LocalSettings.php
is mounted then the image assumes you will do this yourself.
Automated build.
Image name | Parent image |
---|---|
wikibase/wikibase : latest , 1.33 , latest-base , 1.33-base |
mediawiki:1.33 |
wikibase/wikibase : 1.32 , 1.32-base |
mediawiki:1.32 |
wikibase/wikibase : 1.31 , lts , lts-base , 1.31-base |
mediawiki:1.31 |
wikibase/wikibase : latest-bundle , 1.33-bundle |
wikibase:1.33 |
wikibase/wikibase : 1.32-bundle |
wikibase:1.32 |
wikibase/wikibase : lts-bundle , 1.31-bundle |
wikibase:1.31 |
Wikibase operates a continuous development model (alongside Mediawiki), where software changes are pushed live to Wikimedia sites such as Wikidata on a regular basis.
The LTS (long term stable) and EOL (end of life) versions and dates for Wikibase are the same as those for Mediawiki.
See https://www.mediawiki.org/wiki/Version_lifecycle for more details.
Wikibase-bundle images are built from the base wikibase images and also include the following additional extensions:
When upgrading between Wikibase versions you will have to run update.php to update your mysql tables.
A blog post documenting the update progress for this image in a docker-compose setup can be found here
Note: MW_ADMIN_NAME and MW_ADMIN_PASS probably shouldn't be here...
Variable | Default | Description |
---|---|---|
DB_SERVER |
"mysql.svc:3306" | Hostname and port for the MySQL server to use for Mediawiki & Wikibase |
DB_USER |
"wikiuser" | Username to use for the MySQL server |
DB_PASS |
"sqlpass" | Password to use for the MySQL server |
DB_NAME |
"my_wiki" | Database name to use for the MySQL server |
MW_SITE_NAME |
"wikibase-docker" | $wgSitename to use for MediaWiki |
MW_SITE_LANG |
"en" | $wgLanguageCode to use for MediaWiki |
MW_ADMIN_NAME |
"admin" | Admin username to create on MediaWiki first install |
MW_ADMIN_PASS |
"adminpass" | Admin password to use for admin account on first install |
MW_WG_SECRET_KEY |
"secretkey" | Used as source of entropy for persistent login/Oauth etc..(since 1.30) |
Directory | Description |
---|---|
/var/www/html |
Base Mediawiki directory |
/var/www/html/skins |
Mediawiki skins directory |
/var/www/html/extensions |
Mediawiki extensions directory |
File | Description |
---|---|
/LocalSettings.php.template |
Template for Mediawiki Localsettings.php (substituted to /var/www/html/LocalSettings.php at runtime) |
/var/www/html/LocalSettings.php |
LocalSettings.php location, when passed in /LocalSettings.php.template will not be used. install.php & update.php will also not be run. |
/extra-install.sh |
Extra code that will be run if LocalSettings.php isn't present (since 1.30) |
/extra-preinstall-runtime.sh |
Extra code that will be run from the entrypoint every time (since 1.30) |
Maintenance scripts from extensions and mediawiki core can be run with docker exec
using the wikibase/wikibase container as the targeted container
For example to run a maintenance script from WikibaseImport:
docker exec <container name / hash> php //var/www/html/extensions/WikibaseImport/maintenance/importEntities.php --entity Q147