Ebonite BuildΒΆ

Build module is responsible for building and running images. For now, ebonite supports only docker images, but it is possible to implement some classes to add support for other types of things that can be built.

Here are build abstractions:

  • ProviderBase - provides files for the image. Builtin implementations: MLModelProvider which generates files from Model object. Also there is MLModelMultiProvider if you want multiple models in one image.
  • BuilderBase - builds images from files generated by ProviderBase. Builtin implementation: DockerBuilder builds docker images.
  • RunnerBase - runs images. Builtin implementation: DockerRunner - runs docker images locally or on remote server.

Also, these helper functions are available:

  • run_docker_img() - runs docker image.