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:
Choose the builder image that is most appropriate for your code and get usage instructions, for example:
s2i usage seldonio/seldon-core-s2i-python3
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-python3:1.15.0-dev \ seldon-core-template-model
At present we have s2i builder images for