{"action":"created","issue":{"url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/88","labels_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/88/comments","events_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/88/events","html_url":"https://github.com/bmuschko/gradle-docker-plugin/issues/88","id":97340350,"number":88,"title":"100% CPU load on DockerBuildImage task","user":{"login":"mkuzmin","id":712402,"avatar_url":"https://avatars.githubusercontent.com/u/712402?v=3","gravatar_id":"","url":"https://api.github.com/users/mkuzmin","html_url":"https://github.com/mkuzmin","followers_url":"https://api.github.com/users/mkuzmin/followers","following_url":"https://api.github.com/users/mkuzmin/following{/other_user}","gists_url":"https://api.github.com/users/mkuzmin/gists{/gist_id}","starred_url":"https://api.github.com/users/mkuzmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkuzmin/subscriptions","organizations_url":"https://api.github.com/users/mkuzmin/orgs","repos_url":"https://api.github.com/users/mkuzmin/repos","events_url":"https://api.github.com/users/mkuzmin/events{/privacy}","received_events_url":"https://api.github.com/users/mkuzmin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"closed","locked":false,"assignee":{"login":"bmuschko","id":440872,"avatar_url":"https://avatars.githubusercontent.com/u/440872?v=3","gravatar_id":"","url":"https://api.github.com/users/bmuschko","html_url":"https://github.com/bmuschko","followers_url":"https://api.github.com/users/bmuschko/followers","following_url":"https://api.github.com/users/bmuschko/following{/other_user}","gists_url":"https://api.github.com/users/bmuschko/gists{/gist_id}","starred_url":"https://api.github.com/users/bmuschko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bmuschko/subscriptions","organizations_url":"https://api.github.com/users/bmuschko/orgs","repos_url":"https://api.github.com/users/bmuschko/repos","events_url":"https://api.github.com/users/bmuschko/events{/privacy}","received_events_url":"https://api.github.com/users/bmuschko/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-07-26T18:40:03Z","updated_at":"2015-07-29T08:55:06Z","closed_at":"2015-07-27T22:13:45Z","body":"I'm creating a Docker image by copying files without running any commands inside a container:\r\n```\r\nFROM java:jre\r\nADD server/TeamCity/ /opt/teamcity-server/\r\n```\r\nThe layer is rather large - it's 2000 files, over 600 Mb.\r\n\r\nRunning a build by Docker takes about 3 minutes.\r\nRunning the same build by the Gradle task takes 40 minutes, and loads CPU for 100%.\r\n\r\nHere is a [stack dump](https://gist.github.com/mkuzmin/6d675411bf668e46d800).\r\n\r\nI'm using:\r\nUbuntu 14.04\r\nOpenJDK 1.7.0_79\r\nGradle 2.5\r\nplugin 2.5\r\nDocker 1.7.1"},"comment":{"url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/comments/125885036","html_url":"https://github.com/bmuschko/gradle-docker-plugin/issues/88#issuecomment-125885036","issue_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/88","id":125885036,"user":{"login":"mkuzmin","id":712402,"avatar_url":"https://avatars.githubusercontent.com/u/712402?v=3","gravatar_id":"","url":"https://api.github.com/users/mkuzmin","html_url":"https://github.com/mkuzmin","followers_url":"https://api.github.com/users/mkuzmin/followers","following_url":"https://api.github.com/users/mkuzmin/following{/other_user}","gists_url":"https://api.github.com/users/mkuzmin/gists{/gist_id}","starred_url":"https://api.github.com/users/mkuzmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkuzmin/subscriptions","organizations_url":"https://api.github.com/users/mkuzmin/orgs","repos_url":"https://api.github.com/users/mkuzmin/repos","events_url":"https://api.github.com/users/mkuzmin/events{/privacy}","received_events_url":"https://api.github.com/users/mkuzmin/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T08:55:06Z","updated_at":"2015-07-29T08:55:06Z","body":"Benjamin, \r\n\r\nI've reported https://github.com/docker-java/docker-java/issues/283, and a maintainer of `docker-java` has prepared a PR already: https://github.com/docker-java/docker-java/pull/284\r\n\r\nI've compiled local copies of `java-docker` and `gradle-docker-plugin` to test that. Performance is much better, but now your plugin fails with `NullPointerException`. Here is a [stacktrace](https://gist.github.com/mkuzmin/6d675411bf668e46d800#file-stacktrace-pr284-txt).\r\n\r\nThat may be а backward-incompatible change in the PR, or a bug in your code, I don't know. \r\nI'm just a customer of your tool, and here is a moment, when I need to involve you to solve the problem.\r\n\r\nI appreciate, if you re-open this issue, and communicate with maintainers of `docker-java` directly.\r\n\r\nThanks!"}}