starter: Can't make it work

I’m not sure if this is the best place for this, so apologies if not, but I can’t make the tool work correctly.

In the first instance, I run the starter -g dockerfile,service,docker-compose command, but this just tells me:

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

So I try again using starter dockerfile,service,docker-compose, which seems to have some more joy, allowing me to answer questions about my project, but then fails on:

 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

Which generates the following files:

Dockerfile

# Generated by Cloud66 Starter
FROM ruby:2.3.1

RUN apt-get update -qq && apt-get install -y build-essential nodejs imagemagick libmagickwand-dev

ENV APP_HOME /app
RUN mkdir $APP_HOME
WORKDIR $APP_HOME

ADD Gemfile* $APP_HOME/
RUN bundle install

ADD . $APP_HOME

service.yml

---
services:

##NEWLINE##
  web:
    git_url: git@redacted.git
    git_branch: master
    command: bundle exec puma -p _env:PORT -C ./config/puma.rb
    build_command: /bin/sh -c "RAILS_ENV=_env:RAILS_ENV bundle exec rake db:schema:load"
    deploy_command: /bin/sh -c "RAILS_ENV=_env:RAILS_ENV bundle exec rake db:migrate"
    build_root: .

    ports:
      - container: 3000
        http: 80
        https: 443
        
        
    

    env_vars:
      RAILS_ENV: production
    
      RACK_ENV: production
    

##NEWLINE##
  worker:
    git_url: git@redacted.git
    git_branch: master
    command: bundle exec rake jobs:work
    
    
    build_root: .

    

    env_vars:
      RAILS_ENV: production
    
      RACK_ENV: production
    



##NEWLINE##
databases:
  - 

The app in question is a Rails app based off suspenders.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (10 by maintainers)

Most upvoted comments

the easiest way to work with starter right now it to download the latest version and copy it to the /usr/local/bin directory.

@kamerblauwlicht Having taken another look at this, it appears the version on homebrew is 1.0.2, which would possibly explain why none of the commands I was trying worked.

I would love to download the executable for version 1.0.3, but I’m not entirely sure how to do this. If someone can point me in the direction direction (or maybe update the homebrew version to the latest) then I’ll give this another try.

Thank you.

It seems that the brew version is still on 1.0.2. When i used the executable version of 1.0.3 it works.