More Related Content
Similar to Fig for Local Development (20)
Fig for Local Development
- 1. Fig for Local Development
Orchestrated Containerization is the new
virtualization
James Turnbull
@kartar
1
- 2. Who
• VP of Engineering at Kickstarter
• Advisor at Docker
• Open source chap
• Funny accent
2
- 9. Why operations care...
• Make the lifecycle more efficient
• Eliminate inconsistencies
• Support segregation of duties
9
- 10. Why developers care...
• Clean, safe, hygienic and portable
• No worries about dependencies
• Encourage good architecture
10
- 12. Introducing Fig
• Fast, isolated development environments using Docker.
• Quick and easy to start.
• Manages a collection of containers.
12
- 15. Fig basics
• Build your apps with Dockerfile's.
• Combine applications and images with a fig.yml file.
15
- 16. The Dockerfile
FROM ruby
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev
RUN mkdir /myapp
WORKDIR /myapp
ADD Gemfile /myapp/Gemfile
RUN bundle install
ADD myapp /myapp
16
- 17. The fig.yml file
db:
image: postgres
ports:
- "5432"
web:
image: jamtur01/figdemo
command: bundle exec rackup -p 3000
ports:
- "3000:3000"
links:
- db
17
- 18. Fig details
• Can build images, use existing or pull images
• Can map ports, manage links and create volumes
• Still single host centric.
18