Bug 1813387
| Summary: | Since 4.3, ADD command in Dockerfile builds does not accept URLs | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Deven Phillips <deven.phillips> |
| Component: | Containers | Assignee: | Jindrich Novy <jnovy> |
| Status: | CLOSED ERRATA | QA Contact: | weiwei jiang <wjiang> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.3.0 | CC: | aos-bugs, dwalsh, jnovy, jokerman, mpatel, nagrawal, nalin, tsweeney |
| Target Milestone: | --- | ||
| Target Release: | 4.5.0 | ||
| Hardware: | x86_64 | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-07-13 17:20:05 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
Deven Phillips
2020-03-13 16:35:47 UTC
This was fixed in Buildah with https://github.com/containers/buildah/pull/2019 which was included in Buildah v1.12.0. I need to figure out when that landed in which version of OCP. Move to verified. $ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.5.0-0.nightly-2020-05-14-231228 True False 4h17m Cluster version is 4.5.0-0.nightly-2020-05-14-231228 $ oc new-build -D $'FROM busybox ADD https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm google-chrome-stable_current_x86_64.rpm' --to=default/add-url --> Found container image 78096d0 (34 hours old) from Docker Hub for "busybox" * An image stream tag will be created as "busybox:latest" that will track the source image * A Docker build using a predefined Dockerfile will be created * The resulting image will be pushed to image stream tag "add-url:latest" * Every time "busybox:latest" changes a new build will be triggered --> Creating resources with label build=add-url ... imagestream.image.openshift.io "busybox" created imagestream.image.openshift.io "add-url" created buildconfig.build.openshift.io "add-url" created --> Success $ oc logs bc/add-url Replaced Dockerfile FROM image busybox Caching blobs under "/var/cache/blobs". Pulling image busybox@sha256:a7766145a775d39e53a713c75b6fd6d318740e70327aaa3ed5d09e0ef33fc3df ... Getting image source signatures Copying blob sha256:d9cbbca60e5f0fc028b13c01e70e96cc2eefe7858ccc5a33c9a8faa8b03286aa Copying config sha256:78096d0a54788961ca68393e5f8038704b97d8af374249dc5c8faec1b8045e42 Writing manifest to image destination Storing signatures STEP 1: FROM busybox@sha256:a7766145a775d39e53a713c75b6fd6d318740e70327aaa3ed5d09e0ef33fc3df STEP 2: ADD https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm google-chrome-stable_current_x86_64.rpm time="2020-05-15T07:05:36Z" level=info msg="Image operating system mismatch: image uses \"\", expecting \"linux\"" time="2020-05-15T07:05:36Z" level=info msg="Image architecture mismatch: image uses \"\", expecting \"amd64\"" --> c84e36978fa STEP 3: ENV "OPENSHIFT_BUILD_NAME"="add-url-1" "OPENSHIFT_BUILD_NAMESPACE"="default" time="2020-05-15T07:05:38Z" level=info msg="Image operating system mismatch: image uses \"\", expecting \"linux\"" time="2020-05-15T07:05:38Z" level=info msg="Image architecture mismatch: image uses \"\", expecting \"amd64\"" --> 9142d31fa32 STEP 4: LABEL "io.openshift.build.name"="add-url-1" "io.openshift.build.namespace"="default" STEP 5: COMMIT temp.builder.openshift.io/default/add-url-1:d668ee9a time="2020-05-15T07:05:38Z" level=info msg="Image operating system mismatch: image uses \"\", expecting \"linux\"" time="2020-05-15T07:05:38Z" level=info msg="Image architecture mismatch: image uses \"\", expecting \"amd64\"" --> d4a906ed6dd d4a906ed6dd6f2abc8e4323ec593ec3f80b62cedb90a8c046aa386746f06796e Pushing image image-registry.openshift-image-registry.svc:5000/default/add-url:latest ... Getting image source signatures Copying blob sha256:ef0ee2b25977a99bf396275c261f86c49b73e7ba5629f380550e492112fdca6d Copying blob sha256:d9cbbca60e5f0fc028b13c01e70e96cc2eefe7858ccc5a33c9a8faa8b03286aa Copying config sha256:d4a906ed6dd6f2abc8e4323ec593ec3f80b62cedb90a8c046aa386746f06796e Writing manifest to image destination Storing signatures Successfully pushed image-registry.openshift-image-registry.svc:5000/default/add-url@sha256:278e8445c2ff12bd8cce78d5324a93edfb9e0b0bb304f94dfef85b4b8e644146 Push successful 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:2409 |