This is my quick-and-dirty logging configuration that works for both scripts and containerized applications. from logging import StreamHandler, getLogger from os import getenv stderr_handler = StreamHandler() log = getLogger(__name__) log.setLevel(getenv('LOG_LEVEL', 'INFO')) log.addHandler(stderr_handler) This…
Docker
A collection of 3 posts
Moving off Docker Hub
Docker Hub was the place to get container images. To a degree, it still is, but support for other public registries has increased and if your software's installation instructions include a Docker Compose file, then having that file pre-populated with…
Deploying Docker Containers without Leaking Secrets
I maintain a Django application at the company at which I am employed. Initially, changes weren’t very frequent, so logging into the host and running a few commands when the application needed to be updated wasn’t a big…