Kubernetes job monitor
Kubernetes is an awesome container orchestration platform. One of the features it provides is the ability to configure Kubernetes cron jobs. The cron jobs will periodically create jobs (executions)....
View ArticleStackStorm job monitor
StackStorm is a great automation tool. In general it exists of workflows and actions. Actions can have rules and have for example the trigger type “core.st2.CronTimer“. If you have a lot of these it’s...
View ArticleJenkins Amazon ECR token update
With the use of the Jenkins Docker Pipeline plugin, it’s easy to build and push Docker images. For example, building in a Jenkinsfile: script { dockerImage =...
View ArticleTrigger Jenkins multibranch pipeline with curl or webhook
Git branch source Jenkins jobs that use the widely used git plugin, can be triggered remotely with curl or a webhook. The job must have the option “Poll SCM” enabled. That’s all to enable push...
View ArticleJenkinsfile Docker pipeline multi stage
Using a Jenkinsfile to configure the Jenkins build job for source code is great. Jenkins has a very nice Docker Pipeline plugin that makes it possible to execute docker commands nicely during the...
View ArticleMinikube NFS mounts
Minikube is great for having a Kubernetes cluster as local Docker development environment. In a development workflow you probably have source code on your host machine and it would be great if the...
View ArticleRolling upgrade Elasticsearch, Couchbase and CouchDB
For a client I automated the patching process of Linux operating systems and middleware. I create a python action for that in StackStorm. The script retrieved all servers from the CMDB and patched per...
View ArticleInstall ViMbAdmin with Chef
Two years ago I wrote a tutorial to install a complete Postfix mail server with Dovecot, SpamAssassin and ViMbAdmin. At the moment I am automating this tutorial for CentOS 7 with Chef. For ViMbAdmin I...
View ArticleChef – Speed up development with vagrant-proxyconf and squid
If you do a lot of Chef development, you are creating cookbooks with recipes. But also converging, testing and destroying virtual machines with Test Kitchen that uses Vagrant. In this process, virtual...
View ArticlePHP-FPM + OPcache + Nginx + Capistrano stable deploy
Capistrano is great for deploying web applications. But the “current” symlink construction causes issues with PHP-FPM and OPcache enabled. PHP-FPM will display old pages after deployment or PHP-FPM...
View ArticlePHPUnit – How to mock multiple calls to the same method
When you write unit tests with PHPUnit there is a big chance that you have to mock several objects. If you want to write a unit test for your controller action and you use Doctrine ORM in your...
View ArticleUbuntu 12.04 – Install Gearman and GearmanManager
Gearman is a wonderful job management system. It allows a web application to pass work to be done on other servers that may be more powerful or more capable in other ways. In addition, multiple jobs...
View ArticleUbuntu 14.04 – Install Selenium as service (headless)
This tutorial will show you how to install Selenium as a service on a Ubuntu 14.04 server. An Ubuntu server doesn’t have a GUI in contrast to Ubuntu desktop, so we will also need to setup a virtual...
View ArticleZF Apigility + Doctrine + UniqueObject Validator
Building a REST API with Apigility that is built on top of Zend Framework 2 is awesome. I’m also a big fan of Doctrine. So I started with the zf-apigility-skeleton and added the zf-apigility-doctrine...
View ArticleSolr automatic core update as deployment step
For my projects I use the awesome tool Capistrano for deployment. In a project that uses Solr, I want to update the Solr core as a deployment step if the Solr configuration of that core is changed....
View ArticleCapistrano – Automatically start ssh-agent
Capistrano has the option to forward the local SSH agent to the remote server it wants to deploy on. But for this to work a SSH agent must be running and the key(s) you want to forward must be added...
View ArticleUbuntu 12.04 – Install Postfix, Dovecot and Vimbadmin
This tutorial shows you how to install Postfix (2.9.6) with Dovecot (2.0.19) and the manage tool Vimbadmin (2.2.2) on Ubuntu Server 12.04. Perform all actions as root! Checks Hostname You should check...
View ArticlePHP Xdebug + Netbeans + Vagrant
Xdebug is a very nice extension for PHP. It makes step by step debugging possible in your IDE. For most people it’s easy to install Xdebug and start debugging their web application on localhost with...
View ArticleVagrant – Shell provision example
Vagrant is a very awesome tool that makes it very easy to develop your projects in virtual machines on your laptop or PC. It’s a wrapper around VirtualBox. It also makes them very easy to maintain and...
View ArticleUbuntu 12.04 – Install Jenkins 1.4 with Jetty 9
This tutorial requires that Jetty is installed as described at http://pietervogelaar.nl/ubuntu-12-04-install-jetty-9. This tutorial describes how to install Jenkins 1.4 with a jenkins.war file with...
View Article