containers #101 meetup: docker build & test flow

17
Containers #101 Docker Build & Test Flow May 2016

Upload: codefresh

Post on 15-Apr-2017

29 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Containers #101 Meetup: Docker Build & Test Flow

Containers #101Docker Build & Test FlowMay 2016

Page 2: Containers #101 Meetup: Docker Build & Test Flow

About the meetup • A series webinars & in person meetups• Hands On• Online session are recorded• Question and Topics suggestion email

[email protected]

Recording available athttps://vimeo.com/channels/containers101

Page 3: Containers #101 Meetup: Docker Build & Test Flow

Build & Test Docker images

May 2016

Page 4: Containers #101 Meetup: Docker Build & Test Flow

About me • Developer, entrepreneur and technology

enthusiast• Live in the Silicon Valley since 2008 • Organizer of Containers 101• Founder and CEO of Codefresh

@RazielTabib

Page 5: Containers #101 Meetup: Docker Build & Test Flow

About CodefreshContinuous Integration & Collaboration platform for Docker images and microservices

@codefreshwww.codefresh.io

Codefresh customers:

Page 6: Containers #101 Meetup: Docker Build & Test Flow

What we will see today• Docker intro• Docker benefits for the Agile teams• Live Demo• Q&A

Recording available athttps://vimeo.com/channels/containers101

Page 7: Containers #101 Meetup: Docker Build & Test Flow

Intro to Docker• A technology for building/running software in an isolated

operating environment• Provide process/resource isolation while running on a

single shared OS kernel• Different than VM -> lighter, faster & easily integrated

VMDocker

Page 8: Containers #101 Meetup: Docker Build & Test Flow

TerminologyDocker ImagesBlueprints of our application

ubuntu & node

mongo

ubuntu & Go

redis

Docker image

Docker image

Docker image

Docker image

Page 9: Containers #101 Meetup: Docker Build & Test Flow

TerminologyDocker ImagesBlueprints of our application

Docker ContainerCreated from docker images and are real instances of our application

Docker container

Docker container

Docker containerubuntu & node

mongo

ubuntu & Go

redis

Docker image

Docker image

Docker image

Docker image

Page 10: Containers #101 Meetup: Docker Build & Test Flow

TerminologyDocker ImagesBlueprints of our application

Docker ContainerCreated from docker images and are real instances of our application

Docker DaemonBuilding, running and distributing Docker containers

Docker ClientRun on our local machine and connect to the daemon

Docker machineSetup Docker hosts (locally or remotely)

Docker SwarmNative clustering for Docker

Page 11: Containers #101 Meetup: Docker Build & Test Flow

Docker ComposeCompose is a tool for defining and running multi-container Docker applications.

Complete documentation @https://docs.docker.com/compose/overview/

Page 12: Containers #101 Meetup: Docker Build & Test Flow

Docker Compose exampleVersion: ‘2’Services: Web: build: . mongo: image: mongo:latest

docker-compose.yml

nodejs Mongo

Lets chat app

Page 13: Containers #101 Meetup: Docker Build & Test Flow

Docker Toolbox

https://www.docker.com/products/docker-toolbox

Page 14: Containers #101 Meetup: Docker Build & Test Flow

Benefits for Dev & Test➢ Continuous Integration➢ Parallelized integration tests

Staging ProductionBuild

<>

Commit/PR

Unit Test

<>

Commit/PR

<>

Commit/PR

Integration Test

composition composition composition

Unit & Integration Test

Page 15: Containers #101 Meetup: Docker Build & Test Flow

Benefits for Dev & Test➢ Continuous Integration➢ Parallelized integration tests➢ Collaboration

➢ Feature Preview➢ Early manual and UX tests

Page 16: Containers #101 Meetup: Docker Build & Test Flow

Demo

Page 17: Containers #101 Meetup: Docker Build & Test Flow

Additional resources• Codefresh blog www.codefresh.io/blog• Vimeo channel www.vimeo.com/channels/containers101• Containers #101

http://www.meetup.com/Containers-101-meetup/• Check us out @

www.codefresh.io

@codefresh