Docker

Get Alerts, When Containers Run Into Issues

I’m running docker containers for all side projects. Usually one single container. Sometimes multiple containers started by docker-compose[1].

If containers get issues, I want to get alerts.
What a typical monitoring requirement! But if you do some research, you will find the information is just overwhelming. cAdvisor, Prometheus, InfluxDB, etc. Excuse me? Can’t we have a simple solution for this simple requirement? Here is my answer. Try it and discuss with me.

Get Alerts, When Containers Run Into Issues


(more…)

ChatOps Bot: Query Node Info Without Manual Login

Try Your Best To Avoid Any SSH Operations. Yes, I deeply believe in this principle. But my reality is the automation is never so perfect. I still need to login and check system status sometimes. Though the chance is rare.
It may happen at nights or even when I’m on vacation. So what I can do? Just carry my laptop with me wherever I go? This is certainly bad, isn’t it?

We’re living in the world of ChatOps. And mobile phones dominate our daily life (Sadly!) So why don’t we implement a ChatOps bot for this? Here comes a slack command: /chatqueryhost. (Note: The solution is not limited to Slack)

ChatOps Bot: Query Node Info Without Manual Login


(more…)

Run Code Static Check Via A Temporary Container

How Would You Enforce Code Static Check? Learn and understand the check tools. Then install and configure them in your servers.

With docker, it could be much easier than ever! Let me show you how. The solution has built-in supports for: Python, Ruby, Shell. (You definitely can add more).
And What Does It Take? 5 minutes. Yes, you hear me. Only 5 minutes!

Run Static Check Against Your Scripts Via A Temporary Container


(more…)