Bug 1821861
Summary: | [4.3] Build incorrectly substitutes "=" for spaces in Dockerfiles | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Adam Kaplan <adam.kaplan> |
Component: | Build | Assignee: | Adam Kaplan <adam.kaplan> |
Status: | CLOSED ERRATA | QA Contact: | wewang <wewang> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 4.2.z | CC: | aos-bugs, nalin, wewang, wzheng |
Target Milestone: | --- | ||
Target Release: | 4.3.z | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: Before starting a build, the OpenShift builder would parse the supplied Dockerfile and reconstruct a modified version of it to use for the build, to add labels and handle substitutions of the images named in FROM instructions. The generated Dockerfile did not always correctly reconstruct ENV and LABEL instructions.
Consequence:
The generated Dockerfile would sometimes include "=" characters where the original did not, and the build would fail with a syntax error.
Fix:
When generating the modified Dockerfile, the original text for ENV and LABEL instructions is now used verbatim.
Result:
The build process should no longer introduce syntax errors in ENV and LABEL instructions.
|
Story Points: | --- |
Clone Of: | 1821860 | Environment: | |
Last Closed: | 2020-05-11 21:20:39 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1821860 | ||
Bug Blocks: |
Description
Adam Kaplan
2020-04-07 18:18:08 UTC
Pr just merged 3 hours ago, wait latest payload include the pr. Verified in version: 4.3.0-0.nightly-2020-04-25-134334 Logs: STEP 16: ENV MIN_HEAP 256m c0b2b8a3fd6524bc2f9451f554f797c69f3d472a404eb5fec1effdf2ee7d573f STEP 17: ENV JAVA_OPTS -server -Djava.net.preferIPv4Stack=true 3c5f1c0bb801e81e553bdac88c56c38f2b7228aa851c1df01554b3fb4e540379 STEP 18: ENV LAUNCHER_CONF ./conf/jetty.xml ./conf/jetty-requestlog.xml 8008f5de2e2af67ce0bf7caf68394e4bacd2cf46a58abd91e2f4405ca87a3371 STEP 19: CMD java -Dnexus-work=${SONATYPE_WORK} -Dnexus-webapp-context-path=${CONTEXT_PATH} -Xms${MIN_HEAP} -Xmx${MAX_HEAP} -cp 'conf/:lib/*' ${JAVA_OPTS} org.sonatype.nexus.bootstrap.Launcher ${LAUNCHER_CONF} 43d66d77f448137b8c12699192fb63bcb4e013082a4956cd3b16317a42f03ce8 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2006 |