Bug 1415062
Summary: | post-commit with Shell script and args will print some irrelevant lines in build log on console terminal | ||
---|---|---|---|
Product: | OKD | Reporter: | XiaochuanWang <xiaocwan> |
Component: | Build | Assignee: | Corey Daley <cdaley> |
Status: | CLOSED NOTABUG | QA Contact: | Wang Haoran <haowang> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 3.x | CC: | aos-bugs, bparees, dyan, xiuwang |
Target Milestone: | --- | Keywords: | Reopened |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-02-06 14:34:52 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
XiaochuanWang
2017-01-20 06:44:12 UTC
According to a comment in the code (located here: https://github.com/openshift/origin/blob/master/pkg/build/builder/common.go#L124) "// The `-i` flag is needed to support CentOS and RHEL images // that use Software Collections (SCL), in order to have the // appropriate collections enabled in the shell. E.g., in the // Ruby image, this is necessary to make `ruby`, `bundle` and // other binaries available in the PATH." So, the first example that you showed that shows the extra lines of output is the equivalent of: docker run centos /bin/sh -ic echo "this is a test" /bin/sh hello And the second example that does NOT show the extra lines is the equivalent of: docker run centos echo hello If you run those commands on your workstation you will get the same lines output. Which seems to make this a docker issue that is possibly fixed in docker 1.2 from what I have read. Closing as not a bug. Moving to ON_QA so test cases (if applicable) can be updated. This is caused by an old existed docker issue: https://github.com/docker/docker/issues/18 'docker run centos /bin/sh -ic echo "this is a test" /bin/sh hello' will get the message 'docker run centos echo hello' will not get the message Case will be updated to use other image or ignore it for this scenario. So close it as not a bug. |