blob: df08605ac7d29bc75cdb08eddc70f54a430c2688 [file] [log] [blame]
Victor Morales6a919972017-09-28 18:29:54 -07001=======================
2Modify execution values
3=======================
4
Shashank Kumar Shankard52d0af2017-10-20 16:06:08 -07005In order to provide a flexible platform that adjusts to different developer
Manjeet Singh Bhatia1919b752018-02-08 19:04:00 +00006needs, there are two mechanisms to configure the execution of this project.
Victor Morales6a919972017-09-28 18:29:54 -07007
8Settings configuration file
9---------------------------
10
11The first mechanism refers to the process to replace default configuration
Manjeet Singh Bhatia1919b752018-02-08 19:04:00 +000012values in the settings configuration file. This file needs to be placed into
Victor Morales6a919972017-09-28 18:29:54 -070013the *./etc* folder and named *settings.yaml*. It must contain the key/pair
14configuration values that will be overriden.
15
16.. note::
17
18 There are sample files (e. g. settings.yaml.development and
19 settings.yaml.testing) placed into the *./etc* folder. Their purpose is to
20 provide a reference of different configurations.
21
22.. end
23
24Configuration values:
25
26+------------------+-------------------+---------------------------------------+
27| Key | Values | Description |
28+==================+===================+=======================================+
29| build_image | "True" or "False" | Determines if the Docker image is |
30| | | retrieved from public hub or built |
31| | | from source code. |
32+------------------+-------------------+---------------------------------------+
33| clone_repo | "True" or "False" | Determines if all the source code |
34| | | repositories of a given component are |
35| | | cloned locally. |
36+------------------+-------------------+---------------------------------------+
37| compile_repo | "True" or "False" | Determines if all the source code |
38| | | repositories of a given component are |
39| | | going to be compiled. |
40+------------------+-------------------+---------------------------------------+
41| enable_oparent | "True" or "False" | Determines if the OParent project |
42| | | will be used during the maven |
43| | | compilation. |
44+------------------+-------------------+---------------------------------------+
45| skip_get_images | "True" or "False" | Determines if the process to build or |
46| | | retrieve docker images of a given |
47| | | component are going to skipped. |
48+------------------+-------------------+---------------------------------------+
49| skip_install | "True" or "False" | Determines if the process to start |
50| | | the services of a given component |
51| | | will be started. |
52+------------------+-------------------+---------------------------------------+
53
54Parameters
55----------
56
57The **skip_get_images** and **skip_install** are the only two configuration
58values that can be overriden using *-g* and *-i* respectively by the run scripts
59(*./tools/run.sh* and *.\\tools\\Run.ps1*).
60
61.. note::
62
63 The script parameters take precendence of the configuration file.
64
65.. end
66
67.. code-block:: console
68
69 $ ./tools/run.sh sdc -g
70
71.. end
72