Source-to-Image S2I
什么是Source-to-Image (S2I)
Source-to-Image (S2I) 是一个框架和工具,使您可以编写使用应用程序source code 作为输入的 images,并生成一个new image,该image将已组装的应用程序作为输出运行。 使用S2I工具生成可复制的container images的主要优点是开发人员易于使用
GitHub S2I
https://github.com/openshift/source-to-image
本机快速配置S2I
下载latest release
Want to try it right now? Download the latest release and run:
配置环境变量
vi /etc/profile
export s2i_HOME=/Users/honglei/dev/openshift/source-to-image-v1.3.0
path中再配置下
最后生效:source /etc/profile
如下图:
验证s2i
☁ / s2i version
s2i v1.3.0