-
Story
-
Resolution: Done
-
Major
-
None
-
Improvement
-
5
Description
The s2i build --as-dockerfile command doesn not read the builder image labels when generating the Dockerfile, especially the io.openshift.s2i.* ones and therefore generates incorrect Dockerfiles for example with wrong path to s2i scripts.
S2I build should inspect the builder image for S2I configs and use them for generating the Dockerfile
List of labels:
Refer to s2i docs
- https://github.com/openshift/source-to-image/blob/master/docs/builder_image.md
- https://docs.okd.io/latest/creating_images/s2i.html#s2i-scripts
Acceptance Criteria
- If s2i image has labels ( path to scripts, etc ), generated Dockerfile should consider that