dnephin / dobi

A build automation tool for Docker applications
https://dnephin.github.io/dobi/
Apache License 2.0
311 stars 36 forks source link

cannot get dobi examples to work #123

Closed d3netxer closed 6 years ago

d3netxer commented 6 years ago

Any suggestions on why I cannot run the dobi examples?

dobi is running when I run dobi on in the main directory. For example:

ubuntu@ip-172-31-46-77:~/repos/dobi$ sudo dobi list
  all                  Run all lint and build tasks
  binary               Build the static binary
  deps                 Install go dependencies
  dist-img             Build the distribution image
  docs                 Build docs and start an http server to preview the docs
  lint                 Run style checks
  refactor-shell       Start an interactive shell for running go refactor tools
  shell                Start an interactive development environment
  test                 Run all tests
  watch                Watch for code changes and run the unit tests

however, when I try to run 'dobi list' inside the the sample cases in the examples directory, I am getting errors:

ubuntu@ip-172-31-46-77:~/repos/dobi/examples/init-named-volume$ dobi list
[ERROR] Failed to load config from "dobi.yaml": Invalid config for resource "mount=data":
Error at mount=data.name: unexpected key

ubuntu@ip-172-31-46-77:~/repos/dobi/examples/inline-dockerfile$ sudo dobi list
[ERROR] Failed to load config from "dobi.yaml": Invalid config for resource "image=dev":
Error at image=dev.steps: unexpected key
dnephin commented 6 years ago

mount.name and image.steps are both new fields added in https://github.com/dnephin/dobi/releases/tag/v0.10. Which version of dobi are you running?

dobi --version
d3netxer commented 6 years ago

Ok I was at v.08

I upgraded to v0.10 and it seems to have taken care of my issue. I submitted a pull request to update the one-liner to v.10. Thanks!