Blog

You can become a superhero of automation and development by learning and practicing. This is our blog from our learnings and practice.

We are consultants and trainers in Cloud Foundry, devops automation and continous delivery. We have the best jobs in the world helping you have the best job in the world.

Services upgrading their own DNS

This article is a continuation of investigations into service discovery, which started 3 days earlier with The world’s quickest demonstration of consul. One side of DNS is the ability for clients to find backend services/web apps without knowing implementation details: the IP addresses of host machines. The flipside is equally important: the ability for the

Dr Nic Williams Profile Image

Posted by:
Dr Nic Williams

Read More ➝
Dynamic DNS based on consul health checks

Continuing to explore consul for service discovery, I added some health checks to the redis cluster from the previous post (World’s quickest demo of consul). As you can see below if a health check is critical, then the service is removed from the DNS listing. If a health check is a warning, then it continues

Dr Nic Williams Profile Image

Posted by:
Dr Nic Williams

Read More ➝
Automating root password on MySQL 5.6

So, I spent an unreasonable amount of time attempting to automate the install of MySQL 5.6 for a client. Apparently one of the newer features in MySQL is the creation of a temporary password file when MySQL is first intalled. I want to use this password file to reset the root password as the root

Chris Weibel Profile Image

Posted by:
Chris Weibel

Read More ➝
World’s quickest demo of consul

"What is service discovery?" and "Should I investigate consul?" are questions for another day. Today is the day for the world’s quickest demonstration* of advertising a master-slave-slave redis cluster across consul. *No effort was made to verify this claim. Step-by-step: It shows a running cluster of consul servers Sadly, there is no redis service available.

Dr Nic Williams Profile Image

Posted by:
Dr Nic Williams

Read More ➝
Using a postgres URI with psql

It its popular to reference a PostgreSQL database with credentials via a URI, but neither psq –help nor man psql (v9.3.4) indicate how to do it. @yann_ck showed me you can pass it as the first argument: $ psql postgres://USERNAME:[email protected]:5432/jszlmeae psql (9.3.4, server 9.2.8) SSL connection (cipher: DHE-RSA-AES256-SHA, bits: 256) Type "help" for help. jszlmeae=>

Dr Nic Williams Profile Image

Posted by:
Dr Nic Williams

Read More ➝
Deploy Ghost blog to Cloud Foundry

Ghost is a lovely blogging application that is open source, requires only Node.js, a SQL database and an optional STMP/email service. Perfect for running on Cloud Foundry. So we migrated the static/jekyll Stark & Wayne website to Ghost and its now running on Pivotal Web Services. Here’s how… Follow these instructions to install Node.js &

Dr Nic Williams Profile Image

Posted by:
Dr Nic Williams

Read More ➝
Playing with Private Docker

We’ve recently become interested in the future of Docker. Why? In part for its Linux container technology (similar to Warden in Cloud Foundry), and in part for its nifty social integration (docker push & pull). But the big winner for us is its solution to packaging. Each docker repository contains a base Linux distro, all

Dr Nic Williams Profile Image

Posted by:
Dr Nic Williams

Read More ➝
BOSH packages with Debian

TL;DR You can now quickly create a BOSH package using existing .deb files instead of source files. gem install bosh-gen bosh-gen packages apache2 –apt vagrant up vagrant ssh -c ‘/vagrant/src/apt/fetch_debs.sh apache2’ vagrant destroy Edit the generated src/apt/apache2/aptfile to edit the list of .deb packages to be downloaded and later installed. When your BOSH release uses

Dr Nic Williams Profile Image

Posted by:
Dr Nic Williams

Read More ➝
Rapidly develop BOSH releases with bosh-gen and bosh-lite

It’s almost faster to create a BOSH release, iteratively deploy it and test it, then share a final documented release with the world than it is learn "what is BOSH again?" At Stark & Wayne we love BOSH, so here we go again to show how delicious this technology is for the development side. In

Dr Nic Williams Profile Image

Posted by:
Dr Nic Williams

Read More ➝