Difference between revisions of "XLP DevOps Process"

From PKC
Jump to navigation Jump to search
Line 1: Line 1:
= Step 1 =
= Step 1 =
== Upgrade current container to Mediawiki 1.35 to latest stable version [1.37.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 [https://hub.docker.com/layers/mediawiki/library/mediawiki/1.37.1/images/sha256-0fcc0d76a63df7ddfde0095f4c069bf6ea9682241f65ad45954a81bc33d4ea58?context=explore 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 [https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki Semantic MediaWiki], and [https://www.mediawiki.org/wiki/MediaWiki_Language_Extension_Bundle MediaWiki Language Extension Bundle] (MLEB).
First attempt, is to update the container image to use available docker image in [https://hub.docker.com/layers/mediawiki/library/mediawiki/1.37.1/images/sha256-0fcc0d76a63df7ddfde0095f4c069bf6ea9682241f65ad45954a81bc33d4ea58?context=explore 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 [https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki Semantic MediaWiki], and [https://www.mediawiki.org/wiki/MediaWiki_Language_Extension_Bundle 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 [https://www.mediawiki.org/wiki/Content_translation Content Translation Demo] page.


{| class="wikitable"
{| class="wikitable"
Line 36: Line 36:
  }
  }
  }
  }
As the docker build process is runned, it shows incompatibility error.
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;
[[File:Docker Build Error.png|thumb|Docker container build error]]
[[File:Docker Build Error.png|thumb|Docker container build error]]



Revision as of 06:29, 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.

Platform compatibility and release status
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;

Error creating thumbnail: Unable to save thumbnail to destination
Docker container build error

Step 2

Implement the container into pkc-mirror.de

Step 3

Import content from pkc.pub

Step 4

Connecting PKC Local Installation to use confederated account to pkc-mirror.de