Skip to content

mrk21/test-kitchen-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

test-kitchen-runner

This is Docker image for running test-kitchen script. This supports Ruby 2.2 with Bundler, latest Ansible and latest Docker. If you want to use Docker, it needs --privileged=true option when this image running.

An example

If the project is used with kitchen-ansible and kitchen-docker:

your_project
├── .kitchen.yml
├── Gemfile
├── Rakefile
├── site.yml
└── test
    └── integration
        └── default
...

Gemfile:

source "https://rubygems.org"

gem 'test-kitchen'
gem 'kitchen-ansible'
gem 'kitchen-docker'
gem 'docker'

group :integration do
  gem 'serverspec'
  gem 'specinfra'
end

Rakefile:

begin
  require "kitchen/rake_tasks"
  Kitchen::RakeTasks.new
rescue LoadError
  puts ">>>>> Kitchen gem not loaded, omitting tasks" unless ENV["CI"]
end

If you want to run the tests of the above project, you will execute the commands listed below:

$ bundle install --path=vendor/bundle
$ bundle exec rake kitchen:all

About

This is Docker image for running test-kitchen script

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages