| Summary: | unable to create php build in openshift 3.3 | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Jaspreet Kaur <jkaur> |
| Component: | ImageStreams | Assignee: | Ben Parees <bparees> |
| Status: | CLOSED NOTABUG | QA Contact: | Wang Haoran <haowang> |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 3.3.0 | CC: | aos-bugs, jkaur, jokerman, mmccomas |
| Target Milestone: | --- | ||
| 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: | 2016-11-07 15:10:21 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: | |
|
Description
Jaspreet Kaur
2016-11-03 06:53:01 UTC
Can we see the full buildconfig yaml? relevant actions the php builder takes: https://github.com/sclorg/s2i-php-container/blob/master/5.6/s2i/bin/assemble#L29 https://github.com/sclorg/s2i-base-container/blob/master/bin/fix-permissions Guessing the issue here is that the buildconfig is defining secrets to be copied into the assemble container and the path being specified is part of the source. The fix would be to fix the buildconfig to place the secrets somewhere else. It's not clear *why* you are injecting the gitlab secrets into the buildconfig (using sourceSecret for cloning makes sense, but why are you also injecting the secrets into the assembly process via the secret field?), since you are not providing a custom assemble script that will use them for anything, right? If there is a reason you need them there, i suggest you provide a DestinationDir for the secrets so they are not injected into the source directory that is being operated on by the assemble script, to avoid the issue you're hitting. Or you can provide a custom assemble script that doesn't run the fix-permission script. The purpose of the fix-permission script is to ensure the files are world-writable in the resulting application image, so you can rsh in and edit the source code at runtime for debugging/hot deployment purposes. After removing the secrets from assembly process the issue is resolved. |