Bug 1656755
Summary: | build config support for custom Dockerfile path | ||||||
---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Aleksandar Kostadinov <akostadi> | ||||
Component: | Build | Assignee: | Ben Parees <bparees> | ||||
Status: | CLOSED NOTABUG | QA Contact: | wewang <wewang> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 4.1.0 | CC: | aos-bugs, lxia, nmoraiti, wewang, wzheng | ||||
Target Milestone: | --- | Keywords: | UserExperience | ||||
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: | 2018-12-06 14:35:26 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: | |||||||
Attachments: |
|
Description
Aleksandar Kostadinov
2018-12-06 09:26:18 UTC
You can actually specify the dockerfile_path in your build strategy [1], and keep the context_dir to "." Of course, you will have to have a `git_source` [2] to make the build to clone your repository. You don't need to specify `contextDir` and `Dockerfile` in your source. [1] https://docs.openshift.com/container-platform/3.4/dev_guide/builds/build_strategies.html#dockerfile-path [2] https://docs.openshift.com/container-platform/3.7/dev_guide/builds/build_inputs.html#source-code Thank you very much. I looked mainly at `source` element and didn't notice all the options under `dockerStrategy` element. It works like a charm. Also thinking about it I now make sense out of having these under different elements.
btw very useful is also
> imageOptimizationPolicy: SkipLayers
So this is not actually a bug.
|