[xwiki-devs] Is there any way to automate extension installation?
I have xwiki enterprise with Postgres as db backend. Right now I'm using the following: 1. Download http://download.forge.ow2.org/xwiki/xwiki-enterprise-web-7.4.1.war unzip it and put it under Jetty. 2. Change config files to use Postgres. 3. Download http://download.forge.ow2.org/xwiki/xwiki-enterprise-ui-mainwiki-all-7.4.1.x... 4. Run xwiki 5. Import xwiki-enterprise-ui-mainwiki-all-7.4.1.xar via UI. I wonder if it's possible to make step 5 (import xar file) via API (don't use UI for it). I would like to simplify xwiki deployment. What I've already done: I automated spaces/pages creation via REST API. I think there should be some way to automate extension installation. I've found XFF REST API http://extensions.xwiki.org/xwiki/bin/view/Extension/XFF+REST+API . Is it possible to use it to install xar files with extensions? Maybe there are other ways? I would appreciate any help. Thanks in advance! -- View this message in context: http://xwiki.475771.n2.nabble.com/Is-there-any-way-to-automate-extension-ins... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Hi,
On 17 Mar 2016, at 09:00, abtv <[email protected]> wrote:
I have xwiki enterprise with Postgres as db backend. Right now I'm using the following: 1. Download http://download.forge.ow2.org/xwiki/xwiki-enterprise-web-7.4.1.war unzip it and put it under Jetty. 2. Change config files to use Postgres. 3. Download http://download.forge.ow2.org/xwiki/xwiki-enterprise-ui-mainwiki-all-7.4.1.x... 4. Run xwiki 5. Import xwiki-enterprise-ui-mainwiki-all-7.4.1.xar via UI.
Step 3 and 5 should be removed. XWiki will pop up the Distribution Wizard to perform to install the UI, see http://platform.xwiki.org/xwiki/bin/view/Features/DistributionWizard May I ask you where you found the instructions to import the XAR file? (I’d like to fix it if it’s in our instructions somewhere)?
I wonder if it's possible to make step 5 (import xar file) via API (don't use UI for it). I would like to simplify xwiki deployment.
Right now no. See http://stackoverflow.com/questions/36029418/is-there-any-api-to-automate-ext...
What I've already done: I automated spaces/pages creation via REST API. I think there should be some way to automate extension installation. I've found XFF REST API http://extensions.xwiki.org/xwiki/bin/view/Extension/XFF+REST+API . Is it possible to use it to install xar files with extensions? Maybe there are other ways?
I would appreciate any help. Thanks in advance!
Are you the person who asked on SO? :) Thanks -Vincent
Thanks. Yes, I asked the question on SO :) I didn't expect that someone answer so quick. Regarding xar file: it was old downloads page and there were 2 options: use manager or download file and install it from disk. -- View this message in context: http://xwiki.475771.n2.nabble.com/Is-there-any-way-to-automate-extension-ins... Sent from the XWiki- Dev mailing list archive at Nabble.com.
Where is the right place to continue this discussion: here or SO? I posted on SO in comments section questions about building and using Script Service. -- View this message in context: http://xwiki.475771.n2.nabble.com/Is-there-any-way-to-automate-extension-ins... Sent from the XWiki- Dev mailing list archive at Nabble.com.
On 17 Mar 2016, at 11:08, abtv <[email protected]> wrote:
Where is the right place to continue this discussion: here or SO? I posted on SO in comments section questions about building and using Script Service.
It’s up to you but you’ll get better and faster answers here. This is the official support channel. Thanks -Vincent
participants (2)
-
abtv -
Vincent Massol