When running apps on a docker swarm sometimes we know from the monitoring/alerting system just a container hostname, but measures should be taken on the host. For example, free up some disk space. I’ve struggled to find a way to find it out in an easy way, but haven’t succeeded. So, I came up with…
Tag: opensource
docker-compose logs sorted by time
Trying to understand what’s happening inside your code running in multiple docker-compose containers by reading logs could be a terrible idea if log lines are outputted in a random manner. Which is true at least for docker-compose version 1.8.0, build 94f7016. This could be simply checked by running the following command several times. docker-compose logs|head Here…
Nodejs cache images or other binary data on local disk filesystem
I’ve been looking for a simple npm package that will allow caching arbitrary binary data (images, specifically) on a local fs storage. I could have do the work for saving the files locally, but cache invalidation task was too much. In a hope that someone already created the package I’ve looked through the npm. What…
Terminating wp-pro-quiz quiz on first wrong answer
There’s an awsome quiz plugin for WordPress which lacked the option for terminating a quiz on first wrong answer. Pull request for that option is submitted.