Setup S2I
Installation
See also the [source-to-image README](https://github.com/openshift/source-to-image) on Github.
Install using Homebrew:
$ brew install source-to-image
Install from source code:
Download the [latest release](https://github.com/openshift/source-to-image/releases/latest),
Unzip the release for your platform, e.g.
source-to-image-v1.1.14-874754de-darwin-amd64.tar.gz
and move the executable to the application directory,
$ cd source-to-image-v1.1.14-874754de-darwin-amd64
$ mkdir /usr/local/share/s2i
$ cp * /usr/local/share/s2i
Add the s2i directory to the path,
$ vi ~/.bash_profile
export S2I_HOME=/usr/local/share/s2i
export PATH=$S2I_HOME:$PATH
:wq
Restart the terminal to reload the ~/.bash_profile
$ s2i version
s2i v1.1.14
Try it,
$ mkdir -p ~/dev/src/projects/s2i-tests
$ cd ~/dev/src/projects/s2i-tests
$ s2i build https://github.com/sclorg/django-ex centos/python-35-centos7 hello-python
$ docker run -p 8080:8080 hello-python
$ open http://localhost:8080
Last updated
Was this helpful?