Running Kitchen-docker Tests With Upstart

chef, docker, kitchen-docker, ruby, test-kitchen, ubuntu, upstart

TL;DR:

.kitchen.yml
1
2
3
4
5
6
7
8
9
10
11
# .kitchen.yml
---
driver:
  name: docker
  use_sudo: false              # this depends if you need to do `sudo` to run `docker` command or not
  disable_upstart: false
  image: ubuntu-upstart:14.04
  run_command: /sbin/init

platforms:
  - name: ubuntu-14.04

It is possible because there is this official base image specifically for upstart: https://registry.hub.docker.com/_/ubuntu-upstart/.

After making your .kitchen.yml look like this, just use kitchen as you would normally would.

Happy coding! @waterlink000 on twitter.