René's URL Explorer Experiment


Title: Build context scan feels slow when directory contains large file tree · Issue #1409 · docker-java/docker-java · GitHub

Open Graph Title: Build context scan feels slow when directory contains large file tree · Issue #1409 · docker-java/docker-java

X Title: Build context scan feels slow when directory contains large file tree · Issue #1409 · docker-java/docker-java

Description: Environment: IntelliJ IDEA 2020.2 EAP Build #IU-202.5103.13 with bundled Docker plugin 202.5103.13. Docker plugin must use docker-java, connection to Docker Desktop for Windows via npipe. Cannot find out the exact version of docker-java ...

Open Graph Description: Environment: IntelliJ IDEA 2020.2 EAP Build #IU-202.5103.13 with bundled Docker plugin 202.5103.13. Docker plugin must use docker-java, connection to Docker Desktop for Windows via npipe. Cannot fi...

X Description: Environment: IntelliJ IDEA 2020.2 EAP Build #IU-202.5103.13 with bundled Docker plugin 202.5103.13. Docker plugin must use docker-java, connection to Docker Desktop for Windows via npipe. Cannot fi...

Opengraph URL: https://github.com/docker-java/docker-java/issues/1409

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Build context scan feels slow when directory contains large file tree","articleBody":"Environment: IntelliJ IDEA 2020.2 EAP Build #IU-202.5103.13 with bundled Docker plugin 202.5103.13. Docker plugin must use docker-java, connection to Docker Desktop for Windows via npipe. Cannot find out the exact version of docker-java that is used.\r\n\r\nGiven the following minimal project setup:\r\n`node_modules` with +67k files\r\n`Dockerfile` with single line `FROM hello-world` \r\n`.dockerignore` with single line `node_modules`\r\n\r\nThen, run `docker build .` in the root directory.\r\n\r\nExpected behaviour: The image is built instantly, because build context contains only the Dockerfile (large node_modules directory is ignored), and there are almost no instructions in the Dockerfile itself.\r\n\r\nObserved behaviour: For +30 seconds, the screen shows \"Building image...\" , and after that only one file is added to the build context archive.\r\n\r\nI assume, the build traverses all +67k files in the node_modules directory, only to find none of them have to be included. This would be very inefficient. When there are no exceptions, that allow a file below node_modules, it might skip the whole directory.\r\n\r\nUpdate:\r\nUnit test in `docker-java-core`, `testdir` has the large folder as child, `.dockerignore` absent:\r\n```java\r\n@Test\r\n    public void can_parse_dockerfile() throws IOException {\r\n        File dockerFile = new File(\".\\\\testdir\\\\Dockerfile\");\r\n        File baseDirectory = new File(\".\\\\testdir\");\r\n        Dockerfile dockerfile = new Dockerfile(dockerFile, baseDirectory);\r\n        Stopwatch stopwatch = Stopwatch.createStarted();\r\n        Dockerfile.ScannedResult parse = dockerfile.parse();\r\n        System.out.println(\"Parse took \" + stopwatch.elapsed(TimeUnit.MILLISECONDS) + \"ms\");\r\n        System.out.println(parse.filesToAdd.size() + \" files added\");\r\n    }\r\n```\r\nOutput:\r\n\u003e Parse took 28008ms\r\n\u003e 4 files added","author":{"url":"https://github.com/swiedenfeld","@type":"Person","name":"swiedenfeld"},"datePublished":"2020-06-07T20:43:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/1409/docker-java/issues/1409"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:a4f32211-0cc4-8f31-765c-1b92f1b9d92a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA754:2EEAE2:44021CA:5E9A61B:69714822
html-safe-nonceff49f4cecaf692023578bf46789f7075855690ff6879029cf3e8a2f561129b3a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzU0OjJFRUFFMjo0NDAyMUNBOjVFOUE2MUI6Njk3MTQ4MjIiLCJ2aXNpdG9yX2lkIjoiMzc1MTQ0MDc3NTU5ODEzMTIzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd74178430f3d35eff6d70866c37d605b232891545d46645e1d5155b47cfb546b
hovercard-subject-tagissue:633746614
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/docker-java/docker-java/1409/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a57dce3446bbb58cf23ceee58a246c8e96cb2f036bd57e9aa82837e5917b57ba/docker-java/docker-java/issues/1409
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a57dce3446bbb58cf23ceee58a246c8e96cb2f036bd57e9aa82837e5917b57ba/docker-java/docker-java/issues/1409
og:image:altEnvironment: IntelliJ IDEA 2020.2 EAP Build #IU-202.5103.13 with bundled Docker plugin 202.5103.13. Docker plugin must use docker-java, connection to Docker Desktop for Windows via npipe. Cannot fi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameswiedenfeld
hostnamegithub.com
expected-hostnamegithub.com
None9bd14a55b65b030988a89787ed340c0f040258c3240af6941d85f740f21629a0
turbo-cache-controlno-preview
go-importgithub.com/docker-java/docker-java git https://github.com/docker-java/docker-java.git
octolytics-dimension-user_id7772003
octolytics-dimension-user_logindocker-java
octolytics-dimension-repository_id20415251
octolytics-dimension-repository_nwodocker-java/docker-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id20415251
octolytics-dimension-repository_network_root_nwodocker-java/docker-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release24a7109a3a584a05e29240fcc1ba60220deccdb8
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/docker-java/docker-java/issues/1409#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-java%2Fdocker-java%2Fissues%2F1409
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdocker-java%2Fdocker-java%2Fissues%2F1409
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=docker-java%2Fdocker-java
Reloadhttps://github.com/docker-java/docker-java/issues/1409
Reloadhttps://github.com/docker-java/docker-java/issues/1409
Reloadhttps://github.com/docker-java/docker-java/issues/1409
docker-java https://github.com/docker-java
docker-javahttps://github.com/docker-java/docker-java
Notifications https://github.com/login?return_to=%2Fdocker-java%2Fdocker-java
Fork 1.1k https://github.com/login?return_to=%2Fdocker-java%2Fdocker-java
Star 3.2k https://github.com/login?return_to=%2Fdocker-java%2Fdocker-java
Code https://github.com/docker-java/docker-java
Issues 37 https://github.com/docker-java/docker-java/issues
Pull requests 49 https://github.com/docker-java/docker-java/pulls
Discussions https://github.com/docker-java/docker-java/discussions
Actions https://github.com/docker-java/docker-java/actions
Projects 0 https://github.com/docker-java/docker-java/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/docker-java/docker-java/security
Please reload this pagehttps://github.com/docker-java/docker-java/issues/1409
Insights https://github.com/docker-java/docker-java/pulse
Code https://github.com/docker-java/docker-java
Issues https://github.com/docker-java/docker-java/issues
Pull requests https://github.com/docker-java/docker-java/pulls
Discussions https://github.com/docker-java/docker-java/discussions
Actions https://github.com/docker-java/docker-java/actions
Projects https://github.com/docker-java/docker-java/projects
Security https://github.com/docker-java/docker-java/security
Insights https://github.com/docker-java/docker-java/pulse
New issuehttps://github.com/login?return_to=https://github.com/docker-java/docker-java/issues/1409
New issuehttps://github.com/login?return_to=https://github.com/docker-java/docker-java/issues/1409
Build context scan feels slow when directory contains large file treehttps://github.com/docker-java/docker-java/issues/1409#top
resolution/stalehttps://github.com/docker-java/docker-java/issues?q=state%3Aopen%20label%3A%22resolution%2Fstale%22
https://github.com/swiedenfeld
https://github.com/swiedenfeld
swiedenfeldhttps://github.com/swiedenfeld
on Jun 7, 2020https://github.com/docker-java/docker-java/issues/1409#issue-633746614
resolution/stalehttps://github.com/docker-java/docker-java/issues?q=state%3Aopen%20label%3A%22resolution%2Fstale%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.