This is the development version for the new mwstake.org/wiki.

Software "Canasta CLI"

From mwstakeorgdev
Jump to navigation Jump to search
The command line interface for Software "Canasta".
In this context

This is the test carried out by MWStake

  1. Ubuntu 22.04 + Docker on VirtualBox
  2. curl -fsL https://raw.githubusercontent.com/CanastaWiki/Canasta-CLI/installer/install.sh | bash
  3. 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

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');