indigo-dc / jenkins-pipeline-library

Jenkins pipeline library with common functionalities for CI/CD environments, mainly targeted for the implementation of the SQA baseline requirements from https://indigo-dc.github.io/sqa-baseline/
Apache License 2.0
11 stars 6 forks source link

DockerCompose lazy loading services #121

Open samuelbernardolip opened 3 years ago

samuelbernardolip commented 3 years ago

The stage Environment Setup runs the command docker-compose up. This is the stage where necessary containers are deployed, so would be possible to execute the commands for the criteria defined in config.yml. To simplify the config.yml syntax, docker-compose up always run for all defined services. Current code already support the load of a docker-compose specific service but that is not available in JePL schema yet. I will review this feature availability, since this will require that docker-compose up runs for each stage (in context of each criterion), which needs a new property to define the service list that should be started. I also need to review the best way to implement this, so we can keep the current approach.

Also we could add new properties to config.yml so, in case of lazy compose-up by stage, we can define those options (force rebuild and recreate as in issue #122) as an additional feature.