MWStake MediaWiki Manager: Difference between revisions
Jump to navigation
Jump to search
Lex Sulzer (talk | contribs) (โโ) |
Lex Sulzer (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
</gallery> | </gallery> | ||
== Development == | |||
There are videos about MWStake MWM at [https://www.youtube.com/channel/UCoP-EgZJPhB0UE4WaKCHR1w dataspects' YouTube channel]. | |||
* [https://www.youtube.com/watch?v=MTYq2a2Xsls First glimpse at the idea of an MWStake MediaWiki Manager] | |||
ย | |||
=== Fundamentals === | |||
ย | |||
==== Target User Groups ==== | |||
ย | |||
===== UGCL: Users willing/able to use the command line ===== | |||
ย | |||
===== UGUI: Users NOT willing/able to use the command line ===== | |||
ย | |||
==== Use Cases ==== | |||
ย | |||
===== Install MW System Instance ===== | |||
ย | |||
===== Manage MW System Settings ===== | |||
ย | |||
# [https://github.com/dataspects/mediawiki-manager/blob/main/catalogues/systemSettings.json systemSettings.json] | |||
ย | |||
===== Manage MW Extensions (install/enable/disable/upgrade) ===== | |||
# [https://github.com/dataspects/mediawiki-manager/blob/main/catalogues/extensions.json extensions.json] | # [https://github.com/dataspects/mediawiki-manager/blob/main/catalogues/extensions.json extensions.json] | ||
====== MediaWiki Stakeholders Group Certified Extensions Service ======= | |||
* Some background: | |||
** [[Action:7]] | |||
** [[Talk:MWStake_incorporation/Board_meeting]] | |||
* Format right now: https://github.com/dataspects/mediawiki-manager/blob/main/catalogues/extensions.json | |||
* Management, roles, responsibilities, privileges, processes, QA? | |||
* Hosting? | |||
===== Upgrade MW ===== | |||
# [https://github.com/dataspects/mediawiki-manager/blob/main/catalogues/versions.json upgrades.json] | # [https://github.com/dataspects/mediawiki-manager/blob/main/catalogues/versions.json upgrades.json] | ||
=== | ===== Snapshots (backup/restore/clone) ===== | ||
==== | ===== Safe Mode ===== | ||
'''Idea''': if someone corrupts <code>extensions/</code> and/or <code>LocalSettings.php</code>, then <code>./start-SAFE-MODE.sh</code> restarts the wiki in safe mode, by falling back to container-internal versions of <code>extensions/</code> and <code>LocalSettings.php</code>. | '''Idea''': if someone corrupts <code>extensions/</code> and/or <code>LocalSettings.php</code>, then <code>./start-SAFE-MODE.sh</code> restarts the wiki in safe mode, by falling back to container-internal versions of <code>extensions/</code> and <code>LocalSettings.php</code>. | ||
Line 125: | Line 147: | ||
|} | |} | ||
=== | ===== Manage MW Content (inject/extract/facet/edit) ===== | ||
# [https://github.com/dataspects/mediawiki-manager/blob/main/catalogues/apps.json mediawiki-apps.json] | |||
==== | ==== Abstraction Layers ==== | ||
===== AL0: shell scripts using MWAPI and CRUDing files ===== | |||
https://github.com/dataspects/mediawiki-manager | |||
# [https://github.com/dataspects/mediawiki-manager/blob/main/docker-compose.yml docker-compose.yml] ([https://github.com/dataspects/dataspectsSystemBuilder/tree/master/docker-images/mediawiki MediaWiki Dockerfile]) | |||
ย | |||
ย | |||
ย | |||
ย | |||
==== | ===== AL1: MWM API (Go) wrapping AL0 ===== | ||
https://github.com/dataspects/mwmapi | |||
=== | ====== Unit Testing ====== | ||
===== AL2: MWM UI (React/Material UI) using AL1 ===== | |||
ย | |||
ย | |||
https://github.com/dataspects/mwmui | |||
====== Integration Testing ====== |
Revision as of 05:11, 12 March 2021
Manage (settings), upgrades, extensions, snapshots and content through an independent UI/API
Development
There are videos about MWStake MWM at dataspects' YouTube channel.
Fundamentals
Target User Groups
UGCL: Users willing/able to use the command line
UGUI: Users NOT willing/able to use the command line
Use Cases
Install MW System Instance
Manage MW System Settings
Manage MW Extensions (install/enable/disable/upgrade)
MediaWiki Stakeholders Group Certified Extensions Service =
- Some background:
- Format right now: https://github.com/dataspects/mediawiki-manager/blob/main/catalogues/extensions.json
- Management, roles, responsibilities, privileges, processes, QA?
- Hosting?
Upgrade MW
Snapshots (backup/restore/clone)
Safe Mode
Idea: if someone corrupts extensions/
and/or LocalSettings.php
, then ./start-SAFE-MODE.sh
restarts the wiki in safe mode, by falling back to container-internal versions of extensions/
and LocalSettings.php
.
MWM Normal Mode | MWM Safe Mode |
---|---|
https://github.com/dataspects/mediawiki-manager/blob/main/start.sh version: "3.7"
services:
mediawiki:
env_file:
- CanastaInstanceSettings.env
container_name: mediawiki_canasta
image: dataspects/mediawiki:1.35.0-2103040820
ports:
- 80:80
- 443:443
volumes:
# MediaWiki >>>
- ./mediawiki_root/w/LocalSettings.php:/var/www/html/w/LocalSettings.php
- ./mediawiki_root/w/extensions:/var/www/html/w/extensions
- ./mediawiki_root/w/skins:/var/www/html/w/skins
- ./mediawiki_root/w/vendor:/var/www/html/w/vendor
- ./mediawiki_root/w/images:/var/www/html/w/images
# MediaWiki Manager >>>
- ./mediawiki_root/api:/var/www/html/api
- ./mediawiki_root/dsmwm.log:/var/www/html/dsmwm.log
- ./mediawiki_root/restic_password:/var/www/html/restic_password
- ./mediawiki_root/ui:/var/www/html/ui
- ./mediawiki_root/cloneLocation:/var/www/html/cloneLocation
- ./restic_data:/var/www/html/restic-repo
- ./conf:/etc/apache2/sites-available
# https://phabricator.wikimedia.org/source/mediawiki/browse/master/docker-compose.yml
# https://phoenixnap.com/kb/how-to-share-data-between-docker-containers
# + mysql
# mwmapi:
# container_name: mwmapi
# image: dataspects/mwmapi:210303
mysql:
container_name: mysql_canasta
image: mariadb:10.5.5
volumes:
- ./mysql_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
|
https://github.com/dataspects/mediawiki-manager/blob/main/start-SAFE-MODE.sh version: "3.7"
services:
mediawiki:
env_file:
- CanastaInstanceSettings.env
container_name: mediawiki_canasta
image: dataspects/mediawiki:1.35.0-2103040820
ports:
- 80:80
- 443:443
volumes:
# MediaWiki >>>
#- ./mediawiki_root/w/LocalSettings.php:/var/www/html/w/LocalSettings.php
#- ./mediawiki_root/w/extensions:/var/www/html/w/extensions
#- ./mediawiki_root/w/skins:/var/www/html/w/skins
#- ./mediawiki_root/w/vendor:/var/www/html/w/vendor
- ./mediawiki_root/w/images:/var/www/html/w/images
# MediaWiki Manager >>>
- ./mediawiki_root/api:/var/www/html/api
- ./mediawiki_root/dsmwm.log:/var/www/html/dsmwm.log
- ./mediawiki_root/restic_password:/var/www/html/restic_password
- ./mediawiki_root/ui:/var/www/html/ui
- ./mediawiki_root/cloneLocation:/var/www/html/cloneLocation
- ./restic_data:/var/www/html/restic-repo
- ./conf:/etc/apache2/sites-available
# https://phabricator.wikimedia.org/source/mediawiki/browse/master/docker-compose.yml
# https://phoenixnap.com/kb/how-to-share-data-between-docker-containers
# + mysql
# mwmapi:
# container_name: mwmapi
# image: dataspects/mwmapi:210303
mysql:
container_name: mysql_canasta
image: mariadb:10.5.5
volumes:
- ./mysql_data:/var/lib/mysql
environment:
- MYSQL_ROOT_PASSWORD=${MARIADB_ROOT_PASSWORD}
|
Manage MW Content (inject/extract/facet/edit)
Abstraction Layers
AL0: shell scripts using MWAPI and CRUDing files
https://github.com/dataspects/mediawiki-manager
AL1: MWM API (Go) wrapping AL0
https://github.com/dataspects/mwmapi
Unit Testing
AL2: MWM UI (React/Material UI) using AL1
https://github.com/dataspects/mwmui