TestKitchenDocker

From DrewWiki
Revision as of 11:25, 29 December 2017 by Drew (talk | contribs) (Created page with "Use ChefDk to install kitchen-docker into Chef's ruby omnibus <syntaxhighlight> sudo chef gem install kitchen-docker </syntaxhighlight> <syntaxhighlight> sudo chef kitchen te...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Use ChefDk to install kitchen-docker into Chef's ruby omnibus

sudo chef gem install kitchen-docker
sudo chef kitchen test

.kitchen.yml in repo

---
driver:
  name: docker
  use_sudo: false

platforms:
  - name: centos-7.2

driver_config:
  require_chef_omnibus: 12.16.42
  provision_command: 'yum install initscripts -y'
  run_command: '/usr/sbin/init'
  privileged: true

suites:
  - name: jenkins-invadelabs
    data_bags_path: 'test/integration/data_bags'
    encrypted_data_bag_secret_key_path: "test/integration/encrypted_data_bag_secret"
    attributes:
      java:
        jdk_version: "8"