phippyandfriends icon indicating copy to clipboard operation
phippyandfriends copied to clipboard

draft up fails

Open schdief opened this issue 5 years ago • 3 comments

First of all thanks for setting up this nice sample project, it helps a lot understanding helm, draft and AKS. Unfortunately I'm stuck right at the beginning and I'm hoping to find some help here.

I think I took care of all the prerequisites, but I can't draft up the parrot service as it misses the Dockerfile, which is there. Here you can see the output:

Steves-MBP:parrot schdief$ draft up
Draft Up Started: 'parrot': 01D5KQFETCVKEKTHD5GFW87QEQ
parrot: Building Docker Image: FAIL ❌  (1.0013s)
Inspect the logs with `draft logs 01D5KQFETCVKEKTHD5GFW87QEQ`
Steves-MBP:parrot schdief$ draft logs 01D5KQFETCVKEKTHD5GFW87QEQ
2019/03/10 12:58:17 error while building: Error response from daemon: Cannot locate specified Dockerfile: Dockerfile
Steves-MBP:parrot schdief$ ls
Controllers                     NOTICE                          appsettings.Development.json    charts                          parrot.csproj
Dockerfile                      Program.cs                      appsettings.json                draft.toml                      semantic
Hubs                            Startup.cs                      azure-build-pipeline.yml        package-lock.json               semantic.json
Models                          Views                           bundleconfig.json               package.json                    wwwroot

Any idea what is missing? Help is much appreciated, thanks!

schdief avatar Mar 10 '19 12:03 schdief

Edit parrot/draft.toml and change line 9 to:

    dockerfile = "Dockerfile"

I'm new at this, but this seems to work here at least. On Windows, using git for windows bash and CMD.

angularsen avatar Mar 24 '19 17:03 angularsen

@angularsen - works for me in Windows 10 too

rohancragg avatar Jun 05 '19 15:06 rohancragg

@angularsen works for me also, Windows 10 build 1903 - great find, thank you!

AdamSharif-MSFT avatar Jul 02 '19 11:07 AdamSharif-MSFT