chef-boneyard / knife-container

DEPRECATED: Container support for Chef's Knife Command
Apache License 2.0
57 stars 11 forks source link

No Dockerfile found issue when issuing a build. #49

Open rburton opened 9 years ago

rburton commented 9 years ago

I run the following command to generate the required files:

knife container docker init app/web -r "role[web]" -z -b

It generates the folder ./dockerfiles/app/web/ which contains Dockerfile, Berksfile, chef, dockerfiles, etc.

When I run the following command, it fails.

knife container docker build app/web Resolving cookbook dependencies... Resolving cookbook dependencies... 2014/11/02 23:19:27 no Dockerfile found in ./dockerfiles/app/web

The Dockerfile exists as shown below:

ls -al ./dockerfiles/app/web/Dockerfile -rw-r--r-- 1 rburton staff 165 Nov 2 23:05 ./dockerfiles/app/web/Dockerfile

This is on Mac OS using Boot2Docker.

boot2docker status: running

Darwin rburton.local 13.3.0 Darwin Kernel Version 13.3.0: Tue Jun 3 21:27:35 PDT 2014; root:xnu-2422.110.17~1/RELEASE_X86_64 x86_64

Boot2Docker-cli version: v1.3.1 Git commit: 57ccdb8

rburton commented 9 years ago

I'm unable to debug this issue as well since there's no logging at all within this plug-in. I'll open another ticket as an improvement feature.

Jimflip commented 9 years ago

+1 same problem here

Jimflip commented 9 years ago

ok if i use the -d option and give an absolute path it is fine:

knife container docker build chef/ubuntu-14.04 -d ~/work/ch/whatever