Skip to content
A simple S2I example to generate a docker image from a Python source
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

S2I example usage with a Python sample app

S2I, Source-To-Image, is a toolkit for building Docker images with minimum effort. You can use S2I to generate a docker image including your code changes.

Clone this repo locally

git clone

Create an OepnShift application

oc new-app . --name=mypythonapp

Create a S2I build-hook

oc set build-hook bc/mypythonapp --post-commit --script="py.test"


Forked project. Copyright (c) 2018 Stavros Kalapothas (aka Stevaras) It is free software, and may be redistributed under the terms of the GNU Licence.

You can’t perform that action at this time.