Skip to content

Commit

Permalink
feat(app_api): Advanced Deploy Options
Browse files Browse the repository at this point in the history
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
  • Loading branch information
andrey18106 committed Jan 20, 2025
1 parent 9a4b4ed commit 1f2c50e
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 1 deletion.
38 changes: 38 additions & 0 deletions admin_manual/exapps_management/AdvancedDeployOptions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
=======================
Advanced Deploy Options
=======================

AppAPI allows optionally to configure environment variables and mounts for the ExApp container.

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:

.. image:: ./img/advanced_deploy_options_1.png

Or via CLI (:ref:`advanced_deploy_options_cli`).


Environment Variables
---------------------

Environment variables enable more precise configuration of the ExApp.
ExApp developers can define the list of supported environment variables with descriptions,
only these variables will be available for configuration.

By default there are only mounts available for configuration.

.. image:: ./img/advanced_deploy_options_2.png

.. image:: ./img/advanced_deploy_options_3.png

When ExApp installed the list of set environment variables will be displayed.

.. image:: ./img/advanced_deploy_options_installed_1.png


Mounts
------

Mounts can be used to provide additional data to the ExApp container from the host.
For example, it will be useful for some apps to provide a folder with SSL certs of your cloud,
so the app can handle HTTPS correctly without any additional re-installation of the ExApp.

13 changes: 12 additions & 1 deletion admin_manual/exapps_management/ManagingExApps.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ There are several commands to work with ExApps:
Register
--------

Command: ``app_api:app:register [--info-xml INFO-XML] [--json-info JSON-INFO] [--] <appid> <daemon-config-name>``
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>]``

The register command is the first ExApp installation step.

Expand All @@ -31,6 +31,17 @@ Options

* ``--json-info JSON-INFO`` *[optional]* - ExApp deploy JSON info (json string)
* ``--info-xml INFO-XML`` *[optional]* - path to info.xml file (url or local absolute path)
* ``--wait-finish`` *[optional]* - wait until initialization finished
* ``--silent`` *[optional]* - do not print to console
* ``--test-deploy-mode`` *[optional]* - test deploy mode with additional status checks and slightly different logic

.. _advanced_deploy_options_cli:

Advanced Deploy Options
***********************

* ``--env`` *[optional]* - environment (ENV_NAME=ENV_VALUE), passed to ExApp container as environment variables (multiple values allowed)
* ``--mount`` *[optional]* - mount options (SRC_PATH=DST_PATH), passed to ExApp container as volume mounts (multiple values allowed)


Unregister
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions admin_manual/exapps_management/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ ExApps management
ManagingDeployDaemons
TestDeploy
ManagingExApps
AdvancedDeployOptions

0 comments on commit 1f2c50e

Please sign in to comment.