TestKitchenDocker: Difference between revisions
Jump to navigation
Jump to search
(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...") |
No edit summary |
||
Line 1: | Line 1: | ||
Use ChefDk to install kitchen-docker into Chef's ruby omnibus | Use ChefDk to install kitchen-docker into Chef's ruby omnibus | ||
<syntaxhighlight> | <syntaxhighlight lang=bash> | ||
sudo chef gem install kitchen-docker | sudo chef gem install kitchen-docker | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight> | <syntaxhighlight lang=bash> | ||
sudo chef kitchen test | sudo chef kitchen test | ||
</syntaxhighlight> | </syntaxhighlight> | ||
.kitchen.yml in repo | .kitchen.yml in repo | ||
<syntaxhighlight> | <syntaxhighlight lang=bash> | ||
--- | --- | ||
driver: | driver: |
Latest revision as of 23:05, 24 January 2018
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"