Open CSP on Canasta
This is very much a WIP
- Download this repo somewhere on your server.
- Download the Canasta CLI and Docker.
- Create a wiki using the Canasta CLI (i.e.
canasta create
). Keep note of where the resulting directory is located. cd
back to the instance of this repo on your server. Run the following:docker build -t opencsp-canasta:latest .
- In the
docker-compose.override.yml
, change theimage:
toopencsp-canasta:latest
. - Run
canasta start
. - Ensure the working directory is the one that the Canasta CLI created in step 3, then run
docker compose exec web bash /install-open-csp-canasta-runtime.sh /var/www/mediawiki/w
. - You're done! Now visit your Open CSP wiki.
Currently, a patch script is required immediately after a new Canasta container is launched.
Run sudo docker compose exec web /init-open-csp.sh
to finish initializing Open CSP.
- Run the patch script specified above. If that doesn't work, then:
- Restart the Canasta instance using
canasta restart
. - If that doesn't fix it, run
canasta maintenance
to run maintenance scripts to fix it. - If that doesn't fix it, try running:
sudo docker compose exec web php /var/www/mediawiki/w/extensions/SemanticMediaWiki/maintenance/rebuildElasticIndex.php
sudo docker compose exec web chown -R www-data /var/www/mediawiki/w/extensions/Widgets/ && chmod -R u+rwx /var/www/mediawiki/w/extensions/Widgets/compiled_templates/
- If that doesn't fix it, run this as a last resort:
sudo docker compose exec web php /var/www/mediawiki/w/extensions/SemanticMediaWiki/maintenance/rebuildData.php