Difference between revisions of "Pymediawikidocker"
Jump to navigation
Jump to search
Line 34: | Line 34: | ||
# alternatively if your pip is not a python3 pip | # alternatively if your pip is not a python3 pip | ||
pip3 install pymediawikidocker -U | pip3 install pymediawikidocker -U | ||
+ | </source> | ||
+ | = Usage = | ||
+ | <source lang='bash'> | ||
+ | usage: mwcluster [-h] [-d] [-V] [-f] | ||
+ | |||
+ | mwcluster | ||
+ | |||
+ | Created by Wolfgang Fahl on 2021-06-21. | ||
+ | Copyright 2021 Wolfgang Fahl. All rights reserved. | ||
+ | |||
+ | Licensed under the Apache License 2.0 | ||
+ | http://www.apache.org/licenses/LICENSE-2.0 | ||
+ | |||
+ | Distributed on an "AS IS" basis without warranties | ||
+ | or conditions of any kind, either express or implied. | ||
+ | |||
+ | optional arguments: | ||
+ | -h, --help show this help message and exit | ||
+ | -d, --debug set debug level [default: False] | ||
+ | -V, --version show program's version number and exit | ||
+ | -f, --forceRebuild shall the applications rebuild be forced (with stop and remove of existing containers) | ||
</source> | </source> | ||
= Links = | = Links = | ||
* [https://www.wikidata.org/wiki/Q83 Wikidata entry for Mediawiki software] | * [https://www.wikidata.org/wiki/Q83 Wikidata entry for Mediawiki software] |
Revision as of 05:59, 22 June 2021
OsProject
OsProject | |
---|---|
edit | |
id | pymediawikidocker |
state | |
owner | WolfgangFahl |
title | Python controlled mediawiki docker image installation |
url | https://github.com/WolfgangFahl/pymediawikidocker |
version | 0.0.1 |
description | |
date | 2021-06-08 |
since | |
until |
Motivation
Official Mediawiki docker images are available for the different Mediawiki versions.
These images need additional infrastructure to create useable Mediawiki environments. The goal of this project is to semi-automatically create such environments and test the functionality. Python was choosen to as a development environment for the libraries that are needed and available to perform the tasks:
python on whales was chosen over:
Since it supports docker compose.
How it works
The core concept is a "MediawikiCluster" that is a set of docker applications that run MediaWiki instances with varying versions of MediaWiki and the underlying database.
Installation
via pip
pip install pymediawikidocker
# alternatively if your pip is not a python3 pip
pip3 install pymediawikidocker
upgrade
pip install pymediawikidocker -U
# alternatively if your pip is not a python3 pip
pip3 install pymediawikidocker -U
Usage
usage: mwcluster [-h] [-d] [-V] [-f]
mwcluster
Created by Wolfgang Fahl on 2021-06-21.
Copyright 2021 Wolfgang Fahl. All rights reserved.
Licensed under the Apache License 2.0
http://www.apache.org/licenses/LICENSE-2.0
Distributed on an "AS IS" basis without warranties
or conditions of any kind, either express or implied.
optional arguments:
-h, --help show this help message and exit
-d, --debug set debug level [default: False]
-V, --version show program's version number and exit
-f, --forceRebuild shall the applications rebuild be forced (with stop and remove of existing containers)