Deploys the web applications of an ECM system (ELO: ix, web, wf, as, AdminConsole, Flows: registry, flows, worker), builds their configuration and environment.
| Id | ecm-webapps |
|---|---|
| Role | deployment - needed for the page and the REST API (administrators always may) |
| Page | Plugins > Open (overlay with an X at the top right) or /plugins/ecm-webapps/ |
| REST | /api/plugins/ecm-webapps/… and, for callers with the role, /plugins/ecm-webapps/… |
In the administration open Plugins, select the row of this plug-in and press Open. The page opens in an overlay dialog: close it with the X at the top right, with Esc or by clicking outside; Open in a new tab next to the title shows it full size.
The page has these sections: Profile, 1. Source and components, 2. System, repositories and database, 3. Targets, 4. Environment, 5. Deploy.
| Label | Meaning |
|---|---|
| Server name (instances ELO-<name>-IX / -AS / -OCR) | |
| Base URL of the web applications | |
| Base folder (temp, data, logs) | |
| Locale | |
| Repositories (one per line: name[;database[;archive guid]] ; each gets ix-, web-, wf- and as-contexts) | |
| Database | |
| Server | |
| Port | |
| Oracle service name | |
| Database user | |
| Database password (not saved) | |
| Access manager database | |
| Service user | |
| Service user password (not saved) | |
| Configuration folder (built here: config\<context>\<instance>) | |
| Plug-in folder of the IndexServer (empty = prog\webapps\ix-plugins next to the configuration folder) | |
| Flows worker folder (Karaf) | |
| Salt of Flows / registry / worker (empty = keep or generate) | |
| Image | |
| Variable | |
| Value | |
| For component | |
| Component | Column of a table |
| Provided by | Column of a table |
| Found | Column of a table |
| Web application | Column of a table |
| webappconfigdir | Column of a table |
| Global | Column of a table |
Creates the web applications of an ECM system (ELO) in Vibecat, builds their configuration and environment, and deploys the Flows worker as a separate Karaf service. Access needs the role deployment (or admin).
Target the repository folder of the ELO serversetup2 (ix-*.zip, web-*.zip, wf-*.zip, ELOas-*.zip, AdminConsole-*.zip, release-bundle-*.zip with flows, registry, the worker assembly, the Flows components and plug-ins) - the newest version of each is used and its WAR is extracted to the data folder of the plug-in - or the prog\webapps folder (ix.war, web.war, wf.war, as.war, AdminConsole.war, flows.war, registry.war, ix-plugins).
Choose them one by one: ix, web, wf, as, AdminConsole, and the Flows compound (registry, flows, worker); the IndexServer plug-ins are copied to the folder you name (empty: prog\webapps\ix-plugins next to the configuration folder, for example C:\ELOenterprise\bauer\prog\webapps\ix-plugins for the configuration folder C:\ELOenterprise\bauer\config).
One line per repository (name[;database[;archive guid]]). Each gets the contexts ix-<name>, web-<name>, wf-<name> and as-<name>; AdminConsole, registry and flows exist once. Every context is a Vibecat web application /<context>.
Below the configuration folder the plug-in builds <context>\<instance>\ (instances ELO-<server>-IX, -AS, -OCR) with config.xml and logback.xml - for ix also flows-config.xml, direct-services-config.xml, ud-config.xml and the proxy plug-in properties; for the access manager am-eloam and for every repository dm-<name>; for flows application.cfg.xml, for the registry registry.cfg.xml, for the worker config\flows-worker\ELO-Flows-Worker-1. Passwords are ELO encrypted. The folder of an instance is set as the variable webappconfigdir of its web application. The salt shared by Flows, registry and worker is generated once (flows-salt.txt in the configuration folder) and reused. The database settings can be taken from the database deployment of the same profile.
The variables of the ELO Docker images (ELO Images administration guide) can be chosen from a list with their description, default and example (image, variable, value). A variable is set as a variable of the web applications of a component (or of all), or global as a system property of Vibecat (administration page Environment, System.setProperty). The list is docker-env.json in the plug-in; a file of the same name in the data folder of the plug-in replaces it.
The worker is an Apache Karaf of its own: the assembly of the release bundle is unpacked to the worker folder, the Flows components go to deploy, etc\org.apache.felix.fileinstall-<name>.cfg points it to its configuration. For Windows a WinSW description is written and installed on request; for Linux a systemd unit.
One profile file keeps the settings of the database deployment and of this plug-in under one name (passwords are never stored).
| Call | Purpose |
|---|---|
POST /plugins/ecm-webapps/plan | Reads the source; returns components, the web applications and their configuration folders, warnings |
POST /plugins/ecm-webapps/deploy | Builds the configuration and deploys; returns the job (GET /plugins/ecm-webapps/jobs/{id}?since=n) |
GET /plugins/ecm-webapps/docker-env | The variables of the ELO Docker images |
GET|PUT|DELETE /plugins/ecm-webapps/profiles/{name} | The profile (section of this plug-in) |
curl -u deployer:secret -X POST http://host:9090/plugins/ecm-webapps/deploy -H "Content-Type: application/json" -d '{
"source": "C:\\ELOenterprise\\prog\\serversetup2\\repository", "configDir": "C:\\ELOenterprise\\config",
"serverName": "berger", "baseUrl": "https://berger:9093", "repositories": "HR",
"provider": "sqlserver", "dbHost": "localhost", "dbUser": "elodb", "dbPassword": "...", "servicePassword": "...",
"workerTarget": "C:\\ELOenterprise\\servers\\ELO-Flows-Worker-1"}'