{"action":"created","issue":{"url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/435","repository_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin","labels_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/435/labels{/name}","comments_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/435/comments","events_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/435/events","html_url":"https://github.com/bmuschko/gradle-docker-plugin/pull/435","id":249159139,"number":435,"title":"The first instruction of a Dockerfile has to be FROM except for Docker later than 17.05","user":{"login":"childnode","id":192814,"avatar_url":"https://avatars1.githubusercontent.com/u/192814?v=4","gravatar_id":"","url":"https://api.github.com/users/childnode","html_url":"https://github.com/childnode","followers_url":"https://api.github.com/users/childnode/followers","following_url":"https://api.github.com/users/childnode/following{/other_user}","gists_url":"https://api.github.com/users/childnode/gists{/gist_id}","starred_url":"https://api.github.com/users/childnode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/childnode/subscriptions","organizations_url":"https://api.github.com/users/childnode/orgs","repos_url":"https://api.github.com/users/childnode/repos","events_url":"https://api.github.com/users/childnode/events{/privacy}","received_events_url":"https://api.github.com/users/childnode/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"orzeh","id":8168237,"avatar_url":"https://avatars0.githubusercontent.com/u/8168237?v=4","gravatar_id":"","url":"https://api.github.com/users/orzeh","html_url":"https://github.com/orzeh","followers_url":"https://api.github.com/users/orzeh/followers","following_url":"https://api.github.com/users/orzeh/following{/other_user}","gists_url":"https://api.github.com/users/orzeh/gists{/gist_id}","starred_url":"https://api.github.com/users/orzeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orzeh/subscriptions","organizations_url":"https://api.github.com/users/orzeh/orgs","repos_url":"https://api.github.com/users/orzeh/repos","events_url":"https://api.github.com/users/orzeh/events{/privacy}","received_events_url":"https://api.github.com/users/orzeh/received_events","type":"User","site_admin":false},"assignees":[{"login":"orzeh","id":8168237,"avatar_url":"https://avatars0.githubusercontent.com/u/8168237?v=4","gravatar_id":"","url":"https://api.github.com/users/orzeh","html_url":"https://github.com/orzeh","followers_url":"https://api.github.com/users/orzeh/followers","following_url":"https://api.github.com/users/orzeh/following{/other_user}","gists_url":"https://api.github.com/users/orzeh/gists{/gist_id}","starred_url":"https://api.github.com/users/orzeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orzeh/subscriptions","organizations_url":"https://api.github.com/users/orzeh/orgs","repos_url":"https://api.github.com/users/orzeh/repos","events_url":"https://api.github.com/users/orzeh/events{/privacy}","received_events_url":"https://api.github.com/users/orzeh/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-08-09T20:57:12Z","updated_at":"2017-08-09T21:08:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/pulls/435","html_url":"https://github.com/bmuschko/gradle-docker-plugin/pull/435","diff_url":"https://github.com/bmuschko/gradle-docker-plugin/pull/435.diff","patch_url":"https://github.com/bmuschko/gradle-docker-plugin/pull/435.patch"},"body":"https://github.com/bmuschko/gradle-docker-plugin/blob/master/src/main/groovy/com/bmuschko/gradle/docker/tasks/image/Dockerfile.groovy#L50\r\n\r\nis no longer valid since [docker 17.05+](https://github.com/moby/moby/releases/tag/v17.05.0-ce)\r\n> Allow using build-time args (ARG) in FROM #31352\r\n\r\nSo: while \r\n```\r\ntask dockerFile(type: Dockerfile) {\r\n    arg 'from=alpine'\r\n    from '\\$from'\r\n}\r\n```\r\nis not valid until 17.05, later on it works.\r\n\r\nI just hacked some ugly code ... mainly rebasing `Dockerfile` on `AbstractDockerRemoteApiTask`, implementing `runRemoteCommand()`, 🤞 cross the fingers that this `@TaskAction` runs before `Dockerfile.create()`, parsing the version in ugly 3 lines \r\n\r\nFeel free to blame ... but perhaps someone could get me on track how to get the version correctly or does have another idea how we should handle this issue."},"comment":{"url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/comments/321382034","html_url":"https://github.com/bmuschko/gradle-docker-plugin/pull/435#issuecomment-321382034","issue_url":"https://api.github.com/repos/bmuschko/gradle-docker-plugin/issues/435","id":321382034,"user":{"login":"orzeh","id":8168237,"avatar_url":"https://avatars0.githubusercontent.com/u/8168237?v=4","gravatar_id":"","url":"https://api.github.com/users/orzeh","html_url":"https://github.com/orzeh","followers_url":"https://api.github.com/users/orzeh/followers","following_url":"https://api.github.com/users/orzeh/following{/other_user}","gists_url":"https://api.github.com/users/orzeh/gists{/gist_id}","starred_url":"https://api.github.com/users/orzeh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orzeh/subscriptions","organizations_url":"https://api.github.com/users/orzeh/orgs","repos_url":"https://api.github.com/users/orzeh/repos","events_url":"https://api.github.com/users/orzeh/events{/privacy}","received_events_url":"https://api.github.com/users/orzeh/received_events","type":"User","site_admin":false},"created_at":"2017-08-09T21:08:45Z","updated_at":"2017-08-09T21:08:45Z","body":"@childnode IMHO in that case it would be better to just remove the validation from plugin and let Docker daemon do the job for us. @cdancy ?"}}
{"actor":{"display_login":"orzeh"}}