ã·ã§ã«ã¹ã¯ãªãããServerspecã¨Vagrantã§ç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³ãã @ Glory Web Infra http://peatix.com/event/71002
ãã詳ããæ å ±ã¯ãã¡ããã覧ãã ãã ãã¼ã ãã¯ã©ã¦ãæ代ã®æ§æ管çå ¥éã æ¦è¦ AWSãAzureãªã©ã¯ã©ã¦ããµã¼ãã¹ã®ç»å ´ã«ãããç©ççãªãµã¼ãã®èª¿éãªãã«æ§ç¯ãããã¨ãå¯è½ã«ãªãã¾ãããã¾ããä»®æ³åæè¡ã®çºå±ã¯ãã¯ã©ã¦ãã ãã§ã¯ãªããVagrantãªã©ãéçºç°å¢ã®é²åã«ãå¯ä¸ãã¦ãã¾ãã ã½ããã¦ã¨ã¢ãéçºããä¸ã§ãéçºç°å¢ããã¹ãç°å¢ãæ¬çªç°å¢ã¨ãç°å¢æ§ç¯ã¯å¿ è¦ä¸å¯æ¬ ã§ããæ¬æ¥ã¯æ¬çªç°å¢ã¨åãç°å¢ã§éçºããã®ãæã¾ããã®ã§ãããç°å¢æ§ç¯ã«æéãæããããã·ã³ãç¨æã§ããªãçã«ãããæ¬çªã¨éçºç°å¢ãç°ãªãã¨ããã®ãå¤ãã®ã§ã¯ãªãã§ããããã ã¾ããéçºä¸ã«ç°å¢ãå£ããããç°å¢ãå¤æ´ãããã¨ãããããç¥ãã¾ããã ãã®åº¦ã«ç°å¢ãæ§ç¯ããã®ã大å¤ã§ãã å®å®ããç°å¢ãè¿ éãã¤æ£ç¢ºã«æ§ç¯ããçºã®ææ³ã¨ãã¦ãæ§æ管çãã¼ã«ã使ãæ¹æ³ãããã¾ããããããããèªä½ãé£è§£ã§ãã£ããããã¾ãé©åã§
ã¤ã³ã¹ãã¼ã« vagrant-cachier ãã©ã°ã¤ã³ãã¤ã³ã¹ãã¼ã«ããã«ã¯ãvagrant plugin install ã³ãã³ããå®è¡ããã ãã§ãã $ vagrant plugin install vagrant-cachier Vagrantfile ã¸ã®è¨è¿° vagrant-cachier ãã©ã°ã¤ã³ãæå¹ã«ããã«ã¯ãVagrantfile ã«ä¸è¨ã®è¨å®ãè¡ãã¾ããconfig.cache.scope ã§ã¯ããã£ãã·ã¥ã¹ã³ã¼ããè¨å®ãã¾ãã ä¸è¨ã§ã¯ã:boxãæå®ãã¦ãããããã¯ããããã¸ã§ã³ã§ã¤ã³ã¹ãã¼ã«ããããã±ã¼ã¸ã Box åä½ã§ãã£ã·ã¥ãã¾ããåä¸ Box ã使ã Vagrantfile ã§ããã°ãå¥ã® VM ã§ããã£ãã·ã¥ãå ±æãããã¨ãã§ãã¾ãã ç§ã®ç¨éã§ããã°ããã®è¨å®ã使ãããããã§ãã ãã¨ã¯ãé常ã©ãããvagrant up ãè¡ãã¨ãã©ã°ã¤ã³ãæå¹ã¨
[2014-01-09-1] ããmasutaka.netã®CIãéå§ããããæ®å¿µãªãã masutaka.netã«ç´æ¥serverspecããããªãã¡ãã£ã¦CIã ã£ãã masutaka.netã«cookãã¦ããPRãåºãã¦ãWerckerã«CIããã¦ããã Werckerã¨AWSãé£æºããã¦ããã¹ãã®ãã³ã«ãµã¼ããã¾ã£ãããªç¶æ ãã ä½ããçµãã£ããç ´æ£ãããã¨ãå¯è½ã«ãªã£ãã®ã§ãããã«è¨é²ãã¦ããã å»å¹´ãããã«è©±é¡ã«ãªã£ããã®è¾ºã®è©±ã Vagrant + Chef Solo + serverspec + Jenkins ã§ãµã¼ãã¼æ§ç¯ã CI - naoyaã®ã¯ã¦ãªãã¤ã¢ãªã¼ naoya/circleci-serverspec ãªãã§ä»ã¾ã§ãããªãã£ããã¨ããã¨ãcookãä¸çºã§éããªãã¬ã·ãã«ãªã£ ã¦ããããããæ°ã¥ãã¦ã¯ãããã ãã©ãæ¬çªãµã¼ãã®ãã¹ããéããã ããã°ããã£ã
æè¿ãVagrantã®provisionerã使ã£ã¦ããã±ã¼ã¸ã®ä½æãªã©ãããã¤ãè¡ã£ã¦ããã®ã§ããããã®éã«VMãè½ã¨ãå¿ãããã¹ããã¦ããã·ã³ã®ä½è¨ãªãªã½ã¼ã¹ã使ã£ã¦ãã¾ã£ã¦ãããã¨ãããã¾ãã ãªã®ã§ãprovisionerã§ãµã¼ããdestroy/haltãããã¤ãæ¸ãã¦ã¿ã¾ããã rubygems: https://rubygems.org/gems/vagrant-destroy-provisioner github: https://github.com/kazeburo/vagrant-destroy-provisioner åæã«shutdownãã¦ã¤ã¡ã¼ã¸ãç ´æ£ãããã¢åç»ã§ãã ã¤ã³ã¹ãã¼ã«ã¯vagrant pluginã³ãã³ãããè¡ãã¾ãã $ vagrant plugin install vagrant-destroy-provisioner 使ãæ¹ã¯ãããªæã
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? ï¼2014å¹´ã®è¨äºã§ãããï¼ ãªãªã¸ãã«ï¼"A Rails Development Environment with Docker and Vagrant" by Ben Dixon http://www.talkingquickly.co.uk/2014/06/rails-development-environment-with-vagrant-and-docker/ ï¼ãããã¤çµé¨ãã¾ããªãã®ã§è¨æ£ãã¤ã£ãã¿ãªã©å¤§æè¿ã§ãã訳ãã¥ããã£ãã¨ããã¯åæãå ¥ãã¦ã¾ããBenãããã翻訳&&ã·ã§ã¢OKã®è¨±è«¾ããã£ã¦ãã¾ãããã®ãã¼ãã§ãã
PackerBuild and manage images as codeââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
第3å ã³ã³ããåä»®æ³åã®æ å ±äº¤æä¼ï¼ å¤§éª (ã³ã³ããåVMãé¢é£ããã«ã¼ãã«çã®æè¡ã話é¡ã®åå¼·ä¼) ã«åå ãã¦ãã¾ããã å ¨ä½ã®ææ³ å ¨ä½çã«ã¯ LXC ã Docker ã«éããã Hyper-V ä¸ã§ã® FreeBSD jail ã®è©±ã Vagrant ã CircleCI (LXC ã使ã£ã¦ãã) ãªã©ã®è©±ããã£ã¦ãé¢ç½ãã£ãã§ãã ä¼å ´ ã¡ãã£ã¨æ©ãã«åºçºãã¦ãæ¢ ç°ããé£æ³¢æ©ãéã£ã¦å ºçãéã£ã¦ä¼å ´ã¾ã§æ©ãã¦ããã¾ããã å ´æãããããããã¦äº¤å·®ç¹ã®ååã¨ç®çå°ã®ãã«ã®ååãã¡ããã¨ãã§ãã¯ãã¦ããã°è¿·ããã«ãã©ãçãã¾ããã ä¼å ´ç¡ç· LAN ããã£ãã®ã§ããã æåã«æ¥ç¶ãã MacBook Air ã¯åé¡ãªãç¹ãã£ã¦ããã®ã§ããã å¾ãã追å ã§ã¤ãªããã¨ãã iPod touch ã¯ç¡ç· LAN èªä½ã¯ç¹ãã£ã¦ããã®ã« APIPA ã® IP ã¢ãã¬ã¹ã«ãªã£ã¦ãã¦ã DHC
ãªã©ã¤ãªã¼ã¸ã£ãã³ãããå®è·µ Vagrantããçºå£²ããããªã©æ³¨ç®ãéãã¦ããVagrantã§ãããVagrantããã便å©ã«ä½¿ãããã«ãã©ã°ã¤ã³ãå©ç¨ãããã¨ãã§ãã¾ããç§ãå人çã«ä½¿ç¨ãã¦ã便å©ã ã¨æã£ããã©ã°ã¤ã³ã«ã¤ãã¦ã¾ã¨ãã¾ããã 便å©ãªãã©ã°ã¤ã³6é¸ sahara vagrant-cachier vagrant-global-status vagrant-omnibus vagrant-vbguest vagrant-vbox-snapshot 1. sahara jedi4ever/sahara · GitHub ãµã³ãããã¯ã¹ã¢ã¼ããæå¹ã«ãããã©ã°ã¤ã³ã§ãããµã³ãããã¯ã¹ã¢ã¼ãå ã§å®è¡ããæä½ã¯ãã¼ã«ããã¯æ©è½ã§å®è¡åã®ç¶æ ã«æ»ããã¨ãã§ãã¾ããå®è¡ããæä½ã確å®ãããå ´åã¯ã³ããããå®è¡ãã¾ããChefã®ã¬ã·ãããããã試ãããå ´åãªã©ã«ä¾¿å©ã«ä½¿ãã¾ãã ã¤ã³ã¹ãã¼ã«æ¹
Vagrant 1.5ããªãªã¼ã¹ãããã¨æã£ãããVagrant Cloudãªãã¦ã®ãç»å ´ãã¦ã¾ããï¼ ã§ãVagrant Cloudã®ä¸ã«Vagrant Shareã£ã¦ã®ããããã ãã©ã試ãã¦ã¿ããã¨ãã§ããªãã£ãã®ã§ãæ©éããæ¹ãã·ã§ã¢ãããï¼ Vagrant Cloudã«ã¦ã¼ã¶ç»é² Vagrant Cloudã®ãã¼ã¸ã«ã¢ã¯ã»ã¹ãã¦ãã¾ãã¯ã¦ã¼ã¶ç»é²ãããã è¿·ããã¨ã¯ãªãã¨æããã©ããJOIN VAGRANT CLOUDãã£ã¦ãã¿ã³ãã¯ãªãã¯ããã°ç»é²ãã¼ã¸ã«é£ã¹ãã 次ã«ãã¦ã¼ã¶åãã¡ã¼ã«ã¢ãã¬ã¹ããã¹ã¯ã¼ããå ¥åãããã¦ã¼ã¶ç»é²ã¯å®äºã ã Vagrant1.5ã®ã¤ã³ã¹ãã¼ã« Macã®å ´åã¯æ®éã«ãã¦ã³ãã¼ããã¼ã¸ããdmgãã¡ã¤ã«ãè½ã¨ãã¦ãããã«ã¯ãªãã¯ã§ã¤ã³ã¹ãã¼ã«ã 念ã®ããã確èªã $ vagrant -v Vagrant 1.5.0 Vagrantfileä½æï¼ä»®æ³ãã·
ãã®è¨äºãå ¬éããç´åã« Vagrant Cloud ãã¯ã¦ãã«ä¸ãã£ã¦ãã®ãè¦ã¦ãä»ããã¦ã¦è¿½è¨ãã¦ãã¾ããããã楽ãããã¨ã«ãªã£ã¦ã¾ããã¼ã Vagrant Cloud Vagrant 1.5 and Vagrant Cloud - Vagrant ããã°è¨äºããã£ã¨èªãã æãã ã¨ãVagrant 1.5 ã®æ°æ©è½ã¯ã VagrantShare - ã¾ãã§å ¬éããã¦ããµã¤ãã¿ããã« VM ã® URL ããã¼ã ã¡ã³ãã¼ã«è¦ãã Box ã koseki/centos ã¿ãããªçãååã§æå®ã§ããããã«ããã¼ã¸ã§ã³ç®¡ç rsync 㨠SMB ã§ãã©ã«ãåæ Hyper-V - MS ã®ä»®æ³ç°å¢ã«å¯¾å¿ insecure-private-key ã®ä»£ããã« SSH ã§ãã¹ã¯ã¼ãã使ããããã« ãã©ã°ã¤ã³ç®¡ç Funtoo, NetBSD, TinyCore Linux ã®ã²ã¹ãã«å¯¾å¿ãããã
Packerã使ã£ã¦Chef/Puppet/Ansibleã§Dockerã®ã¤ã¡ã¼ã¸ãã¤ãã Packerã¯ï¼Vagrantã®ä½è ã§ããMitchell Hashimotoæ°ã«ãã£ã¦éçºãé²ãããã¦ããVirtualBoxãVMWareï¼Amazon EC2ãªã©ã®ä»®æ³ãã·ã³ã®ãã³ãã¬ã¼ãã®ä½æãè¡ããã¼ã«ï¼Vagrantã®VirtualBoxç¨ã®Boxãä½ãveeweeã«ç½®ãæãããã¼ã«ã¨ãã¦ç¥ããã¦ããï¼æè¿ã®ã¢ãããã¼ãã§Dockerã®ã¤ã¡ã¼ã¸ã®ãã«ãããµãã¼ãããï¼ TL;DR Packerã使ãã°Dockerã®ã¤ã¡ã¼ã¸ãDockerfileã使ãããã«ããããã¨ãã§ãã ã¤ã¾ãï¼Dockerfileã®ç¹æãªè¨è¿°ã使ããï¼ä»ã¾ã§æ £ã親ããã§ããChefãPuppetï¼Ansibleã®ãããªãããã¸ã§ãã³ã°ãã¼ã«ã使ã£ã¦Dockerã®ã¤ã¡ã¼ã¸ããã«ãã§ããï¼ åè Dockerã¤ã¡ã¼ã¸ã®
PackerBuild and manage images as codeââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââââ
20. Vagrant destroyããã¾ã使ããªã $ vagrant destroy âf $ vagrant up ã®ããã«ãµã¯ãã¨å£ãã¦ä½ã£ã¦ãç¹° ãè¿ãããAnsibleã®ä¸æ¸ããå¤ãã«ã 21. ignore_errors: yesã使ã - name: password shell: cat /root/.mysql_secret | awk '{ print $NF }' register: mysql_passwd - name: check MySQL root password shell: mysqlshow -uroot -p{{ mysql_passwd.stdout }} register: root_check ignore_errors: yes - name: set MySQL root password command: | mysql --con
æ¬æ¸ã¯ãVagrantã®ä½¿ãæ¹ãããã©ã°ã¤ã³ã®éçºæ¹æ³ã¾ã§ã解説ããæ¸ç±ã§ããVagrantã®æ¦è¦ããã·ã³è¨å®ããããããã¸ã§ãã³ã°ããããã¯ã¼ã¯ãããã¯ã¹ãããã«ã¯ãã©ã°ã¤ã³ã«ããæ¡å¼µã¾ã§ãVagrantã使ãéã«å¿ è¦ãªäºæãç¶²ç¾ ãã¦ãã¾ããããã«æ¥æ¬èªçã§ã¯ãåç¾½é¾å¤ªéæ°ã«ãããVagrantãã©ã°ã¤ã³ãã¨ãPackerããä¼è¤ç´ä¹æ°ã«ãããVagrantã¨Amazon EC2ãã«ã¤ãã¦ã®è¨äºãå çãVagrantã®ä½è ã§ããMitchell Hashimotoæ°ã«ãã£ã¦æ¸ãããæ¬æ¸ã¯ãéçºè å¿ èªã®ä¸åã§ãã åºæ 訳è ã¾ããã ã¯ããã« 1ç« ãVagrantã®ç´¹ä» 1.1ãVagrantã使ãçç± 1.2ãVagranté 1.3ãVagrant以å¤ã®é¸æè¢ 1.3.1ãåç´ãªãã¹ã¯ãããä»®æ³å 1.3.2ãã³ã³ãã 1.3.3ãã¯ã©ã¦ã 1.4ãVagrantã®ã»ããã¢ãã 1.5
Shin x blog Advent Calendar 2013 ã® 24 æ¥ç®ã§ãã å æ¥ãªãªã¼ã¹ããã vagrant-serverspec ã使ã£ã¦ããã¹ãããªãã³ãªãµã¼ãæ§ç¯ãè¡ã£ã¦ã¿ã¾ããã vagrant-serverspec ã¯ããµã¼ããã¤ã³ãã©ã®ç¶æ ããã¹ããããã¼ã« serverspec ã Vagrant ã®ãããã¸ã§ãã¨ãã¦å®è¡ã§ãããã©ã°ã¤ã³ã§ããããã使ããã¨ã§ãvagrant ã³ãã³ããããserverspec ã®ãã¹ããå®è¡ãããã¨ãã§ãã¾ãã 詳ããã¯ã@ryuzee ããã®ä¸è¨ã¨ã³ããªãåç §ãã¦ä¸ããã vagrant-serverspecã使ã£ã¦ãããã¸ã§ãã³ã°çµæããã¹ããã | Ryuzee.com ä»æ§ ä»åæ§ç¯ãããµã¼ãã®ä»æ§ã¯ä¸è¨ã§ããPHP 5.5.x ãã¤ã³ã¹ãã¼ã«ãã¦ããã«ãã¤ã³ãµã¼ããèµ·åããã¨ãããã®ã§ããï¼â»ã¡ãªã¿ã«ãã«ãã¤ã³ãµã¼ã
Fluentd Advent Calendar 2013ã«ç»é²ãããã®ã®ãããããã° 1 å¹´ä½å ¨ã fluentd ã«è§¦ã£ã¦ãªãã£ãã®ã§ããªãããªãå ¼ãã¦æè¿ãã¼ã¸ã§ã³ã¢ããã§å°å ¥ããã Vagrant ã® Docker provisioner ã使ã£ã¦ãES+Kibana ã«æµãã¨ãã¾ã§ãä½ã£ã¦ã¿ããå®ç¨æ§ã«ã¯ä¹ããã riywo/vagrant-docker-td-es-kibana-sample 以ä¸è§£èª¬ã Vagrantfile localhost ãã port forwarding 㧠box ã®åããã¼ãã«æ¥ç¶ããã¦ããããã« box ã®ä¸ã§ Docker ãèµ°ã£ã¦ãã¦ãDocker provisoner ã§ã³ã³ãããèµ·åããæã«ãport redirect ããã¦ããã®ã§ãã¯ã©ã¤ã¢ã³ããããã¤ã¬ã¯ãã«ã³ã³ããã¨ä¼è©±ãã§ããããã«ãªã£ã¦ããã ES 㨠Kibana ã¯arc
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}