All languages

Docker

You're viewing a free preview. Sign in free to read every script.

Why this exists A container that starts and then crashes a moment later because DATABASE URL was never set costs time twice: it looks as if it worked for a second, and the real error is buried in application logs that…

Entrypoint Script with Environment Validation

A POSIX-sh entrypoint that reads secrets from files, reports every missing variable at once, waits for dependencies, and then execs the real command so it becomes PID 1, with the exit codes and shutdown behaviour of the with-exec and without-exec versions measured side by side.

Sign in free to read this script, along with the rest of the library.

Sign in free