Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Dockerfile found issue when issuing a build. #49

Open
rburton opened this issue Nov 3, 2014 · 3 comments
Open

No Dockerfile found issue when issuing a build. #49

rburton opened this issue Nov 3, 2014 · 3 comments

Comments

@rburton
Copy link

rburton commented Nov 3, 2014

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
Copy link
Author

rburton commented Nov 3, 2014

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
Copy link

Jimflip commented Dec 10, 2014

+1 same problem here

@Jimflip
Copy link

Jimflip commented Dec 10, 2014

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants