abordagens de deploy para aplicações rails

Post on 16-Jan-2015

1.563 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

 

TRANSCRIPT

Abordagens de Deploy Para Aplicações Rails

@fnmunhoz

Cut Rubies with ease!

Ruby Version Manager

•Permite one-click-deploy

•Syntaxe Ruby

•O servidor deve ser pré-configurado

SysAdmins gostam e conhecem suas ferramentas

http://cache.gizmodo.es/wp-content/uploads/2008/09/sysadmin.jpg

apt-get install myapp

• dpkg -l

• dpkg --contents some-app.deb

• post-install

• Gerencimento de dependências

• Repositório de pacotes

• Assinaturas nos pacotes

APT-GET

Build native packages is hardhttp://www.moviewallpapers.net/images/wallpapers/2007/live-free-or-die-hard/live-free-or-die-hard-1-1024.jpg

FPMEffing Package Management

“I want a simple way to create packages without all the bullshit. In my own infrastructure, I have no interest in Debian policy and RedHat packaging guidelines - I have interest in my group's own style culture and have a very strong interest in getting work done.”

Jordan Sissel

Nas palavras do criador

FPM

INPUT OUTPUT

gemdir

npm

debrpm

puppetsolaris

fpm -s tar -t deb -n mongodb -v 2.0 \        --prefix /opt/mongodb/2.0 mongodb-2.0.0.tgz

SHOW ME THE CODE

AUTOMATIZE!

FERRAMENTAS• Gerenciamento de configuração

• Puppet

• Chef

• Sprinkle

• Vagrant

• Jenkins

• GIT

• SSH

package :foo do mkdir '/var/some/dir' touch 'var/some/file' runner 'touch /usr/bin/abinary' do post :install, "chmod +x /usr/bin/abinary" end

verify do has_directory '/var/some/dir' has_file '/etc/apache2/apache2.conf' has_executable 'abinary' endend

#?

top related