SlideShare a Scribd company logo
1 of 14
Download to read offline
KM Coffee & Code #3HexBrain team
Vagrant & PHP
Практика використання Vagrant у розробці
PHP додатків
KM Coffee & Code #3HexBrain team
Що таке Vagrant
Інструментарій для формування,
встановлення та керування образами
віртуальних машин для вирішення задач
розробки та тестування
KM Coffee & Code #3HexBrain team
Швидке розгортання
vagrant box add precise32 http://files.vagrantup.com/precise32.box
vagrant init precise32
vagrant up
KM Coffee & Code #3HexBrain team
PuPHPet or Puppet
PuPHPet — це GUI конфігуратор для Vagrant
automation tool. Використовує Puppet для
встановлення та налаштування пакетів
https://puphpet.com/
KM Coffee & Code #3HexBrain team
Що таке Puppet
Дозволяє керувати налаштуванням
програмного забезпечення та самої ОС
Як і Vagrant написаний на Ruby.
Альтернативи: Ansible (Python), Chef (Ruby)
KM Coffee & Code #3HexBrain team
Vagrant & PuPHPet
Як це працює
configValues = YAML.load_file("#{dir}/puphpet/config.yaml")
KM Coffee & Code #3HexBrain team
PuPHPet. Кінець всім сподіванням
Що робити коли в GUI списку PuPHPet’у
немає потрібного пакету?
KM Coffee & Code #3HexBrain team
Це ж Puppet
KM Coffee & Code #3HexBrain team
На прикладі NodeJS
1. puphpet/puppet/Puppetfile
mod 'nodejs', :git => 'https://github.com/willdurand/puppet-nodejs.git'
2. puphpet/puppet/manifest.pp
class { 'nodejs':
version => 'stable',
target_dir => '/bin',
}
3. vagrant provision
KM Coffee & Code #3HexBrain team
Життя після `vagrant up`
1. /etc/hosts
2. vagrant ssh
3. DB connect
4. Xdebug
KM Coffee & Code #3HexBrain team
Плюси та мінуси
+ Гнучкість конфігурації
+ Портативність
+ Швидкість налаштування,
переналаштування
+ Тестування коду з
різними версіями софту
(PHP 5.4, 5.5, 5.6)
- Швидкість
- Дисковий простір на кожну
віртуальну машину (2-5 Гб)
KM Coffee & Code #3HexBrain team
Links
http://vagrantup.com/
http://vagrantcloud.com/
http://puppetlabs.com/
http://puphpet.com/
KM Coffee & Code #3HexBrain team
Дякуємо за увагу!
KM Coffee & Code #3HexBrain team
Live Session!

More Related Content

Similar to Vagrant & php

Pro Magento MeetUp #9 - Deep dive into Magento2 queuing functionality.pdf
Pro Magento MeetUp #9 - Deep dive into Magento2 queuing functionality.pdfPro Magento MeetUp #9 - Deep dive into Magento2 queuing functionality.pdf
Pro Magento MeetUp #9 - Deep dive into Magento2 queuing functionality.pdfPro Magento Community
 
""Streaming solution" How to ensure data streaming from databases to cloud so...
""Streaming solution" How to ensure data streaming from databases to cloud so...""Streaming solution" How to ensure data streaming from databases to cloud so...
""Streaming solution" How to ensure data streaming from databases to cloud so...Fwdays
 
БОГДАН ЛОЗИНСЬКИЙ «Технічні аспекти для нетехнічних: автоматизація та баг реп...
БОГДАН ЛОЗИНСЬКИЙ «Технічні аспекти для нетехнічних: автоматизація та баг реп...БОГДАН ЛОЗИНСЬКИЙ «Технічні аспекти для нетехнічних: автоматизація та баг реп...
БОГДАН ЛОЗИНСЬКИЙ «Технічні аспекти для нетехнічних: автоматизація та баг реп...GoQA
 
"Laravel Tips & Tricks - 7 Steps to Dramatically Improve Performance", Yehor ...
"Laravel Tips & Tricks - 7 Steps to Dramatically Improve Performance", Yehor ..."Laravel Tips & Tricks - 7 Steps to Dramatically Improve Performance", Yehor ...
"Laravel Tips & Tricks - 7 Steps to Dramatically Improve Performance", Yehor ...Fwdays
 
"Key considerations in implementing a distributed message-sending system usin...
"Key considerations in implementing a distributed message-sending system usin..."Key considerations in implementing a distributed message-sending system usin...
"Key considerations in implementing a distributed message-sending system usin...Fwdays
 
Про програму Scratch
Про програму ScratchПро програму Scratch
Про програму Scratchtawa12345
 
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)Drupaltour
 
Як покращити Python web UI тести
Як покращити Python web UI тестиЯк покращити Python web UI тести
Як покращити Python web UI тестиRomanPobotin1
 
Android: Інструменти програміста
Android: Інструменти програмістаAndroid: Інструменти програміста
Android: Інструменти програмістаAnatoliy Odukha
 
урок№10 паскаль
урок№10 паскальурок№10 паскаль
урок№10 паскальuchitel18
 
Mka python jr-urok_01_ua_1563258764
Mka python jr-urok_01_ua_1563258764Mka python jr-urok_01_ua_1563258764
Mka python jr-urok_01_ua_1563258764PavloTsiura
 
горбань а. г. програмування в Java (2008)
горбань а. г. програмування в Java (2008)горбань а. г. програмування в Java (2008)
горбань а. г. програмування в Java (2008)vlad hats
 

Similar to Vagrant & php (15)

Pro Magento MeetUp #9 - Deep dive into Magento2 queuing functionality.pdf
Pro Magento MeetUp #9 - Deep dive into Magento2 queuing functionality.pdfPro Magento MeetUp #9 - Deep dive into Magento2 queuing functionality.pdf
Pro Magento MeetUp #9 - Deep dive into Magento2 queuing functionality.pdf
 
""Streaming solution" How to ensure data streaming from databases to cloud so...
""Streaming solution" How to ensure data streaming from databases to cloud so...""Streaming solution" How to ensure data streaming from databases to cloud so...
""Streaming solution" How to ensure data streaming from databases to cloud so...
 
БОГДАН ЛОЗИНСЬКИЙ «Технічні аспекти для нетехнічних: автоматизація та баг реп...
БОГДАН ЛОЗИНСЬКИЙ «Технічні аспекти для нетехнічних: автоматизація та баг реп...БОГДАН ЛОЗИНСЬКИЙ «Технічні аспекти для нетехнічних: автоматизація та баг реп...
БОГДАН ЛОЗИНСЬКИЙ «Технічні аспекти для нетехнічних: автоматизація та баг реп...
 
"Laravel Tips & Tricks - 7 Steps to Dramatically Improve Performance", Yehor ...
"Laravel Tips & Tricks - 7 Steps to Dramatically Improve Performance", Yehor ..."Laravel Tips & Tricks - 7 Steps to Dramatically Improve Performance", Yehor ...
"Laravel Tips & Tricks - 7 Steps to Dramatically Improve Performance", Yehor ...
 
лр7 ethernet
лр7 ethernet лр7 ethernet
лр7 ethernet
 
7_0711.pptx
7_0711.pptx7_0711.pptx
7_0711.pptx
 
"Key considerations in implementing a distributed message-sending system usin...
"Key considerations in implementing a distributed message-sending system usin..."Key considerations in implementing a distributed message-sending system usin...
"Key considerations in implementing a distributed message-sending system usin...
 
Про програму Scratch
Про програму ScratchПро програму Scratch
Про програму Scratch
 
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)
DrupalTour. Chernivtsi — Composer (Sergiy Skripchuk, InternetDevels)
 
Як покращити Python web UI тести
Як покращити Python web UI тестиЯк покращити Python web UI тести
Як покращити Python web UI тести
 
Android: Інструменти програміста
Android: Інструменти програмістаAndroid: Інструменти програміста
Android: Інструменти програміста
 
3 клас урок 28 як створювати програми
3 клас урок 28 як створювати програми3 клас урок 28 як створювати програми
3 клас урок 28 як створювати програми
 
урок№10 паскаль
урок№10 паскальурок№10 паскаль
урок№10 паскаль
 
Mka python jr-urok_01_ua_1563258764
Mka python jr-urok_01_ua_1563258764Mka python jr-urok_01_ua_1563258764
Mka python jr-urok_01_ua_1563258764
 
горбань а. г. програмування в Java (2008)
горбань а. г. програмування в Java (2008)горбань а. г. програмування в Java (2008)
горбань а. г. програмування в Java (2008)
 

Vagrant & php

  • 1. KM Coffee & Code #3HexBrain team Vagrant & PHP Практика використання Vagrant у розробці PHP додатків
  • 2. KM Coffee & Code #3HexBrain team Що таке Vagrant Інструментарій для формування, встановлення та керування образами віртуальних машин для вирішення задач розробки та тестування
  • 3. KM Coffee & Code #3HexBrain team Швидке розгортання vagrant box add precise32 http://files.vagrantup.com/precise32.box vagrant init precise32 vagrant up
  • 4. KM Coffee & Code #3HexBrain team PuPHPet or Puppet PuPHPet — це GUI конфігуратор для Vagrant automation tool. Використовує Puppet для встановлення та налаштування пакетів https://puphpet.com/
  • 5. KM Coffee & Code #3HexBrain team Що таке Puppet Дозволяє керувати налаштуванням програмного забезпечення та самої ОС Як і Vagrant написаний на Ruby. Альтернативи: Ansible (Python), Chef (Ruby)
  • 6. KM Coffee & Code #3HexBrain team Vagrant & PuPHPet Як це працює configValues = YAML.load_file("#{dir}/puphpet/config.yaml")
  • 7. KM Coffee & Code #3HexBrain team PuPHPet. Кінець всім сподіванням Що робити коли в GUI списку PuPHPet’у немає потрібного пакету?
  • 8. KM Coffee & Code #3HexBrain team Це ж Puppet
  • 9. KM Coffee & Code #3HexBrain team На прикладі NodeJS 1. puphpet/puppet/Puppetfile mod 'nodejs', :git => 'https://github.com/willdurand/puppet-nodejs.git' 2. puphpet/puppet/manifest.pp class { 'nodejs': version => 'stable', target_dir => '/bin', } 3. vagrant provision
  • 10. KM Coffee & Code #3HexBrain team Життя після `vagrant up` 1. /etc/hosts 2. vagrant ssh 3. DB connect 4. Xdebug
  • 11. KM Coffee & Code #3HexBrain team Плюси та мінуси + Гнучкість конфігурації + Портативність + Швидкість налаштування, переналаштування + Тестування коду з різними версіями софту (PHP 5.4, 5.5, 5.6) - Швидкість - Дисковий простір на кожну віртуальну машину (2-5 Гб)
  • 12. KM Coffee & Code #3HexBrain team Links http://vagrantup.com/ http://vagrantcloud.com/ http://puppetlabs.com/ http://puphpet.com/
  • 13. KM Coffee & Code #3HexBrain team Дякуємо за увагу!
  • 14. KM Coffee & Code #3HexBrain team Live Session!