{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/buildah/issues/686","repository_url":"https://api.github.com/repos/projectatomic/buildah","labels_url":"https://api.github.com/repos/projectatomic/buildah/issues/686/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/buildah/issues/686/comments","events_url":"https://api.github.com/repos/projectatomic/buildah/issues/686/events","html_url":"https://github.com/projectatomic/buildah/pull/686","id":323015510,"number":686,"title":"Add OnBuild support for Dockerfiles","user":{"login":"TomSweeneyRedHat","id":25613829,"avatar_url":"https://avatars3.githubusercontent.com/u/25613829?v=4","gravatar_id":"","url":"https://api.github.com/users/TomSweeneyRedHat","html_url":"https://github.com/TomSweeneyRedHat","followers_url":"https://api.github.com/users/TomSweeneyRedHat/followers","following_url":"https://api.github.com/users/TomSweeneyRedHat/following{/other_user}","gists_url":"https://api.github.com/users/TomSweeneyRedHat/gists{/gist_id}","starred_url":"https://api.github.com/users/TomSweeneyRedHat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomSweeneyRedHat/subscriptions","organizations_url":"https://api.github.com/users/TomSweeneyRedHat/orgs","repos_url":"https://api.github.com/users/TomSweeneyRedHat/repos","events_url":"https://api.github.com/users/TomSweeneyRedHat/events{/privacy}","received_events_url":"https://api.github.com/users/TomSweeneyRedHat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-05-14T23:25:13Z","updated_at":"2018-05-21T18:54:38Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/projectatomic/buildah/pulls/686","html_url":"https://github.com/projectatomic/buildah/pull/686","diff_url":"https://github.com/projectatomic/buildah/pull/686.diff","patch_url":"https://github.com/projectatomic/buildah/pull/686.patch"},"body":"Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>\r\n\r\nThis is a WIP to hopefully allow @nalind to spot what I'm messing up with this.  The image is not getting the OnBuild value attached to it, and I'm not completely sure why.  Hoping Nalin can quickly spot my mistake and give me a resounding head slap."},"comment":{"url":"https://api.github.com/repos/projectatomic/buildah/issues/comments/390748432","html_url":"https://github.com/projectatomic/buildah/pull/686#issuecomment-390748432","issue_url":"https://api.github.com/repos/projectatomic/buildah/issues/686","id":390748432,"user":{"login":"TomSweeneyRedHat","id":25613829,"avatar_url":"https://avatars3.githubusercontent.com/u/25613829?v=4","gravatar_id":"","url":"https://api.github.com/users/TomSweeneyRedHat","html_url":"https://github.com/TomSweeneyRedHat","followers_url":"https://api.github.com/users/TomSweeneyRedHat/followers","following_url":"https://api.github.com/users/TomSweeneyRedHat/following{/other_user}","gists_url":"https://api.github.com/users/TomSweeneyRedHat/gists{/gist_id}","starred_url":"https://api.github.com/users/TomSweeneyRedHat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomSweeneyRedHat/subscriptions","organizations_url":"https://api.github.com/users/TomSweeneyRedHat/orgs","repos_url":"https://api.github.com/users/TomSweeneyRedHat/repos","events_url":"https://api.github.com/users/TomSweeneyRedHat/events{/privacy}","received_events_url":"https://api.github.com/users/TomSweeneyRedHat/received_events","type":"User","site_admin":false},"created_at":"2018-05-21T18:54:38Z","updated_at":"2018-05-21T18:54:38Z","author_association":"COLLABORATOR","body":"Docker run.  Note the `# Executing 1 build trigger...` line in the first build.  The /bar directory is only present in the second image, not the first.\r\n\r\n```\r\n# docker build  -t onbuild-image .\r\nSending build context to Docker daemon  2.72 GB\r\nStep 1/3 : FROM fedora:28\r\nTrying to pull repository docker.io/library/fedora ... \r\nsha256:7ae08e5637170eb47c01e315b6e64e0d48c6200d2942c695d0bee61b38c65b39: Pulling from docker.io/library/fedora\r\ne71c36a80ba9: Pull complete \r\nDigest: sha256:7ae08e5637170eb47c01e315b6e64e0d48c6200d2942c695d0bee61b38c65b39\r\nStatus: Downloaded newer image for docker.io/fedora:28\r\n ---> cc510acfcd70\r\nStep 2/3 : RUN touch /foo\r\n ---> Running in a8a45d58d3a7\r\n ---> 9d475a707a1d\r\nRemoving intermediate container a8a45d58d3a7\r\nStep 3/3 : ONBUILD run touch /bar\r\n ---> Running in 0c8f9fbaea11\r\n ---> 5a47742d391a\r\nRemoving intermediate container 0c8f9fbaea11\r\nSuccessfully built 5a47742d391a\r\n\r\n# docker build -f Dockerfile-2 -t result-image .\r\nSending build context to Docker daemon  2.72 GB\r\nStep 1/2 : FROM onbuild-image\r\n# Executing 1 build trigger...\r\nStep 1/1 : RUN touch /bar\r\n ---> Running in 6b7f21a96a7e\r\n ---> c179eb6e01ee\r\nRemoving intermediate container 6b7f21a96a7e\r\nStep 2/2 : RUN touch /baz\r\n ---> Running in 0aec140ff8ce\r\n ---> 301e60c5f24a\r\nRemoving intermediate container 0aec140ff8ce\r\nSuccessfully built 301e60c5f24a\r\n\r\n# docker run result-image ls /bar\r\n/bar\r\n\r\n# docker run onbuild-image ls /bar\r\nls: cannot access '/bar': No such file or directory\r\n```\r\n\r\n"}}
{"actor":{"display_login":"TomSweeneyRedHat"}}