I'm trying to kick off testing using kitchen-docker.
kitchen-docker gem was installed through bundler already.
.kitchen.yml looks like this
---
driver:
name: docker
network:
- ["private_network", { ip: "192.168.33.10" }]
provisioner:
name: chef_solo
platforms:
- name: ubuntu-14.04
suites:
- name: default
run_list:
- recipe[homepage-test::default]
attributes:
"bundle exec kitchen test" command ends up with the error below
-----> Starting Kitchen (v1.4.2)
-----> Creating <default-ubuntu-1204>...
>>>>>> ------Exception-------
>>>>>> Class: Kitchen::ActionFailed
>>>>>> Message: Failed to complete #create action: [undefined method `create' for Tempfile:Class]
>>>>>> ----------------------
>>>>>> Please see .kitchen/logs/kitchen.log for more details
>>>>>> Also try running `kitchen diagnose --all` for configuration
I guess this doesn't work somehow because it fails to create the instance, but I have no idea how to approach this.
################### UPDATED #####################
There is an issue on github https://github.com/portertech/kitchen-docker/issues/148
That was exactly the some error as I used to have. And then I updated ruby 2.0.0 to 2.2.3 (the latest stable version) with rbenv.
And another error comes up,
I'm still stuck and still confused why this doesn't work, so I checked the log file and coming out the error message like this
STDERR: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.20/build?cgroupparent=&cpuperiod=0&cpuquota=0&cpusetcpus=&cpusetmems=&cpushares=0&dockerfile=Dockerfile-kitchen-20151030-31260-10xmvl2&memory=0&memswap=0&rm=1&t=&ulimits=null: dial unix /var/run/docker.sock: connect: no such file or directory.
* Are you trying to connect to a TLS-enabled daemon without TLS?
* Is your docker daemon up and running?