Virtualized development - Lone Star PHP

983 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
983
On SlideShare
0
From Embeds
0
Number of Embeds
24
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Virtualized development - Lone Star PHP

  1. 1. VIRTUALIZED DEVELOPMENT Juozas Kaziukėnas // juokaz.com // @juokaz
  2. 2. Juozas Kaziukėnas, Lithuanian You can call me Joe More info http://juokaz.com
  3. 3. LOCAL DEV SETUP IS HARD
  4. 4. MIRROR PRODUCTION
  5. 5. IFTHINGS WORK LOCALLY, THEY WILL WORK IN PRODUCTION*
  6. 6. REPLICATING BUGS
  7. 7. DATABASE SLICE
  8. 8. TIME CONSUMING
  9. 9. EVERYTHING STILL BREAKS
  10. 10. NEEDTO ISOLATE
  11. 11. NEEDTO AUTOMATE
  12. 12. THE COOLESTTHING I LEARNED LASTYEAR
  13. 13. BECAUSE I'M LAZY
  14. 14. VAGRANT
  15. 15. VAGRANT Noun A person without a settled home or regular work who wanders from place to place and lives by begging.
  16. 16. TOOLTO BUILD A LOCAL CLOUD
  17. 17.   BUILDINGVMS
  18. 18. RUBYGEM FOR MANAGING VIRTUAL MACHINES
  19. 19. BASEBOX
  20. 20. PORT FORWARDING
  21. 21. SHARED FOLDERS
  22. 22. NO NEEDTO DEPLOY
  23. 23. FEELS LOCAL
  24. 24. SETUP NOW
  25. 25. INSTALLVAGRANT
  26. 26. GIT CLONE REPO
  27. 27. VERSION CONTROL
  28. 28. SHAREVMS
  29. 29. VAGRANT UP
  30. 30.   PREDICTABLE, STABLE AND MANAGEABLE
  31. 31. VAGRANT SSH
  32. 32. LOCAL CLOUD
  33. 33. CONFIGURINGTHE MACHINE
  34. 34. SHELL SCRIPTS ARE NOT A SOLUTION
  35. 35. BRAINFUCK
  36. 36. CHEF OR PUPPET
  37. 37. PUPPET
  38. 38. RECIPES DESCRIBING A SERVER
  39. 39. PUPPET EXAMPLE package { "apache2": ensure => present, }
  40. 40. PUPPET EXAMPLE package { "apache2": ensure => present, } $php = ["php5","php5-xdebug"] package { $php: ensure => "installed" }
  41. 41. PUPPET EXAMPLE package { "apache2": ensure => present, } $php = ["php5","php5-xdebug"] package { $php: ensure => "installed" } service { "apache2": ensure => running, enable => true, require => Package['apache2'], subscribe => [File["/etc/apache2/mods-enabled/rewrite.load"], File["/etc/apache2/sites-available/default"]], }
  42. 42. PUPPET EXAMPLE file { "/etc/apache2/sites-available/default": ensure => present, source => "/vagrant/manifests/default", }
  43. 43. PUPPET EXAMPLE file { "/etc/apache2/sites-available/default": ensure => present, source => "/vagrant/manifests/default", } exec { "install_phpunit": command => "/usr/bin/pear install pear.phpunit.de/PHPUnit", require => [Package['php-pear'], Exec['/usr/bin/pear config-set auto_discover 1']], creates => "/usr/bin/phpunit" }
  44. 44. IMPROVE DEVELOPMENT
  45. 45. MADE DEVELOPERSVERY HAPPY
  46. 46. MADE HIRINGVERY EASY
  47. 47. MADE COMPLICATED DEVELOPMENT EASY
  48. 48. NO LOCAL MACHINE MESSING UP 
  49. 49. THANKS! Juozas Kaziukėnas @juokaz

×