jpetazzo / squid-in-a-can

361 stars 78 forks source link

Reduce image size and enable clean exit with docker-compose #25

Closed kscherer closed 8 years ago

kscherer commented 8 years ago

First many thanks because this project has allowed me to remove my site specific dockerfile hacks that I needed to reuse local packages.

These patches were tested with docker compose 1.7 and docker 1.11. I found that the iptables rules where not being cleaned up properly. I tracked it down to the python script not receiving the SIGTERM. So I added dumb-init, cleaned up the dockerfile and fixed the deploy script to handle the sigterm.

jpetazzo commented 8 years ago

Thanks a bunch! That seems very useful; and I hadn't seen dumb-init in action yet. Very interesting!