O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Fig for Local Development

1.176 visualizações

Publicada em

Docker and Fig for local development made awesome.

Publicada em: Software
  • Seja o primeiro a comentar

Fig for Local Development

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

×