Thursday, December 10, 2015

Having fun with FPM

0 lượt xem comment 0 comments

Working with automation is not easy. I would say would take 5-10X more to get something automated rather than manual, but this pays off on a long term so this is not an open matter.

DevOps has many meanings for different people now a days, for me, is really about Dev and Ops work together. I don't see how an OPS team often called DevOps time could carry this alone, for it can't. The best model I see so far is the Silicon Valley model you see in companies like Netflix. Were you pretty much have everybody doing everything so you build it you run it.

Ops needs to learn how to code and other Dev disciplines and Devs need to learn about ops, this is how is it going to me as well on the last couple of years. Today I want to show a little bit more about FPM. FPM it's a package management solution that builds deb and RPM files for you. This is great because leverage Linux tools that are already in place and ops know how to use it. :-)



Having Fun with FPM

I will show you how to build an RPM package from a directory and then install on Ubuntu or Amazon Linux (CentOS based).

Install on Ubuntu

sudo apt-get install rpm
sudo apt-get install ruby-dev gcc make
sudo gem install fpm

Creating RPMs

sudo fpm -s dir -t rpm --prefix /tmp/diego -n "slashbin" -v 1.0 /bin

Check RPMs Content and Details

rpm -qpil slashbin-1.0-1.x86_64.rpm

Install the RPM

sudo rpm -ivh slashbin-1.0-1.x86_64.rpm

Check the FINAL installation

sudo ls /tmp/diego/bin/

Remove the RPM

sudo rpm -ev --nodeps  slashbin-1.0-1.x86_64
view raw fpm.md hosted with ❤ by GitHub
Cheers,
Diego Pacheco
Tags: code,

comment 0 comments

Chuyên mục văn hoá giải trí của VnExpress

.

© 2017 www.blogthuthuatwin10.com

Tầng 5, Tòa nhà FPT Cầu Giấy, phố Duy Tân, Phường Dịch Vọng Hậu, Quận Cầu Giấy, Hà Nội
Email: nguyenanhtuan2401@gmail.com
Điện thoại: 0908 562 750 ext 4548; Liên hệ quảng cáo: 4567.