This concerns e.g. the NUM_SERVICES_OPENSOURCE and NUM_SERVICES_ENTERPRISE variables, which rely on the number of services present in a given test infrastructure. The service count should be deducted based on the used compose files, parsing the yml files, retrieving the services of each file, collecting them in a set/ deduplicating them/ ... and using the number of the collected services to determine the values present in the variables mentioned before.
The information about the correct set of compose files that needs to be parsed can be determined based on the output of any container running in the environment, by inspecting the com.docker.compose.project.config_files label of the container:
- once done fixed container count variables are no longer required in both the integration repo and in the mender-docs repo