Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Concourse and Database

1,036 views

Published on

This slides describes how to use services like database / Mysql inside a Concourse worker

Published in: Software
  • Be the first to comment

  • Be the first to like this

Concourse and Database

  1. 1. 13/03/2017 Etourneau Gwenn @The_shinji62 Concourse & Services
  2. 2. About me Etourneau Gwenn Sr Solution Architect https://github.com/shinji62 https://twitter.com/the_shinji62
  3. 3. Pivotal • Spring Framework • RabbitMQ • Concourse • Cloud Foundry • Pivotal Tracker • Gemfire
  4. 4. Agenda • Concourse • Docker Compose • Demo • Q&A
  5. 5. Concourse
  6. 6. Concourse • Pluggable Resource Interface • Running builds in Containers Natively • Zero Snowflake-able Configuration • Submitting builds from the local file system up to run in CI • Pipeline pipeline pipeline !!! • Reproducible
  7. 7. Concourse
  8. 8. Concourse but … • No core support for service • No docker daemon • Only support external resource
  9. 9. External service Concourse Garden External
  10. 10. • Running service (databases) to test against • Avoiding snowflakes • Strict isolation between job • Some caching Wanted
  11. 11. DCIND* ? Docker in Docker ?
  12. 12. DCIND* ? Docker in Docker ?
  13. 13. DCINDING* ? Docker in Docker in Garden ?
  14. 14. Docker in Docker in Garden • Just one solution example • Works :) • Generic • More than one service Redis + MySql + …. • One file to setup
  15. 15. Worker Workers Garden image_resource: type: docker-image source: repository: ubuntu/…. Garden image_resource: type: docker-image source: repository: ubuntu/…. Garden image_resource: type: docker-image source: repository: ubuntu/…. Garden image_resource: type: docker-image source: repository: ubuntu/…. VM Operating System
  16. 16. Garden image_resource: type: docker-image source: repository: dcind/…. VM Operating System + testing task Task inside dc compose
  17. 17. OR
  18. 18. Task outside dc compose Garden image_resource: type: docker-image source: repository: dcind/…. VM Operating System testing task
  19. 19. Concourse • Jobs • Resource } PIPELINE • Task
  20. 20. Task testing.yml Docker image dcind Start Docker daemon use cached image run compose app
  21. 21. Docker Compose docker-compose.yml ] Database Task Very useful “links”
  22. 22. Docker Compose Links Links inject environment variable which help for service discovery for container to container
  23. 23. Resource source code repos Docker image to be cached
  24. 24. Job
  25. 25. Demo
  26. 26. Demo https://github.com/shinji62/concourse-demo-meetup-5/
  27. 27. Online Resource
  28. 28. Documentation Tutorials • Official documentation http://concourse.ci • S&B https://github.com/starkandwayne/concourse-tutorial • Flight-School http://concourse.ci/flight-school.html
  29. 29. Slack http://concourseci.slack.com/
  30. 30. Q & A
  31. 31. Thank You !!

×