32
13/03/2017 Etourneau Gwenn @The_shinji62 Concourse & Services

Concourse and Database

Embed Size (px)

Citation preview

13/03/2017 Etourneau Gwenn

@The_shinji62

Concourse & Services

About meEtourneau Gwenn

Sr Solution Architect

https://github.com/shinji62

https://twitter.com/the_shinji62

Pivotal

• Spring Framework • RabbitMQ • Concourse

• Cloud Foundry • Pivotal Tracker • Gemfire

Agenda

• Concourse • Docker Compose • Demo • Q&A

Concourse

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

Concourse but …

• No core support for service • No docker daemon • Only support external resource

External service

Concourse

Garden

External

• Running service (databases) to test against • Avoiding snowflakes • Strict isolation between job • Some caching

Wanted

DCIND* ?

Docker in Docker ?

DCIND* ?

Docker in Docker ?

DCINDING* ?

Docker in Docker in Garden ?

Docker in Docker in Garden• Just one solution example • Works :) • Generic • More than one service Redis + MySql + …. • One file to setup

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

Garden

image_resource: type: docker-image source: repository: dcind/….

VM Operating System

+testing task

Task inside dc compose

OR

Task outside dc compose

Garden

image_resource: type: docker-image source: repository: dcind/….

VM Operating System

testing task

Concourse

• Jobs • Resource } PIPELINE

• Task

Task testing.yml

Docker image dcind

Start Docker daemon

use cached image

run compose app

Docker Compose docker-compose.yml

] Database

Task

Very useful “links”

Docker ComposeLinks

Links inject environment variable which help for service discovery for container to container

Resourcesource code repos

Docker image to be cached

Job

Demo

Demo

https://github.com/shinji62/concourse-demo-meetup-5/

Online Resource

Documentation

Tutorials• Official documentation http://concourse.ci

• S&B https://github.com/starkandwayne/concourse-tutorial • Flight-School http://concourse.ci/flight-school.html

Slack

http://concourseci.slack.com/

Q & A

Thank You !!