This is the development version for the new mwstake.org/wiki.
Software "Canasta CLI"
Jump to navigation
Jump to search
The command line interface for Software "Canasta".
|
In this context
|
This is the test carried out by MWStake
- Ubuntu 22.04 + Docker on VirtualBox
curl -fsL https://raw.githubusercontent.com/CanastaWiki/Canasta-CLI/installer/install.sh | bash
sudo canasta create -w "My Wiki" -n wiki.my.com -i mywiki -a admin -o docker-compose
UseCase: register an existing Canasta instance with the CLI
# /etc/canasta/conf.json { "Installations": { "myExistingCanastaInstance": { "Id": "myExistingCanastaInstance", "Path": "/home/canasta/myExistingCanastaInstance", "Orchestrator": "docker-compose" } } }
Issues
- Enter the admin password (Press Enter to autogenerate the password): where is this going to be shown to the user? Issue
- Better naming: Canasta installation directory (default "/home/lex") -> Directory under which individual canasta instance directories are placed (default "/home/lex") Issue
- When <code>create</code> is aborted for some reason, a subsequent run fails because the destination path exists Issue
Suggestions
- Add to
.env
:WG_DB_NAME=my_wiki
- Add to
docker-compose.override.yml:services.web.environment:
:MYSQL_PASSWORD=${MYSQL_PASSWORD}
WG_DB_NAME=${WG_DB_NAME}
- Add to
LocalSettings.php
:$wgServer = getenv('MW_SITE_SERVER');
$wgDBpassword = getenv('MYSQL_PASSWORD');
$wgDBname = getenv('WG_DB_NAME');