openshift-examples icon indicating copy to clipboard operation
openshift-examples copied to clipboard

openshift build process vs k8s build

Open debianmaster opened this issue 8 years ago • 0 comments

what happens in openshift

the s2i build flow is:

1) build pod launches, mounts the docker socket  
2) build pod clones your source  
3) build pod uses the docker socket to spawn a non-privileged container running your builder image (e.g. s2i-ruby)  
4) build pod streams your source code into that non-privileged container  
5) non-privileged container invokes your assemble script (consuming the source code) - this is the only place user logic runs  
6) build pod uses the docker socket to commit your container when it completes  
7) build pod uses the docker socket to push your new image to the registry   

debianmaster avatar Nov 13 '17 21:11 debianmaster