Ambiente de desenvolvimento para aplicações em WordPress com Vagrant, Composer e Git/Revisr.
Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant
-
Upload
luis-henrique-costa -
Category
Technology
-
view
63 -
download
0
Transcript of Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant
![Page 1: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/1.jpg)
Desmistificando um Ambiente de Desenvolvimento WEB com
Vagrant
Luis Costa
fb.com/[email protected]
github.com/luishscosta
![Page 2: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/2.jpg)
Quem sou eu?Formado em Sistemas de Informação
Há 3 anos trabalho com Infra Estrutura
Sys Admin na Tray
Administramos pouco mais de 300 servidores
![Page 3: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/3.jpg)
![Page 4: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/4.jpg)
Quem é Você!?
![Page 5: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/5.jpg)
Ambiente de Desenvolvimento WEB?
![Page 6: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/6.jpg)
S.OAPACHE
PHP
MYSQL
![Page 7: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/7.jpg)
OMG!!!!
WTF!!??
![Page 8: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/8.jpg)
DON’T WORRY!!
![Page 9: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/9.jpg)
![Page 10: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/10.jpg)
O Vagrant....É uma ferramentaCriado em 2010 por Mitchell HashimotoProjeto OpenSourceEscrito em RubyMulti-PlataformaEm 2012 fundou a Hashicorp
https://github.com/mitchellh/vagranthttps://twitter.com/mitchellh
![Page 11: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/11.jpg)
Por que utilizar o Vagrant?
Simplifica o ambiente de desenvolvimento
Possibilita a portabilidade do ambiente
Permite a Flexibilidade
Aumenta a Produtividade
Prove a inovação
Deixa sua equipe mais livre
![Page 12: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/12.jpg)
Ele pode ajudar cada um!!!
![Page 13: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/13.jpg)
Developer
SysAdmin
Frontend
Isola todas dependênciasA configuração é centralizada“Na minha máquina funciona” #NOMORE
Da consistência no desenvolvimento de scriptsPossível testar novas ferramentas
Permite teste de receitasDevolve a paz interior
Preocupação?! Só com os estilos!!Configurou, subiu e desenvolveu o CSSTem independência total sobre o ambiente
![Page 14: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/14.jpg)
Para funcionar é simples!!!
Sistema OperacionalSistema de Virtualização
VirtualBoxParallelsVMWareAWS
Vagranthttps://www.vagrantup.com/downloads
![Page 15: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/15.jpg)
Instalação do Vagrant
WindowsSeja amigo do “Next”
LinuxGerenciador de pacote é a LEI
MacOSBaixe o pacote e instale
![Page 16: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/16.jpg)
BOXVocê precisa disso
TAMBÉM
![Page 17: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/17.jpg)
A BOXÉ a “Maquina” base
É uma junção de dados
Prove um padrão para o compartilhamento
Qualquer um utiliza
Adequa a qualquer plataforma
![Page 18: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/18.jpg)
Ainda falando sobre BOX...
Você pode baixar sua pelo Google, GitHub....
Você pode baixar a sua automaticamente
Você pode fazer sua #CUIDADO
Tem box pra tudo!!
Tem um repositório só de boxes!!!
http://vagrantcloud.com
![Page 19: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/19.jpg)
![Page 20: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/20.jpg)
Você precisa SABER
o que é o VAGRANTFILE
![Page 21: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/21.jpg)
O Vagrantfile
Um arquivo
Leva toda a identidade da sua máquina
Há só um Vagrantfile por projeto
Usa a Syntax do Ruby
Mas você não precisa saber Ruby
![Page 22: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/22.jpg)
Você vai encontrar nele...
Configuração da máquina virtualMemóriaRedeProcessadorHostnamePasta sincronizadaProvisionamento
Configuração de Acesso SSH
Configuração do Vagrant
![Page 23: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/23.jpg)
COMANDOS
![Page 24: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/24.jpg)
OS COMANDOS$ vagrant box {add,remove,list,repackage}$ vagrant init$ vagrant halt$ vagrant up$ vagrant destroy$ vagrant package$ vagrant provision$ vagrant reload
$ vagrant list-comands
![Page 25: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/25.jpg)
Vamos desmistificar esse negócio ai!
![Page 26: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/26.jpg)
S.OAPACHE
PHP
MYSQL
![Page 27: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/27.jpg)
PROVISIONAMENTO
![Page 28: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/28.jpg)
Provi....O que?
“Pense antes de agir”
Automatiza tarefas
Esqueça a instalação
Configure em algumas linhas de código
Evite repetições, automatize!
![Page 29: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/29.jpg)
O Vagrant suporta ProvisionamentoFileShellAnsibleCFEngineChefDockerSalt
Puppet
![Page 30: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/30.jpg)
PUPPET
![Page 31: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/31.jpg)
PUPPETNão é só uma ferramenta de provisionamento
Escrita em Ruby
Possui uma ótima documentação
Comunidade muito ativa
Possui soluções “enterprise”
Hoje tem registrado 2.696 módulos
http://puppetlabs.com/
![Page 32: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/32.jpg)
https://forge.puppetlabs.com/
![Page 33: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/33.jpg)
PUPPETNão é só uma ferramenta de provisionamento
Escrita em Ruby
Possui uma ótima documentação
Comunidade muito ativa
Possui soluções “enterprise”
Hoje tem registrado 2.696 módulos
http://puppetlabs.com/
![Page 34: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/34.jpg)
Vamos desmistificar esse negócio ai!
![Page 35: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/35.jpg)
S.OAPACHE
PHP
MYSQL
![Page 36: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/36.jpg)
E se não precisasse fazer
nada disso?
![Page 37: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/37.jpg)
PuPHPet
![Page 38: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/38.jpg)
PuPHPet
Interface visual para automação
Trabalha com Vagrant + Puppet
É OpenSource
Clicou, Baixou, Funcionou!
![Page 39: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/39.jpg)
Vamos desmistificar esse negócio ai!
![Page 40: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/40.jpg)
![Page 41: Desmistificando um Ambiente de Desenvolvimento WEB com Vagrant](https://reader036.fdocumentos.tips/reader036/viewer/2022062308/55b363bfbb61eb94548b45ea/html5/thumbnails/41.jpg)