Go to file
2024-11-29 06:06:26 +00:00
.drone.yml init 2024-10-17 23:20:39 +09:00
.env.sample hardcode db_user rather than using a secret 2024-11-19 12:56:40 -08:00
.gitignore init 2024-10-17 23:20:39 +09:00
abra.sh config volume 2024-11-28 12:11:58 -08:00
compose.yml config volume 2024-11-28 12:11:58 -08:00
README.md config volume 2024-11-28 12:11:58 -08:00

xwiki

One line description of the recipe

  • Category: Apps
  • Status: 0
  • Image: xwiki, 4, upstream
  • Healthcheck: No
  • Backups: No
  • Email: No
  • Tests: No
  • SSO: No

Quick start

  • abra app new xwiki --secrets
  • abra app config <app-name>
  • abra app deploy <app-name>

Warning: trying to access before db instance finishes initialization results in failure to initialize the xwiki instance, recommended to wait for about 5 minutes (that is plenty of time) before accessing the app from your browser.

How to edit configs

Method 1: You can mount the volume xwiki_cfg in rw mode, navigate to the files, and make the edits.

Method2: You can also use abra app cmd, here is an example:

$ abra app cmd -l <app-name> edit_config
Which config file do you wish to edit?

/usr/local/tomcat/webapps/ROOT/WEB-INF/xwiki.cfg
/usr/local/tomcat/webapps/ROOT/WEB-INF/xwiki.properties
/usr/local/tomcat/webapps/ROOT/WEB-INF/hibernate.cfg.xml
/usr/local/tomcat/webapps/ROOT/WEB-INF/classes/logback.xml
/usr/local/tomcat/webapps/ROOT/WEB-INF/web.xml
Enter file name (without the path)
web.xml
Enter file path (including the file name)
/usr/local/tomcat/webapps/ROOT/WEB-INF/web.xml
Pulling web.xml from the app

web.xml is temporarily available

edit the file, save and exit, then press enter to continue


Moving the edited file to the app

deleting the local copy

Done!

TODO: on macos, the associative arrays won't work (declare -A throws an error)

You can use a brew version of bash to make it work, but abra currently defaults to /bin/bash

To simplify the interactive script above, we would first need abra to allow us to choose the shell path.

For more, see docs.coopcloud.tech.