Chef Test Kitchen – Verifications

There are a few gotchas I find trying to use test kitchen.
Hope this is the place

  1. I try to run test kitchen inside a cookbook (using the single-repo-per-cookbook mentality), but then test kitchen fails to find the recipe and throws an error.
    When I place the kitchen.yml outside the cookbook directory, it works just fine.
    Can I somehow configure the base path for the kitchen to run from?

  2. Where is my Docker WordPress Website Storing Data?
  3. do_compile error on building docker
  4. Building an ubuntu docker image
  5. Error response from daemon: Cannot checkpoint container CONTAINERID: Unable to execute CRIU command: criu
  6. Restarting docker engine and keeping containers running
  7. I thought I understood Docker until I saw the BusyBox docker image
  8. When I try to login to a node in the kitchen list, it asks me for a password for kitchen@localhost. in whatever tutorial I’ve seen, including the test kitchen own site, a password was not required.

  9. Just wondering, although it’s not fully related – I’m using the kitchen-docker driver, and I’m trying to have a base image in which chef is already installed. When I tried to do that manually it failed to ssh for some reason. Am I missing something?

  • How to save a Docker image
  • Responses from kubernetes containers getting lost
  • How to create a virtual cluster using docker on a single node?
  • How to add tags to docker images made using autobuild
  • How upgrade a docker image without creating new image?
  • Port Publishing When Running with Docker Compose
  • One Solution collect form web for “Chef Test Kitchen – Verifications”

    1. Thanks, the metadata was missing from the kitchen.yml file, so it didn’t add the current cookbook.

    2. For future reference – not sure if it’s intended, but the password is “kitchen” for the user kitchen, and it can be set otherwise via driver config.

    3. Probably something was wrong with the image.
      Rebuilt and it worked perfect.
      checkout https://gist.github.com/iwfmp/9631593 for an easy build.
      Thanks:)

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.