wmde/wikibase-release-pipeline

Installing extensions

yoavnash opened this issue · 3 comments

How does one install extensions under the set up given in the example folder?
For example, I try to install this extension: https://github.com/OpenSemanticLab/mediawiki-extensions-InteractiveSemanticGraph

One way to do it is by manually downloading the extension and then mounting the directory into the running containers.
It is an ugly way, but it does get it working, and is convenient when you want to develop a new extension.

Don't forget to enable the extension in the LocalSettings.php that is also mounted into the containers.

In the docker-compose.json the extension directory should be mounted to both the wikibase service and the wikibase_jobrunner service:

services:
  wikibase:
    ...
    volumes:
      ...
      - ./LocalSettings.php:/var/www/html/LocalSettings.d/LocalSettings.override.php
      - ${EXTENSION_PATH}:/var/www/html/extensions/<extension dir name>
      ...
   wikibase_jobrunner:
    ...
    volumes:
      ...
      - ./LocalSettings.php:/var/www/html/LocalSettings.d/LocalSettings.override.php
      - ${EXTENSION_PATH}:/var/www/html/extensions/<extension dir name>

Thank you!

When using the container images you want to do one of the following:

  1. Build on top of the container images that are created as part of suite, adding the extensions that you want/need
  2. Just mount files into the containers at run time as described above using docker-compose

If there are extensions that are generally accepted to be part of a default wikibase experience we can look at adding them to the bundle container image