Difference between revisions of "XLP DevOps Process"
Line 36: | Line 36: | ||
} | } | ||
} | } | ||
As the docker build process is runned, it shows incompatibility error between Semantic Media Wiki 4.0, Semantic Result Format 3.2, and Semantic Cite 2.1; | As the docker build process is runned, it shows incompatibility error between Semantic Media Wiki 4.0, Semantic Result Format 3.2, and Semantic Cite 2.1; To make the process running, decided to remove both of extension and the build process is running well. The proceed to add MLEB extension into the container. | ||
[[File:Docker Build Error.png|thumb|Docker container build error]] | [[File:Docker Build Error.png|thumb|Docker container build error]] | ||
First attempt on installing the MLEB is through the git, using below command. | |||
for ext in Babel cldr CleanChanges LocalisationUpdate Translate UniversalLanguageSelector | |||
do | |||
if [ ! -d "$ext" ] | |||
then | |||
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/$ext.git | |||
fi | |||
cd $ext; git fetch --tags; git checkout 2022.01; cd .. | |||
done | |||
= Step 2 = | = Step 2 = |
Revision as of 06:43, 11 February 2022
Step 1
Upgrade current container to Mediawiki 1.35 to latest stable version [1.37.1]
First attempt, is to update the container image to use available docker image in Mediawiki container in Docker Hub, version 1.37.1; and adjust/upgrade all the related extensions to the version that support Mediawiki 1.37.1. The major extension that is need to be adjusted is Semantic MediaWiki, and MediaWiki Language Extension Bundle (MLEB). The motivation to upgrade to Mediawiki 1.37.1 is to enable the Content Translation Feature, to enable translation process using automatic translation function, the goals can be see in Content Translation Demo page.
SMW | PHP | Media Wiki | Released | Status |
---|---|---|---|---|
4.1.X | 7.4.0 - 7.4.x | 1.35.0 - 1.37.x | - | Development |
4.0.X | 7.3.0 - 7.4.x | 1.35.0 - 1.37.x | 2021-01-18 | Stable release |
3.2.x | 7.1.0 - 7.4.x | 1.31.0 - 1.35.x | 2020-09-07 | Obsolete |
Based on table above, SMW Version 4.0.X and MediaWiki 1.37.X, runs on PHP 7.4.X is the version combination that we are going to use, and written into DockerFile configuration. To minimized the complexity, decided to remove all other extensions to ensure both SMW and MLEB is running correctly, thus we can localized if we found any of the extensions is having trouble.
Adjustment made on composer.local.json, as shown below
{ "require": { "rht/merkle-tree": "dev-master", "mediawiki/maps": "9.0", "mediawiki/semantic-media-wiki":"~4.0", "mediawiki/semantic-result-formats": "~3.2", "mediawiki/semantic-cite": "~2.1", "mediawiki/sub-page-list": "~1.4", "mediawiki/semantic-scribunto": "~2.2" }, "extra": { "merge-plugin": { "include": [ "extensions/OpenIDConnect/composer.json" ] } } }
As the docker build process is runned, it shows incompatibility error between Semantic Media Wiki 4.0, Semantic Result Format 3.2, and Semantic Cite 2.1; To make the process running, decided to remove both of extension and the build process is running well. The proceed to add MLEB extension into the container.
First attempt on installing the MLEB is through the git, using below command.
for ext in Babel cldr CleanChanges LocalisationUpdate Translate UniversalLanguageSelector do if [ ! -d "$ext" ] then git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/$ext.git fi cd $ext; git fetch --tags; git checkout 2022.01; cd .. done