3 ms·
> Beyond that, we’ve got new commands, .dockerignore support Gosh dangit. It's about to the point I need a separate tool just to manage all my .ignore files.
by andrewstuart2 12y ago
> Beyond that, we’ve got new commands, .dockerignore support
Gosh dangit. It's about to the point I need a separate tool just to manage all my .ignore files.
Come to think of it, maybe just ln -s will do.
- nickstinemates 12y agoAgree, I think ignore files are leaky abstractions. The problem is specificity.
- zenlikethat 12y agoUsually I just have a very tiny .dockerignore with .git in it (since .git usually grows so huge), although some applications store logs and stuff that you should probably not send to the docker daemon every time. I've found Github's auto-generated-by-language .gitignore files very useful.
- andrewstuart2 12y agoI think it's just a tiny wrapper that oh-my-zsh has, but I have a `gi` bash function that calls out to gitignore.io/api/$@. Then I just redirect the response to .gitignore. `gi vim,linux,node,grunt,bower > .gitignore` Super handy.
- zenlikethat 12y agoNice!
- shykes 12y agoGlad someone agrees with me :) For what it's worth, I resisted adding .dockerignore as long as I could, basically for the same reason (why not add .gitignore support instead?) but the demand for it was simply too overwhelming to ignore, so I gave up and let it in. See https://github.com/docker/docker/pull/3452 https://github.com/docker/docker/pull/3452 and follow -up mailing list thread. In the end it kind of grows on you :)