fig for local development
TRANSCRIPT
Fig for Local DevelopmentOrchestrated Containerization is the new virtualization
James Turnbull@kartar
1
Who• VP of Engineering at Kickstarter
• Advisor at Docker
• Open source chap
• Funny accent
2
Who are you folks?
4
What's this all about?
5
What is Docker?
6
Container virtualization
7
Build, ship, run
8
Why operations care...• Make the lifecycle more efficient
• Eliminate inconsistencies
• Support segregation of duties
9
Why developers care...• Clean, safe, hygienic and portable
• No worries about dependencies
• Encourage good architecture
10
But it's not simple to build a stack
11
Introducing Fig• Fast, isolated development environments using Docker.
• Quick and easy to start.
• Manages a collection of containers.
12
Installing Fig• Install Docker
• Install Fig
• Via binary
• Via pip
13
Installing Fig$ sudo pip install -U fig$ fig --version
14
Fig basics• Build your apps with Dockerfile's.
• Combine applications and images with a fig.yml file.
15
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
The fig.yml filedb:image: postgresports:- "5432"web:image: jamtur01/figdemocommand: bundle exec rackup -p 3000ports:- "3000:3000"links:- db
17
Fig details• Can build images, use existing or pull images
• Can map ports, manage links and create volumes
• Still single host centric.
18
Start Fig$ fig upCreating fig_db_1...Creating fig_web_1.... . .
19
Demo
20
Fig benefits• Build complex local stacks.
• Consistent and shareable.
• No more..
21
22
Questions?
23