getting started with drupal vm

39
ENTERPRISE DRUPAL GETTING STARTED WITH DRUPAL VM

Upload: opin-software-inc

Post on 17-Feb-2017

573 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Getting Started with Drupal VM

ENTERPRISE DRUPAL

GETTING STARTED WITH

DRUPAL VM

Page 2: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Who here uses a local development environment?

Page 3: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Who here uses MAMP, WAMP, or XAMPP?

Page 4: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Who here uses Virtual Machines or knows what a Virtual Machine is?

Page 5: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Who here uses and/or knows what Vagrant & Ansible are?

Page 6: Getting Started with Drupal VM

ENTERPRISE DRUPAL

If you run a web server, a database server and your scripting language(s) of choice on your main machine and you

have not yet switched to using virtualization in your workflow then this

presentation is for you!

Page 7: Getting Started with Drupal VM

ENTERPRISE DRUPAL

https://github.com/geerlingguy/drupal-vm

Page 8: Getting Started with Drupal VM

ENTERPRISE DRUPAL

What is Drupal VM?

A virtual machine for local Drupal development, built with Vagrant +

Ansible

Page 9: Getting Started with Drupal VM

ENTERPRISE DRUPAL

What is a Virtual Machine?A virtual machine (VM) is an emulation of a particular

computer system. Virtual machines operate based on the computer architecture and functions of a real or

hypothetical computer, and their implementations may involve specialized hardware, software, or a combination

of both.

Page 10: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Page 11: Getting Started with Drupal VM

ENTERPRISE DRUPAL

• VMs can have different configurations than your local machine, and more importantly, different from VM to VM.

• VMs can mimic your production environment.

• You can have multiple VMs for the same projects; utilizing a Dev., Test, Production workflow.

• All team members can have the same setup eliminating the ‘it works on my computer’ troubleshooting.

VM Benefits

Page 12: Getting Started with Drupal VM

ENTERPRISE DRUPAL

What is Vagrant?Vagrant provides easy to configure, reproducible, and portable work

environments built on top of industry-standard technology and controlled by a single consistent workflow to help maximize the productivity and

flexibility of you and your team.

To achieve its magic, Vagrant stands on the shoulders of giants. Machines are provisioned on top of VirtualBox, VMware or any other provider. Then

awesome and new tools such as Ansible can be used to automatically install and configure software on the machine.

Page 13: Getting Started with Drupal VM

ENTERPRISE DRUPAL

1. Setup

Download and install Vagrant within minutes on Mac OS X, Windows, or a popular distribution of

Linux. No complicated setup process, just a simple to use OS-standard installer.

Page 14: Getting Started with Drupal VM

ENTERPRISE DRUPAL

2. Configure

Create a single file for your project to describe the type of machine you want, the software that needs

to be installed, and the way you want to access the machine. Store this file with your project code.

Page 15: Getting Started with Drupal VM

ENTERPRISE DRUPAL

3. WorkRun a single command — "vagrant up" — and sit back as Vagrant puts together your complete

development environment. Say goodbye to the "works on my machine" excuse as Vagrant creates identical development environments for everyone

on your team.

Page 16: Getting Started with Drupal VM

ENTERPRISE DRUPAL

What is Ansible?

Ansible is a powerful automation engine that makes systems and applications simple to deploy.

No custom scripting or custom code. No agents. All using an automation language that's easy for

anyone to understand and learn.

Page 17: Getting Started with Drupal VM

ENTERPRISE DRUPAL

"I wrote Ansible because none of the existing tools fit my brain. I wanted a tool that I could not use for 6 months, come back later, and still remember how it

worked.”

-Michael DeHaan Ansible project founder

Page 18: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Simply Clear

A simple automation language allows Ansible to be used by anyone - sysadmins, developers, IT

managers. It's easy to write, read, maintain and evolve - without gnarly scripts or custom code. It is

also used extensively in Drupal 8……YAML

Page 19: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Example YAML

Page 20: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Simply FastAnsible is so simple that it requires almost no learning curve when you're getting started and no reeducation when you come back. And because it's cloud-native

(relying on SSH keys with no software to install on remote machines), you don’t have to worry about setup.

Prototype quickly. Automate faster.

Page 21: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Simply PowerfulAnsible is several tools in one: configuration

management, application deployment, workflow orchestration and continuous delivery. Ansible

modules are a comprehensive toolbox for automation - and they are bundled in Ansible core - batteries

included.

Page 22: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Simply Efficient

Ansible doesn't require an agent - it uses SSH (on Linux/Unix) or PowerShell (on Windows). Not

having an agent means less software to manage. It's lightweight and unobtrusive, and gets out of

the way when it's done.

Page 23: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Simply Secure

Not having an agent means that Ansible is inherently more secure - with nothing running or leftover on machines you manage. Ansible uses

built-in OS authentication and OpenSSH - the most peer-reviewed security component available.

Page 24: Getting Started with Drupal VM

ENTERPRISE DRUPAL

What is Drupal VM?

A virtual machine for local Drupal development, built with Vagrant +

Ansible

Page 25: Getting Started with Drupal VM

ENTERPRISE DRUPAL

• Because it does all the work for us and lets us just start developing.

• Because it is constantly being updated and is enhanced almost weekly.

• Because it is easy to configure for our needs.

• Because it is MADE FOR DRUPAL!

Why Drupal VM?

Page 26: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Apache

2.4.x is pre-configured

Page 27: Getting Started with Drupal VM

ENTERPRISE DRUPAL

PHP

5.3, 5.5.x, and even PHP 7

Page 28: Getting Started with Drupal VM

ENTERPRISE DRUPAL

MySQL

5.5.x or MariaDB

Page 29: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Drush

Drush is included and is configurable

Page 30: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Drupal Console

If you are using Drupal 8, Drupal VM is ready for you!

Page 31: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Drupal

6.x, 7.x, and 8.x.x are all highly configurable!!!

Page 32: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Some other great additions…

Page 33: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Apache Solr

4.10.x is included and configurable

Page 34: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Selenium

Is included and ready for testing your sites via Behat

Page 35: Getting Started with Drupal VM

ENTERPRISE DRUPAL

• Memcached.

• Varnish.

• XHProf, for profiling your code.

• XDebug, for debugging your code.

• Adminer, for accessing databases directly.

• Pimp my Log, for easy viewing of log files.

• MailHog, for catching and debugging email.

And even more…

Page 36: Getting Started with Drupal VM

ENTERPRISE DRUPAL

• Website:

• http://www.drupalvm.com

• Github:

• https://github.com/geerlingguy/drupal-vm

• Guide:

• https://github.com/geerlingguy/drupal-vm#quick-start-guide

How do you get started?

Page 37: Getting Started with Drupal VM

ENTERPRISE DRUPAL

Live Demo!

Page 38: Getting Started with Drupal VM

ENTERPRISE DRUPAL

https://github.com/geerlingguy

Page 39: Getting Started with Drupal VM

ENTERPRISE DRUPAL

THANK YOU!OPIN Software Inc.

@opin_software

/opin.software

/company/opin-software

Steve Lavigne, Senior Software Engineer, OPIN Software Inc.