Bug 1813258 - Copy operation is very slow during a build from dockerfile with buildah-1.9.0-2.el7.x86_64 and buildah-1.11.6-8.el7_8.x86_64
Summary: Copy operation is very slow during a build from dockerfile with buildah-1.9.0...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Containers
Version: 4.3.z
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.6.0
Assignee: Nalin Dahyabhai
QA Contact: Weinan Liu
URL:
Whiteboard:
: 1813260 1813264 (view as bug list)
Depends On:
Blocks: 1186913
TreeView+ depends on / blocked
 
Reported: 2020-03-13 11:57 UTC by Vedanti Jaypurkar
Modified: 2023-12-15 17:30 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: the logic that handled COPY or ADD instructions for copying content from the build context did not efficiently filter what they were copying when a .dockerignore file was present. Consequence: COPY and ADD would be noticeably slowed by the cumulative overhead of evaluating whether each item in the source location should be copied to the destination. Fix: that logic was rewritten. Result: The presence of a .dockerignore file should no longer noticeably slow down the speed at which ADD and COPY instructions are handled during a build.
Clone Of:
Environment:
Last Closed: 2020-10-27 15:57:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift builder pull 172 0 None closed Bug 1833328: bump buildah to v1.16.0 2021-02-09 08:18:38 UTC
Red Hat Bugzilla 1790525 0 urgent CLOSED OCP 4.3 Copying directory in DockerFile BuildConfig raise from 1 second to 10 minutes. 2021-02-22 00:41:40 UTC
Red Hat Knowledge Base (Solution) 5565271 0 None None None 2020-11-09 21:49:45 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 15:57:14 UTC

Comment 2 Adam Kaplan 2020-03-13 15:23:01 UTC
*** Bug 1813264 has been marked as a duplicate of this bug. ***

Comment 3 Adam Kaplan 2020-03-13 15:24:24 UTC
*** Bug 1813260 has been marked as a duplicate of this bug. ***

Comment 9 Tom Sweeney 2020-03-20 19:01:40 UTC
Probable Duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1699129

Comment 21 Nalin Dahyabhai 2020-06-18 17:56:38 UTC
We've made more progress, and the newer implementation is showing to be an improvement, but it won't be ready to be merged during the current sprint.

Comment 23 Nalin Dahyabhai 2020-07-30 21:58:27 UTC
The newer implementation is still under development, but portions of that work have been merged into the library where that logic lives.  Once it's all merged and the tests look good there, we can pull in the updated version, but I don't expect that all to be finished during this sprint.

Comment 24 Nalin Dahyabhai 2020-08-21 17:00:16 UTC
The last large piece is now up for review for inclusion in the library that we use.  Once it's merged, we'll be able to tag a release there and then pull it into the builder image.

Comment 25 Nalin Dahyabhai 2020-09-08 15:27:01 UTC
Opened https://github.com/openshift/builder/pull/172 for merging the changes.

Comment 30 errata-xmlrpc 2020-10-27 15:57:11 UTC
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 (OpenShift Container Platform 4.6 GA Images), 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:4196


Note You need to log in before you can comment on or make changes to this bug.