MediaWiki-Docker/Extension/ContentTranslation

Installing the dependencies and setting up the environment should take about 15 minutes

Note that this instructions are slightly different from general mediawiki docker installation instructions since the default  database is not enough for ContentTranslation.


 * Clone all the required repositories.

Configurations
In the  directory, using a text editor, create a   file in the root of the MediaWiki core repository, and copy these contents into that file: Create a   containing the following:

Run the following command to add your user ID and group ID to your  file:

Installation
Start the environment: Install Composer dependencies: Install mediawiki and database At this point, a file named   will be created in the   folder. You will be able to access your wiki at http://localhost:8080. You should also see the cxserver API endpoint running at http://localhost:8090

Prepare cxserver
An default configuration file is given as config.dev.yaml. Copy it to  to customize. For detailed setup, refer Content translation/cxserver/Setup

Prepare Extensions
To enable the cloned extensions, Add the following code at the bottom of your : These extensions need more database tables. To add them to our database, run: At this point, you should be able to see Content Translation enabled in your wiki. Please try navigating to http://localhost:8080/wiki/Special:ContentTranslation

Running commands
You can use  to open a bash shell in the MediaWiki container, or you can run commands in the container from your host, for example:

PHPUnit
Run all tests: Run a single test:

Limitations
The nodejs is missing in the container. So working with linting tools, developing with vuejs for CX3 may be limiting. Such customizations are possible with a Dockerfile overriding and building it on top of base image.