cloud66-oss / starter

Helping you get started with containerized apps.
https://www.cloud66.com/opensource-software/
Apache License 2.0
311 stars 57 forks source link

Writing service.yml... Failed to write service.yml (and more!) #68

Closed jspillers closed 7 years ago

jspillers commented 7 years ago

There are multiple, total failures with this program:

installed start via the bash script as recommended in another issue. The homebrew way still installs a very outdated version.

running starter -g dockerfile,service,docker-compose just results in:

$ starter -g dockerfile,service,docker-compose
flag provided but not defined: -g
Usage of starter:
  -branch string
        template branch in github (default "master")
  -e string
        set project environment (default "production")
  -overwrite
        overwrite existing files
  -p string
        project path
  -templates string
        location of the templates directory
  -y    do not prompt user

Next tried running just starter... get the following output:

$ starter
 Cloud 66 Starter ~ (c) 2016 Cloud 66
 Checking templates in /Users/nnn/.starter
 ----> Downloading from https://raw.githubusercontent.com/cloud66/starter/master/templates/templates.json
 Local templates are up to date
 Detecting framework for the project at /Users/nnn/projects/project_name
 Found ruby application
 Enter ruby version: [latest]
 ----> Found config/database.yml
 Found postgresql, confirm? [Y/n] Y
 Found redis, confirm? [Y/n] Y
 Add any other databases? [y/N] N
 ----> Analyzing dependencies
 This command will be run after each build: '/bin/sh -c "RAILS_ENV=_env:RAILS_ENV bundle exec rake db:schema:load"', confirm? [Y/n] Y
 This command will be run after each deployment: '/bin/sh -c "RAILS_ENV=_env:RAILS_ENV bundle exec rake db:migrate"', confirm? [Y/n] Y
 ----> Writing Dockerfile...
 ----> Writing service.yml...
 Failed to write service.yml due to: template: service.yml.template:29:6: executing "service.yml.template" at <.Name>: can't evaluate field Name in type string
foldingbeauty commented 7 years ago

hi @jspillers, the homebrew is outdated, you need to use the install script:

curl -sSL https://raw.githubusercontent.com/cloud66/starter/master/install.sh | bash

When you run starter -v is should say:

Starter version: 1.3.0 (2017-07-31)