Azure / draft-classic

A tool for developers to create cloud-native applications on Kubernetes.
https://draft.sh
MIT License
3.92k stars 397 forks source link

Missing Dockerfile in draft.toml breaks the builder #869

Closed radu-matei closed 5 years ago

radu-matei commented 5 years ago

Using the current master branch, doing a draft up on an example fails because of the missing Dockerfile in draft.toml.

In the past, if a Dockerfile was not specified in draft.toml, Draft would automatically look for Dockerfile in the application directory. Apparently, that functionality no longer exists:

radu:example-go $ draft up
Draft Up Started: 'example-go': 01CRTMK54GP6EV43GHQY8048YY
example-go: Building Docker Image: FAIL ❌  (1.0591s)
Inspect the logs with `draft logs 01CRTMK54GP6EV43GHQY8048YY`
radu:example-go $ draft logs
2018/10/02 17:58:28 error while building: Error response from daemon: Cannot locate specified Dockerfile: Dockerfile
radu:example-go $ cat draft.toml
[environments]
  [environments.development]
    name = "example-go"
    namespace = "default"
    wait = true
    watch = false
    watch-delay = 2
    auto-connect = false
    dockerfile = ""
    chart = ""
radu:example-go $