ConcourseCi Dockerimage

21
05/19/2016 Etourneau Gwenn @The_shinji62 Concourse Managing your docker Image

Transcript of ConcourseCi Dockerimage

05/19/2016 Etourneau Gwenn

@The_shinji62

Concourse Managing your docker Image

About meEtourneau Gwenn

Sr Solution Architect

Bef.: Platform Architect

https://github.com/shinji62

the_shinji62

Pivotal

• Spring Framework • RabbitMQ • Concourse

• Cloud Foundry • Pivotal Tracker • Gemfire

Agenda

• Docker Image • Pipeline • Demo • Q&A

Docker image

builddockerFile image

Building docker Image

build

image

Source management

dockerFile

Docker hub

If my dockerFile change I need to build a new Image

Trigger 1

dockerFile

If my dockerFile change I need to build a new Image

Trigger 1

dockerFile

Git-Resource checking for new commit

https://github.com/concourse/git-resource

dockerFile

FROM alpine:latest

MAINTAINER blabla <xx@yy>

RUN apk upgrade

RUN apk add --update \ bash \ git \ tar \ openssh-client \ openssh \ zip

If there is a new version of alpine:latest I want to generate a new docker image

Trigger 2

alpine:latest Docker-Image Resource checking for new version of this image

https://github.com/concourse/docker-image-resource

dockerFile

Building docker Image

buildimage

Store and build Image

buildimage

Docker-Image Resource can build and push the docker image

https://github.com/concourse/docker-image-resource

dockerFile

Building docker Image

buildimage

Concourse pipelineChecking for you new docker image and new commit in parallel

If one of them have new version this job will be trigger

Concourse pipelineBump the version

Concourse pipelineBuild new docker image tag as latest tag with the version bump earlier

Concourse pipelineTag the git repository using the version

Demo

Q & A

Thank You !!