Skip to content

leopardslab/dunner-cookbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dunner-cookbook

A collection of Dunner recipes, which can be used as templates during initialization on Dunner in a project.

Cookbook Structure

dunner-cookbook
└──recipes
	└── <recipe_name>
		└── <.dunner.yml>
		└── <metadata.yml>
	└── <recipe_name>
		└── <.dunner.yml>
		└── <metadata.yml>
└──cookbook.yml

How to add your Dunner recipe?

Create us a pull request with your dunner task file in the structure as shown above.

  • The recipes folder contain a directory which is used as the name of recipe, with no spaces in the name, e.g. go_github_release.
  • .dunner.yml file inside recipe folder should define the docker tasks, well documented.
  • Every recipe should have a metadata.yml which describes the recipe, with name, description, version, preInstallCmd and postInstallCmd values set.
  • The cookbook.yml file in dunner-cookbook repository contains the list of all available recipes. Add the name of your recipe to this list. It should match with the folder name you created in recipes folder.

A sample dunner task file:

deploy:
- image: 'emeraldsquad/sonar-scanner'
  commands:
  - ['sonar', 'scan']
- image: 'golang'
  commands:
  - ['go', 'install']
- image: 'mesosphere/aws-cli'
  commands:
  - ['aws', 'elasticbeanstalk update-application --application-name myapp']
  envs:
   - AWS_ACCESS_KEY_ID=`$AWS_KEY`
   - AWS_SECRET_ACCESS_KEY=`$AWS_SECRET`
   - AWS_DEFAULT_REGION=us-east1
- follow: 'status' #This refers to another task and can pass args too
  args: 'prod'
status:
- image: 'mesosphere/aws-cli'
  commands:
  - ['aws', 'elasticbeanstalk describe-events --environment-name $1']
  # This uses args passed to the task, `$1` means first arg
  envs:
   - AWS_ACCESS_KEY_ID=`$AWS_KEY`
   - AWS_SECRET_ACCESS_KEY=`$AWS_SECRET`
   - AWS_DEFAULT_REGION=us-east1

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published