Skip to content

Commit bf9d75b

Browse files
authored
feat(app_api): Advanced Deploy Options (#12517)
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
1 parent dcc1211 commit bf9d75b

6 files changed

Lines changed: 48 additions & 1 deletion

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
=======================
2+
Advanced Deploy Options
3+
=======================
4+
5+
AppAPI allows optionally to configure environment variables and mounts for the ExApp container.
6+
7+
It is available via "Deploy options" modal next to "Deploy and Enable" button in the sidebar of the ExApp page on the Apps management page:
8+
9+
.. image:: ./img/advanced_deploy_options_1.png
10+
11+
Or via CLI (:ref:`advanced_deploy_options_cli`).
12+
13+
14+
Environment Variables
15+
---------------------
16+
17+
Environment variables enable more precise configuration of the ExApp.
18+
ExApp developers can define the list of supported environment variables with descriptions,
19+
only these variables will be available for configuration.
20+
21+
By default there are only mounts available for configuration.
22+
23+
.. image:: ./img/advanced_deploy_options_2.png
24+
25+
When ExApp installed the list of set environment variables will be displayed.
26+
27+
28+
Mounts
29+
------
30+
31+
Mounts can be used to provide additional data to the ExApp container from the host.
32+
For example, it will be useful for some apps to provide a folder with SSL certs of your cloud,
33+
so the app can handle HTTPS correctly without any additional re-installation of the ExApp.
34+
35+
.. image:: ./img/advanced_deploy_options_3.png

β€Žadmin_manual/exapps_management/ManagingExApps.rstβ€Ž

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ There are several commands to work with ExApps:
1616
Register
1717
--------
1818

19-
Command: ``app_api:app:register [--info-xml INFO-XML] [--json-info JSON-INFO] [--] <appid> <daemon-config-name>``
19+
Command: ``app_api:app:register [--force-scopes] [--info-xml INFO-XML] [--json-info JSON-INFO] [--wait-finish] [--silent] [--test-deploy-mode] [--env [ENV]] [--mount [MOUNT]] [--] <appid> [<daemon-config-name>]``
2020

2121
The register command is the first ExApp installation step.
2222

@@ -31,6 +31,17 @@ Options
3131

3232
* ``--json-info JSON-INFO`` *[optional]* - ExApp deploy JSON info (json string)
3333
* ``--info-xml INFO-XML`` *[optional]* - path to info.xml file (url or local absolute path)
34+
* ``--wait-finish`` *[optional]* - wait until initialization finished
35+
* ``--silent`` *[optional]* - do not print to console
36+
* ``--test-deploy-mode`` *[optional]* - test deploy mode with additional status checks and slightly different logic
37+
38+
.. _advanced_deploy_options_cli:
39+
40+
Advanced Deploy Options
41+
***********************
42+
43+
* ``--env`` *[optional]* - environment (ENV_NAME=ENV_VALUE), passed to ExApp container as environment variables (multiple values allowed)
44+
* ``--mount`` *[optional]* - mount options (SRC_PATH=DST_PATH), passed to ExApp container as volume mounts (multiple values allowed)
3445

3546

3647
Unregister
13.9 KB
Loading
78.5 KB
Loading
63.5 KB
Loading

β€Žadmin_manual/exapps_management/index.rstβ€Ž

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ ExApps management
1010
ManagingDeployDaemons
1111
TestDeploy
1212
ManagingExApps
13+
AdvancedDeployOptions

0 commit comments

Comments
Β (0)