Dunner

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2019 License: MIT Imports: 1 Imported by: 0

README

Dunner

Codacy Badge

Dunner is a task runner tool like Grunt but uses Docker images like CircleCI do. You can define tasks and steps of the tasks in your .dunner.yaml file and then run these steps with Dunner do taskname

Example .dunner.yaml

deploy:
- image: 'emeraldsquad/sonar-scanner'
  command: ['sonar', 'scan']
- image: 'golang'
  command: ['go', 'install']
- image: 'mesosphere/aws-cli'
  command: ['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
- name: '@status' #This refers to another task and can pass args too
  args: 'prod'
status:
- image: 'mesosphere/aws-cli'
  command: ['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

Now you can use as,

  1. Dunner do deploy
  2. Dunner do status prod

NOTE

This work is still in progress. See the development plan.

Development Plan

v0.1
  • Ability to define set of tasks and steps and run the task
  • Mount current dir as a volume
  • Ability to pass arguments to tasks
v1.0
  • Ability to add ENV variables
  • Ability to define the sub-dir that should be mounted to the task containers
  • Ability to mount other dirs to the task containers
  • Ability to use a task as a step for another task
  • Ability to get ENV, param, etc values from host environment variables or .env file

Guides

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL