subuser-security / subuser

Run programs on linux with selectively restricted permissions.
http://subuser.org
GNU Lesser General Public License v3.0
889 stars 65 forks source link

Make mkdir idempotent to avoid a warning when the directory already e… #265

Closed ypid closed 8 years ago

ypid commented 8 years ago

Am I missing something?

BTW do you use apt-cacher-ng or some other form of local APT proxy to speed up the docker builds?

timthelion commented 8 years ago

I don't think you are missing anything.

Currently I'm not using any tricks to speed up Docker builds. I haven't any knowlege of apt-cacher-ng, but it might be an option. Even better, would be to have some kind of universal proxy that wasn't Debian specific, but I don't know if that is possible.

ypid commented 8 years ago

apt-cacher-ng is simple to setup so if your builds are limited sometimes by your network I would suggest to check it out. I think it would also be the way to go for having a generic package caching proxy. While focused on Debian, it supports others as well (maybe even Fedora to some extend).

When I am not building my Docker base images from scratch, I modify the base image to include the proxy config (as for testing with Sid today): https://github.com/ypid/docker-image-apt-cachify-ng