fastiot.cli.model.docker_template module¶
- pydantic model fastiot.cli.model.docker_template.DockerTemplate[source]¶
Docker template base class. Inherit from this class to define dockerfile templates. Via python’s __subclasses__ mechanism they get imported and can be used in the service’s manifest.
-
field name:
str
[Required]¶ The template name used for referencing
-
field dir:
str
[Required]¶ The template dir where this template is located
-
field filename:
str
= 'Dockerfile.j2'¶ The filename of the template. Must reference a file inside template dir.
- class property all: Dict[str, DockerTemplate]¶
Method to get a dict of all available services as instantiated
fastiot.cli.model.infrastructure_service.InfrastructureService
.To append own services you simply have to inherit from this class and put them into your project. Then import those parts using
fastiot.cli.model.project.ProjectContext.extensions
. This method will try to import anything from there and for services.
-
field name: