You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article? éãæ·±ãã¨ã¯ ãã®ããããæããã®ã¨ãã¾ãã AMIã®åºæãããããªã EC2ã¤ã³ã¹ã¿ã³ã¹ã®AMI IDããèªåAMIã«ãªã£ã¦ã Linuxãã£ã¹ããªã¯ãããããèµ·ç¹ã«ãããã¼ã¸ã§ã³ã¯ããããªã AMIãã©ããã£ã¦ã§ããã®ãããããªã sudo vi /etc/hoge.conf ãã¦ãã£ã½ã sudo yum install -y hoge ãã¦ãã£ã½ã wget https://~~~~/hoge.tar.gz ãã make install ãã¦ãã£ã½ã AMIæ´æ°æé ãããããªã å¤æ´ããã人ã ã¨ãå¤æ´ã§ãã人ã ãéã£ã¦ãã å®
æ§ã ãªããã¸ã§ã¯ãã§ä»äºãããã«ããã£ã¦ãAWSã®AMIï¼Amazon Machine Imageï¼ãå¤ãã¤ããããã«ãªãã¾ããã ä»åã¯Packerããã¸ã§ã¯ãã®å人çãªãã¹ããã©ã¯ãã£ã¹ãã¾ã¨ãã¾ããã ä½æãããªãã¸ããªã¯ããã«ãä½æãããªãã¸ããªã以ä¸ã«æãã¦ããã¾ãã soudegesu/my_packer_best_practiceã¾ããåææ¡ä»¶ã¯ä»¥ä¸ã¨ãã¾ãã ä½æ対象ã¯AMIï¼Amazon Machine Imageï¼ãããã¸ã§ãã³ã°ã«ã¯ Packer 㨠Ansible ã使ãã¤ã³ã¹ã¿ã³ã¹ã®ãã¹ãã«ã¯ Sererspec ã使ãPackerãAnsibleãSererspecèªä½ã®è§£èª¬ã¯å²æãã¾ãã Vagrantã使ã£ã¦ãã¼ã«ã«ç°å¢ã§ãããã°ã§ããããã«ãã¦ããAnsible Playbookã®æ¸ãå§ãã®é ã¯ãå¯è½ã§ããã°ãã¼ã«ã«ç°å¢ä¸ã« Vagrant 㨠Virtu
docs.md Packer+Circle CIã§Google Compute Engineã®ã¤ã¡ã¼ã¸ãçæãã ãã㯠Aizu Advent Calendar 2016 ã® 9æ¥ç®ã®è¨äº(é å»)ã§ãï¼ http://www.adventar.org/calendars/1530 8æ¥ç®: ãªãã£ã¹ã«ãã人éãSlackã«éç¥ãããã¤ä½ã£ã - 人権ç骨é 10æ¥ç®: @mic_psm Google Compute Engineã«ã¯ï¼AWSã§ã¯AMIã«ç¸å½ããImageã¨ããæ¦å¿µãããï¼ Imageã«ã¯ï¼Image Familyã¨ãããã®ããã£ã¦ï¼Imageã®ãã¼ã¸ã§ã³ç®¡çãè¡ããã¨ãã§ããï¼ å ·ä½çã«ã¯ï¼Familyã¯ãã®ä¸ã«åå¨ããä¸çªææ°ã®Imageã¸ã®ãã¤ã³ã¿ãæã£ã¦ããï¼Dockerfileã®FROM name:latestã¿ãããªããªï¼ ããã使ãã¨ï¼ã¤ã³ã¹ã¿ã³ã¹ãå®è¡ããæ
ä¸é¨ã®ãµãã·ã¹ãã ã®æ§ç¯ã§ããããã¸ã§ãã³ã°ãã¼ã«ãæ¨ã¦ã¦ã¿ãããããã©ãããã®ãã¨ããã¨ã·ã§ã«ã¹ã¯ãªããã§ãããä»åã¯ãã®ãããããä¸çªæ¥½ã§ãããããªæ°ãããã®ã§è©¦ãã¦ããã å ·ä½çã«ã¯Packerããã·ã§ã«ã¹ã¯ãªããã¨Serverspecãå®è¡ãã¦AMIãç ®è¾¼ããããããã§ãããã£ããããã¤ããæ§ç¯ãããããã«ã¦ã§ã¢ããä¸ã®å±¤ã®ã³ã³ãã£ã°é¡ã«å¤æ´ããã£ããã¾ãç ®è¾¼ããæ§ç¯ãããæ°ããæ¹ã«åãæ¿ãããã¤ã¾ãâæ¨ã¦ãã¤ã³ãã©âã«ããã ãã©ãããã©ã¼ã ã¯AWSã (追è¨)ã¡ãªã¿ã«chefãªã©ã®ãããã¸ã§ãã³ã°ãã¼ã«ãããã©ãããããã·ã§ã«ã¹ã¯ãªããã«ããã¨ããããã¯ãæ¨ã¦ãåæã®ãµã¼ãã ããã·ã§ã«ã¹ã¯ãªããã§ã®æ§ç¯ãé¸æè¢ã¨ãã¦åºã¦ããã¨ãããã¨ã§ãããã èªåå人ã®å好ã¨ãã¦chefã¯ãã飽ããã¨ããã®ãäºå®ã§ãããªãããªã³ãã¬ã ã¨åããµã¼ãã§ç¶ç¶ãã¦ãããã¸ã§ãã³ã°ãããã¨ã«ãªãã®ã§ch
Packer / Terraform ã«ããæ§æ管ç Packer ã«ãã AMI ã®ä½æ Terraform ã§ã®ã¤ã³ã¹ã¿ã³ã¹èµ·åæã® user-data ã®å©ç¨ Terraform ã§ã®ãµã¼ãã®å ¥ãæ¿ãã®çºã®è¨å® / ä½æ¥ Auto Scaling ã°ã«ã¼ãã«å¯¾ãã ELB ä»ãå¤ãã®å©ç¨ autoscale.tf elb.tf codedeploy.tf variables.tfvars å®éã®ãªãã¬ã¼ã·ã§ã³ã®æé 1. green ã®è¨å®å¤æ´ / èµ·å 2. green ãµã¼ã群ãæ¬çª ELB ã«è¨å® 3. blue ãµã¼ããæ¬çª ELB ããåãé¢ã 4. blue ã®å°æ°ã 0 ã« å®éã«éç¨ãã¦ã¿ã¦ 課é¡ãä»å¾ ã¾ã¨ã ããã«ã¡ã¯ãã¨ã³ã¸ãã¢ã®éæ¬ã§ããå æ¥ãdoor è³è²¸ããªã³ãã¬ãã AWS ã«ç§»è¡ããéãTerraform & Packer ãä¸å¿ã«è¡ã£ãã¨ãã話ãç´¹ä»
æè¿ã¾ããDocker ã«å ¥éããªããã¦ãããä»åã§3åç®ãDocker for Mac ãããã¶ãè¯ããããã®ã§ãDocker 㧠Rails ã¢ããªãåããã¦ã¿ã - ããã®ãã«ã£ã ãååå ¥éããã¨ãã®è¨äºã blog.a-know.me ãããã«3åç®ã¨ããªãã¨ãããã¼ï¼ã¯ãã¯ããããã§ããããã§ããï¼ãã¨ãããã¨ãå¤ãã¦ãã¾ãããã¯ããã§ã¢ãªããã¨æãç´ãã¦ã¿ããããã¦ããã ä»åã®å ¥éã«ããã£ã¦ã¯ããããã°ã©ãã®ããã®Dockeræç§æ¸ ã¤ã³ãã©ã®åºç¤ç¥è&ã³ã¼ãã«ããç°å¢æ§ç¯ã®èªååãã¨ããæ¬ã使ã£ã¦ãããDockerã»ã³ã³ããã®ãã¨ã®ã¿ã«çã¾ãããã³ã³ãããæ±ãã«éãã¦ãããã¦ããããã¤ã³ãã©ã»ãããã¯ã¼ã¯ã«ã¤ãã¦ã®è©±ãªã©ã«ã¤ãã¦ã触ãããã¦ãã¦ãã¾ã èªãã§ãéä¸ã§ã¯ããã®ã ãã©ãªããªãããæãã ããã°ã©ãã®ããã®Dockeræç§æ¸ ã¤ã³ãã©ã®åºç¤ç¥è&ã³ã¼ãã«ããç°å¢æ§
第7åã¯å®è·µç·¨ã¨ãã¦ããããã®ã¯ã©ã¦ãã®ãªã½ã¼ã¹ããã¼ã¸ã£(Terraform)ãç¨ãã¦å®éã«ã¤ã³ãã©ãæ§ç¯ãã¾ãããä»åã¯Ansible/Packerãç¨ãã¦æ§ç¯ãããµã¼ãã«å¯¾ããã»ããã¢ãã(ãããã¸ã§ãã³ã°)ãè¡ã£ã¦ã¿ã¾ãã ãµã¼ãã®ãããã¸ã§ãã³ã°ãã¼ã« ååã§ãããã®ã¯ã©ã¦ãã®ãªã½ã¼ã¹ããã¼ã¸ã£(Terraform)ãç¨ãã¦ãµã¼ãã®ä½æãè¡ãã¾ããããç¹ã«OS/ããã«ã¦ã§ã¢/ã¢ããªã±ã¼ã·ã§ã³ã®è¨å®ãªã©ãè¡ã£ã¦ããªãããã·ã¹ãã ãåããããã®è¨å®ãªã©ãè¡ãå¿ è¦ãããã¾ãã è¨å®ãè¡ãã«ã¯æä½æ¥ã§ã³ãã³ããå®è¡ãã¦ããæ¹æ³ãããã¾ããããã¯ããã¼ã«ãå©ç¨ãããã¨ã§ç´ æ©ã確å®ã«è¡ããã¨ãå¯è½ã§ãã ãã®ããã®ãã¼ã«ã¯ããããã¸ã§ãã³ã°ãã¼ã«ãã¨å¼ã°ããæ§ã ãªãã¼ã«ãåå¨ãã¾ããä»åã¯ãã®ä¸ããAnsibleãä¾ã«ãµã¼ãã®ãããã¸ã§ãã³ã°ãè¡ãã¾ãã ã¾ããAnsibleãªã©ã§ããç¨åº¦ã
ã¯ããã« åè¨éçºã«ããã¦ãæ¯è¼çå°è¦æ¨¡ãªãã«ã¹ã¯ã©ããã®Webã·ã¹ãã ãéçºããå ´åãã¤ã³ãã©é¢é£ã®å·¥æ°ã®ä¸ã§Webï¼ã¢ããªã±ã¼ã·ã§ã³ï¼APï¼ãµã¼ãã®æ§ç¯ã«å¯¾ããå·¥æ°ãæ¯è¼çå¤ããªã£ã¦ãã¾ãã ã¾ããè¤æ°ã®ããã¸ã§ã¯ãã«ããã¦ãåããããªä½æ¥ãç¹°ãè¿ãå®æ½ããå¿ è¦ããããæä½æ¥ã§æ§ç¯ãå®æ½ããå ´åãç¹°ãè¿ãå®æ½ããä¸ã§æé æ¸ãä¿®æ£ããç¶ãããããããç§ä¼ã®ã¿ã¬ãã¨ãªãåç¾æ§ã失ãããã±ã¼ã¹ãå¤ã ããã¾ãã æ¬ç¨¿ã§ã¯ãéçºç°å¢åã³æ¬çªï¼ã¹ãã¼ã¸ã³ã°ç°å¢ã«ããã¦ãWebï¼APãµã¼ããæ§ç¯ããéã«ãåç¾æ§ãããããç¹°ãè¿ãå©ç¨ãå¯è½ã§ããçæéã§æ§ç¯ãå¯è½ãªãæ¹æ³ã¨ãã¦ãAnsibleãVagrantãPackerãç¨ããå®è·µæ¹æ³ããç´¹ä»ãã¾ãã AnsibleãVagrantãPackerã®å½¹å² AnsibleãVagrantãPackerã¯æ¢ã«å¤ãã®äºä¾ã§ãæ¡ç¨ããã¦ããããããåç¥ã®æ¹ã
ã¯ããã¾ãã¦ã4æã«ã¢ã¯ããã£ããã«joinããwata727ã§ãã主ã«ãµã¼ããµã¤ãã®éçºãAWSãã¯ããã¨ããã¤ã³ãã©å¨ããæ å½ãã¦ãã¾ãããããããé¡ããã¾ãã ä»åã¯ç´è¿è¡ã£ãSideCIã¤ã³ãã©ã®AWSå®å ¨ç§»è¡ã«ãTerraformãPackerãæ¡ç¨ãã話ã«ã¤ãã¦æ¸ãã¦ã¿ã¾ãã SideCIã®ã¤ã³ãã©æ§æ SideCIã§ã¯ãµã¼ãã®å½¹å²ãããã³ãå´ã§ã¦ã¼ã¶ã®æä½ããªã¯ã¨ã¹ããåãä»ããweb群ã¨ãRubocopãªã©ã®ãã¼ã«ãå®è¡ããnode群ã«åãã¦ãã¾ããå½¹å²ãåé¢ãããã¨ã«ãããé¢å¿äºãåãããã¨ãã§ããå¿ è¦ã«å¿ãã¦ã¹ã±ã¼ã«ã¢ã¦ããã¹ã±ã¼ã«ã¢ããããããããªãã¡ãªãããããã¾ãã ãã¨ãã¨ã¯AWSã¨GCPã®ãã¤ããªããã¯ã©ã¦ãæ§æãã¨ã£ã¦ããã®ã§ããããã¾ãã¾ãªåé¡ããããä»åã®åæ§ç¯ã®æ®µéã§AWSå´ã«å®å ¨ã«å¯ããå½¢ã«ãªãã¾ããã Infrastructure as Codeã®
ååã®è¨äºã§ã¯Dockerã¨ECSã使ã£ãAWSä¸ã§ã®Infrastructure as codeã«ã¤ãã¦è¨åãã¾ãããããµã¼ããªã½ã¼ã¹ã®æ§æ管çã«ã¤ãã¦ã¯AWSã®ããã¼ã¸ã¡ã³ãã³ã³ã½ã¼ã«ããæåã§è¡ããªãã¨ãããªãã£ãããã³ã³ãããç¨ããã¢ããªã±ã¼ã·ã§ã³æ§æãå¼·å¶ãããå¾æ¥ã®åç´ãªã¤ã³ã¹ã¿ã³ã¹æ§æãã§ããªãã¨ããåé¡ç¹ãããã¾ãããååã®è¨äºã¯ãã¡ãã å¾è ã«ã¤ãã¦ã¯ãä»å¾ã³ã³ãããæ´»ç¨ããã¤ã³ãã©æ§æãæ®éã«ãªã£ã¦ãããã¨ã§è¨±å®¹ããã¦ããããããã¾ããããæ®éã«ã¤ã³ã¹ã¿ã³ã¹ãç«ã¦ã¦ã¤ã³ãã©ãæ§ç¯ãã¦ããæ¹ã«ã¨ã£ã¦ã¯Infrastructure as codeãããããããã«ã³ã³ãããåæã¨ãããµã¼ãæ§æã«å¤æ´ããªãã¦ã¯ãããªããªãã¦ãæ£ç´æ°ãé²ã¾ãªãã¨æãã¾ãã ããã§æ¬è¨äºã§ã¯ãä»ã¤ã³ãã©çéã§é常ã«å¼·ãå½±é¿åãæã£ã¦ããHashicorpã®ãããã¯ããPackerã¨Terrafor
nazoã§ãã å¼ç¤¾ã®ãµã¼ãã¹ã®ï¼ã¤ã§ãã ãããã¹ããã«ã ã®ã¤ã³ãã©ããConsul + Packer + Terraform㧠Auto Scaling ã§ããç°å¢ã«ãã¾ããã®ã§ç´¹ä»ãã¾ãã ãªããã®çµã¿åããï¼ AWS ã® Auto Scaling æ©è½ã¯ãæå®ããæ¡ä»¶æã«æå®ã® AMI ãå ã«ã¤ã³ã¹ã¿ã³ã¹ãå¢ãããã¨ãããã®ã§ãããã®å ã¨ãªã AMI ã®ãã¨ãã´ã¼ã«ãã³ã¤ã¡ã¼ã¸ã¨å¼ã¶ã®ã§ãããAMI ã§ãã以ä¸äºåã«ä½æããªãã¨ããã¾ããã ã¤ã³ã¹ã¿ã³ã¹ãç¨æããæ¹æ³ã¨ãã¦ã¯ããã¤ãããã¾ããã åæç¶æ ã® AMI ãèµ·åããã¦ãèµ·åå¾ã« provisioning ãã èµ·åã«ãã¾ãã«æéãããã£ã¦ãã¾ããè² è·å¢å¤§æã«éã«åããªãå¯è½æ§ãé«ããªã ã¢ããªã±ã¼ã·ã§ã³ã¾ã§å«ãã AMI ãä½ã£ã¦ãèµ·åãããããç«ã¡ä¸ããããã«ãã ã¢ããªã±ã¼ã·ã§ã³ã³ã¼ãã®æ¸ãæãã§æ¯åã¤ã¡ã¼ã¸ãä½ã
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ã¤ã¡ã¼ã¸ã®
Packerã¨Ansible Local Provisionerã使ã£ã¦Dockerã¤ã¡ã¼ã¸ãä½æããããã®ã¡ã¢ã Fabrication by Extreme Ben ã¯ããã« ä»åã®ç®ç Packer/Ansible Local Provisionerã«ããDockerã¤ã¡ã¼ã¸ã®ä½æã試ãã¦ã¿ãã ãµã³ãã«ã¨ãã¦golangã§webãµã¼ãã¹ãéçºããããã®ãã¼ã«ã«éçºç°å¢ãæ§ç¯ããããã¼ã«ã«éçºç°å¢ãå¿ è¦ã¨ããè¦ç´ ã¯ä»¥ä¸ã¨ããã golangãã¼ã« CUIãã¼ã¹ã§éçºããããå¿ è¦ãªå種ãã¼ã«(zsh/vim/tmux/gitâ¦) ãã¼ã¿ãã¼ã¹ Dockerã³ã³ããã¯ä»¥ä¸2種é¡ç¨æããã CUIãã¼ã¹ã§ã®éçºç°å¢ã¨ãªãã¢ããªã±ã¼ã·ã§ã³ã³ã³ãã éçºã¦ã¼ã¶ã®HOMEã¨ãªããã¼ã¿ããªã¥ã¼ã ã³ã³ãã ã¢ããªã±ã¼ã·ã§ã³ã³ã³ããã¯ã¤ãã¥ã¼ã¿ãã«åæã§ãéçºã¦ã¼ã¶ã®HOMEã¯ãã¼ã¿ããªã¥ã¼ã ã³ã³ã
{ "builders": [ { "type": "virtualbox-iso", "vm_name": "box", "boot_wait": "10s", "disk_size": 512000, "guest_os_type": "RedHat_64", "iso_checksum": "4a5fa01c81cc300f4729136e28ebe600", "iso_checksum_type": "md5", "iso_url": "http://ftp.iij.ad.jp/pub/linux/centos/6.4/isos/x86_64/CentOS-6.4-x86_64-minimal.iso", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_port": 22, "ssh_wait_timeout":
ç¶å ±ã§ãVagrantã®Boxã®ä½ãæ¹ã«ã¤ãã¦æ¸ãã¾ããããã¡ã Vagrantã®ä½è ã§ããHashimotoãããæ°ãã«Packerã¨ãããã¼ã«ããªãªã¼ã¹ãã(æ¨æ©ï¼)ã®ã§éæ»ãç´¹ä»ã ãã®ãã¼ã«ã¯ãAmazon EC2ã®AMIãVirtualBoxãVMwareç¨ã®OSã®ã¤ã¡ã¼ã¸ãä¸è²«æ§ã®ããã¤ã³ã¿ã¼ãã§ã¤ã¹ã§ç°¡åã«ä½ã£ã¦ããããã®ã§ãï¼ãã¨ãã°Vagrantã®å ´åã¯ä»¥åã¯Patrickãããä½æããVeeweeã使ããã¨ãå®çªã ã£ãã®ã§ãããä»å¾ã¯ããã«å¤ãããã®ã«ãªã£ã¦ããããããã¾ããã (ç¾æç¹ã¯ã¾ã ãã¼ã¸ã§ã³0.1ãªã®ã§ããããã©ãã©ãè¯ããªãã¨æãã¾ãï¼) ã¤ã³ã¹ãã¼ã«http://www.packer.io/downloads.html ãããã«ãæ¸ã¿ã®ãã¡ã¤ã«ãå ¥æãã¾ãããããã¯èªåã§ãã«ããããã¨ãå¯è½ã§ã(ãã«ãã«ã¯goãªã©ã®ãã¼ã«ãå¿ è¦ã§ã)ã ãã¡ã¤ã«ã¯zip
2024å¹´4æ1æ¥ãããSupershipæ ªå¼ä¼ç¤¾ã¯è¦ªä¼ç¤¾ã§ããSupershipãã¼ã«ãã£ã³ã°ã¹æ ªå¼ä¼ç¤¾ã«å¸ååä½µããã¾ããã åä½µã«ä¼´ããåç¶ä¼ç¤¾ã§ããSupershipãã¼ã«ãã£ã³ã°ã¹ã¯ç¤¾åãSupershipã«å¤æ´ããæ°ããªçµå¶ä½å¶ãçºè¶³ãã¾ãããæ¬ä»¶ã«é¢ãã詳細ã¯ããã¬ã¹ãªãªã¼ã¹ãã確èªãã ããã 2024å¹´4æ1æ¥ãããSupershipæ ªå¼ä¼ç¤¾ã¯è¦ªä¼ç¤¾ã§ããSupershipãã¼ã«ãã£ã³ã°ã¹æ ªå¼ä¼ç¤¾ã«å¸ååä½µããã¾ããã åä½µã«ä¼´ããåç¶ä¼ç¤¾ã§ããSupershipãã¼ã«ãã£ã³ã°ã¹ã¯ç¤¾åãSupershipã«å¤æ´ããæ°ããªçµå¶ä½å¶ãçºè¶³ãã¾ããã æ¬ä»¶ã«é¢ãã詳細ã¯ããã¬ã¹ãªãªã¼ã¹ãã確èªãã ããã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}