{"action":"created","issue":{"url":"https://api.github.com/repos/brandon-rhodes/fopnp/issues/1","labels_url":"https://api.github.com/repos/brandon-rhodes/fopnp/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/brandon-rhodes/fopnp/issues/1/comments","events_url":"https://api.github.com/repos/brandon-rhodes/fopnp/issues/1/events","html_url":"https://github.com/brandon-rhodes/fopnp/pull/1","id":48140253,"number":1,"title":"do not use docker cache when building base image","user":{"login":"grwl","id":1535574,"avatar_url":"https://avatars.githubusercontent.com/u/1535574?v=3","gravatar_id":"","url":"https://api.github.com/users/grwl","html_url":"https://github.com/grwl","followers_url":"https://api.github.com/users/grwl/followers","following_url":"https://api.github.com/users/grwl/following{/other_user}","gists_url":"https://api.github.com/users/grwl/gists{/gist_id}","starred_url":"https://api.github.com/users/grwl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grwl/subscriptions","organizations_url":"https://api.github.com/users/grwl/orgs","repos_url":"https://api.github.com/users/grwl/repos","events_url":"https://api.github.com/users/grwl/events{/privacy}","received_events_url":"https://api.github.com/users/grwl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"brandon-rhodes","id":166162,"avatar_url":"https://avatars.githubusercontent.com/u/166162?v=3","gravatar_id":"","url":"https://api.github.com/users/brandon-rhodes","html_url":"https://github.com/brandon-rhodes","followers_url":"https://api.github.com/users/brandon-rhodes/followers","following_url":"https://api.github.com/users/brandon-rhodes/following{/other_user}","gists_url":"https://api.github.com/users/brandon-rhodes/gists{/gist_id}","starred_url":"https://api.github.com/users/brandon-rhodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandon-rhodes/subscriptions","organizations_url":"https://api.github.com/users/brandon-rhodes/orgs","repos_url":"https://api.github.com/users/brandon-rhodes/repos","events_url":"https://api.github.com/users/brandon-rhodes/events{/privacy}","received_events_url":"https://api.github.com/users/brandon-rhodes/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2014-11-07T22:47:43Z","updated_at":"2015-12-10T13:00:12Z","closed_at":"2015-12-10T13:00:12Z","pull_request":{"url":"https://api.github.com/repos/brandon-rhodes/fopnp/pulls/1","html_url":"https://github.com/brandon-rhodes/fopnp/pull/1","diff_url":"https://github.com/brandon-rhodes/fopnp/pull/1.diff","patch_url":"https://github.com/brandon-rhodes/fopnp/pull/1.patch"},"body":"I have just encountered a problem building docker, due to something I think related to caching.\r\nThe build of base image failed during apt-get install, as it tries to use a package and gets 404-not-found.\r\nI think it is because 'apt-get update' got cached and is not effectively executed for the base container but skipped. Probably related to \"unless the RUN command *itself* changes (and thus invalidates Docker’s on-host cache), Docker will reuse the previous results from cache\" in http://thenewstack.io/understanding-the-docker-cache-for-faster-builds/.\r\n\r\nThis behavior might be specific to the revision of the docker ubuntu image I have on my PC.\r\n\r\n$ sudo docker images ubuntu | grep 14.04\r\nubuntu              14.04               99ec81b80c55        6 months ago        266 MB\r\n\r\nAnyway, this patch has solved the problem for me.\r\n"},"comment":{"url":"https://api.github.com/repos/brandon-rhodes/fopnp/issues/comments/163604021","html_url":"https://github.com/brandon-rhodes/fopnp/pull/1#issuecomment-163604021","issue_url":"https://api.github.com/repos/brandon-rhodes/fopnp/issues/1","id":163604021,"user":{"login":"brandon-rhodes","id":166162,"avatar_url":"https://avatars.githubusercontent.com/u/166162?v=3","gravatar_id":"","url":"https://api.github.com/users/brandon-rhodes","html_url":"https://github.com/brandon-rhodes","followers_url":"https://api.github.com/users/brandon-rhodes/followers","following_url":"https://api.github.com/users/brandon-rhodes/following{/other_user}","gists_url":"https://api.github.com/users/brandon-rhodes/gists{/gist_id}","starred_url":"https://api.github.com/users/brandon-rhodes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandon-rhodes/subscriptions","organizations_url":"https://api.github.com/users/brandon-rhodes/orgs","repos_url":"https://api.github.com/users/brandon-rhodes/repos","events_url":"https://api.github.com/users/brandon-rhodes/events{/privacy}","received_events_url":"https://api.github.com/users/brandon-rhodes/received_events","type":"User","site_admin":false},"created_at":"2015-12-10T13:00:12Z","updated_at":"2015-12-10T13:00:12Z","body":"I am going to close this pull request for now, since for my workflow the docker cache is crucially important — and is, I think, how Docker is supposed to work, preventing confusion for people who use Docker elsewhere and expect its usual caching behavior.\r\n\r\nI might add the other scripts at some point in the future, but for the moment am going to keep things as simple as possible for the one use case that I current have the cycles to support — the use case where people bring the Playground up once, and don't stop and start it, but instead just bring down the host when they are done.\r\n\r\nThanks again for pointing out that my shell shebangs needed fixing!"}}