Skip to content

Instantly share code, notes, and snippets.

@suryagaddipati
Last active August 29, 2015 14:19
Show Gist options
  • Save suryagaddipati/58d6a4c6dfe1a0f660ac to your computer and use it in GitHub Desktop.
Save suryagaddipati/58d6a4c6dfe1a0f660ac to your computer and use it in GitHub Desktop.
Docker Compose Dotci

DotCi requires you to use Docker compose https://docs.docker.com/compose/

.ci.yml has three main sections

##Run

  • Run a service from docker-compose.yml with default CMD defined in the Dockerfile

     run: 
      test:
    
  • Run a service from docker-compose.yml with command defined in .ci.yml

     run: 
       test: 'npm test'
    
  • Run multiple services/tests in parallel

    run: 
     test: 'rspec'
     test: 'cucumber'
     integration:
    

    This will launch 3 test services in parallel

Plugins

Run plugins defined in .ci.yml

Notifications

Run notifications defined in .ci.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment