Skip to content

NocService base class.


Bases: NocService

Noc service with healthcheck.


Bases: BaseService

Basic class for all NOC's services.

get_compose_command(config, svc)

Get command section.

get_compose_environment(config, svc)

Get environment section.

get_compose_image(config, svc)

Get image name.

Use tag from service's config, if any. Otherwise use tag from global config.

get_compose_volumes(config, svc)

Get volumes section.

Mount repo and custom when necessary.

prepare_compose_config(config, svc, services)

Render configuration files.

NB: As the NocServices is the base class for a bunch of services, ensure, the configuration files are rendered only once.