Pymediawikidocker

From BITPlan Wiki
Revision as of 07:00, 22 June 2021 by Wf (talk | contribs)
Jump to navigation Jump to search

OsProject

OsProject
edit
id  pymediawikidocker
state  
owner  WolfgangFahl
title  Python controlled mediawiki docker image installation
url  https://github.com/WolfgangFahl/pymediawikidocker
version  0.0.7
description  
date  2021-06-22
since  
until  

Freitext

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)

Links