fig for local development

23
Fig for Local Development Orchestrated Containerization is the new virtualization James Turnbull @kartar 1

Upload: james-turnbull

Post on 12-Jul-2015

477 views

Category:

Software


1 download

TRANSCRIPT

Page 1: Fig for Local Development

Fig for Local DevelopmentOrchestrated Containerization is the new virtualization

James Turnbull@kartar

1

Page 2: Fig for Local Development

Who• VP of Engineering at Kickstarter

• Advisor at Docker

• Open source chap

• Funny accent

2

Page 3: Fig for Local Development

The Docker Book

www.dockerbook.com3

Page 4: Fig for Local Development

Who are you folks?

4

Page 5: Fig for Local Development

What's this all about?

5

Page 6: Fig for Local Development

What is Docker?

6

Page 7: Fig for Local Development

Container virtualization

7

Page 8: Fig for Local Development

Build, ship, run

8

Page 9: Fig for Local Development

Why operations care...• Make the lifecycle more efficient

• Eliminate inconsistencies

• Support segregation of duties

9

Page 10: Fig for Local Development

Why developers care...• Clean, safe, hygienic and portable

• No worries about dependencies

• Encourage good architecture

10

Page 11: Fig for Local Development

But it's not simple to build a stack

11

Page 12: Fig for Local Development

Introducing Fig• Fast, isolated development environments using Docker.

• Quick and easy to start.

• Manages a collection of containers.

12

Page 13: Fig for Local Development

Installing Fig• Install Docker

• Install Fig

• Via binary

• Via pip

13

Page 14: Fig for Local Development

Installing Fig$ sudo pip install -U fig$ fig --version

14

Page 15: Fig for Local Development

Fig basics• Build your apps with Dockerfile's.

• Combine applications and images with a fig.yml file.

15

Page 16: Fig for Local Development

The DockerfileFROM rubyRUN apt-get update -qq && apt-get install -y build-essential libpq-devRUN mkdir /myappWORKDIR /myappADD Gemfile /myapp/GemfileRUN bundle installADD myapp /myapp

16

Page 17: Fig for Local Development

The fig.yml filedb:image: postgresports:- "5432"web:image: jamtur01/figdemocommand: bundle exec rackup -p 3000ports:- "3000:3000"links:- db

17

Page 18: Fig for Local Development

Fig details• Can build images, use existing or pull images

• Can map ports, manage links and create volumes

• Still single host centric.

18

Page 19: Fig for Local Development

Start Fig$ fig upCreating fig_db_1...Creating fig_web_1.... . .

19

Page 20: Fig for Local Development

Demo

20

Page 21: Fig for Local Development

Fig benefits• Build complex local stacks.

• Consistent and shareable.

• No more..

21

Page 22: Fig for Local Development

22

Page 23: Fig for Local Development

Questions?

23