Bug 1730446
Summary: | Imagebuilder - Copying files in between stages is unexpectedly failing | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Rogerio Bastos <rogbas> |
Component: | docker | Assignee: | Nalin Dahyabhai <nalin> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | atomic-bugs <atomic-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.7 | CC: | ajia, amurdaca, aos-bugs, bparees, dornelas, dwalsh, gmontero, jnovy, jokerman, lsm5, mmccomas, nalin, sgarciam, tsweeney, yselkowi |
Target Milestone: | rc | Keywords: | Extras |
Target Release: | 7.8 | ||
Hardware: | All | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-06-10 09:32:29 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1186913 |
Description
Rogerio Bastos
2019-07-16 18:08:20 UTC
Note that the following dockerfile does work: FROM openshift/origin-cli:v3.11 AS builder RUN cp /bin/oc / # Multistage with python FROM python:2.7.15 AS runner # Bring oc binary to python image COPY --from=builder /oc /bin/ So copying the file into a new layer in the stage 0 image, makes it available to COPY --from in stage 1. The main implication of this is it breaks ocp 3.11 multistage builds (which rely on imagebuilder under the covers). this can be reproduced using the imagebuilder CLI tool. I take it that this is not an issue with Buildah running the build but with the Docker.sock since this is openshift 3.11? So not sure why this is assigned to Nalin? It's not a buildah issue, it is an imagebuilder issue (it occurs both when running imagebuilder on the cli, as well as in OCP3.11 when builds use imagebuilder to build multistage dockerfiles). Since the containers team owns imagebuilder(right?), it was assigned to that component... not sure who within the team is the right assignee. Ok, We can leave it with Nalin for now, but I will add Tom as well. I mistakenly linked this bug to the PR against the master branch, and not the 3.11 branch. Moving back to assigned for the final PR to get this into origin's 3.11 branch. Nalin's PR (https://github.com/openshift/origin/pull/23562) was closed in December of 2019. Nalin/Jindrich can we close this now? I don't believe there's any further packaging needs for this at this time. Assuming this is now part of openshift/origin and no longer an issue. If it is, please reopen. The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |