Docker stop trick
It's often the little things that make you feel like you're using a solid piece of software. My latest example is how long it takes a Docker image to stop. By default, it can take ten seconds, and that's a long time. The latest build (276) of Gallium Data includes a minuscule modification to the script that starts the Java process: Before: /usr/bin/java -classpath "/galliumdata/jars/*" After: exec /usr/bin/java -classpath "/galliumdata/jars/*" That makes all the difference! Using exec replaces the bash process with the Java process, which means it will receive the termination signal sent by docker stop and shut down as soon as it receives the signal. That may not look like much, but ten seconds is a long time. Most of us will live about two and a half billion seconds. I'm probably at two-thirds of my life span, which means I have likely less than a billion seconds left. Even if I had a billion dollars in my bank account, I'm pretty ...