Clamd antivirus TCP client

Some time ago we at Peopleperhour published a Clamd container and now for the sake of learning some GO code and as a POC, I am writing about how to create a clamd client to expose a subset of the clams server TCP commands. The client code can be found in this git repo of clam-rest-api/overview and the distributable container can be found in dockerhub. The distributable container is only ==2MB== and when decompressed it will take up to ==5M== of disk space. »

Scripting with NodeJs and Docker

This is an example cli application that use NodeJs to build a command line binary and then use Docker to distribute and use it as container. The code is hosted in bitbucket This is using the NodeJs commander package in order to parse and use command line attributes and options. #Cloning from source First clone the repo $ git clone git@bitbucket.org:alexsapran/nodejs-docker-cli.git Lets first check that the application is working »

Cleanup etcd2 keys

Define the problem While using etcd2 for our production key-value store to hold cluster state and some configuration settings there is the need to perform some manual cleanup from time to time to reduce the number of keys, especially if you use keys that have the machine id for example hold configuration for that machine. The format where we store information in etcd is following the schema in etcd /service/<service_name>/machines/<machine-id>/. »

Jenkins runner with Terraform

Requirements Hosted in AWS, managed by infrastracture as a code. Have option to have different type of runners Scale up and down the runners independently Runners must have installed docker && docker-compose (1.7.1) Solution We will manage/provision our AWS resources with Terraform We will use for the runners labels and for each of the label we provision an Autoscale group (ASG). We do it like that because we can have for example different runners with higher CPU or higher RAM. »

ElastAlert as a Docker container

If you are working in a custom system, then logging is one of the most important aspects of that system. If you are in a system that does not allow external logging services such as Newrelic, Papertrail, Logentries or you do not want to outsource this to a third party for personal reasons then please continue reading, but first please see the intro about logging One solution for internal logging cluster is the modern Elastic stack known also as ELK. »