Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Docker for Integration Testing

Docker for Integration Testing

Avatar for Wouter Danes

Wouter Danes

August 28, 2014
Tweet

More Decks by Wouter Danes

Other Decks in Technology

Transcript

  1. Agenda • Ways I use docker during development • Fitting

    docker into your build process • Docker maven integration
  2. CI environment • Spawn build slaves • No port collisions

    • Replace D/T with feature branch deploys • No version / stack collisions in “environment”
  3. build test package test package publish build run start stop

    link expose tag push Docker commands per build step
  4. build test package test package publish build run start stop

    link expose tag push resources compile test package integration- test verify install deploy Maven vs Docker
  5. docker-maven-plugin • Build docker images • Start containers • Link

    containers • Wait for containers to finish initialisation • Expose URLs / port info to integration tests • Clean up • Push images to an index / registry
  6. References • Two docker blog posts:
 www.wouterdanes.net • Docker maven

    plugin:
 github.com/wouterd/docker-maven-plugin • 12 principles for developing containers well:
 12factor.net