Source to Image (s2i)ΒΆ

Source to image is a RedHat supported tool to create docker images from source code. We provide builder images to allow you to easily wrap your data science models so they can be managed by seldon-core.

The general work flow is:

  1. Download and install s2i

  2. Choose the builder image that is most appropriate for your code and get usage instructions, for example:

    s2i usage seldonio/seldon-core-s2i-python3
    
  3. Create a source code repo in the form acceptable for the builder image and build your docker container from it. Below we show an example using our seldon-core git repo which has some template examples for python models.

    s2i build https://github.com/seldonio/seldon-core.git \
        --context-dir=wrappers/s2i/python/test/model-template-app seldonio/seldon-core-s2i-python \
        seldon-core-template-model
    

At present we have s2i builder images for