ããã«ã¡ã¯ã ã¤ã³ãã©ãã¼ã ã®é島ï¼@nojimaï¼ã§ãã ãã¼ã ã®ã¡ã³ãã¼ã« nginx ã®è¨å®ã«ã¤ãã¦æ°ãã¤ããã¹ãç¹ãå ±æããããã«ãã¬ãã¥ã¼è¦³ç¹ãæ¸ãã¾ããã ãã£ãããªã®ã§ããã§å ¬éãã¾ãã ã»ã¨ãã©ã®é ç®ã¯èªåããã¼ã ã®ã¡ã³ãã¼ã®å®ä½é¨ã«åºãã¦ãã¾ãã ã¬ãã¥ã¼è¦³ç¹ server server_name ãä»ã®ãã¤ã¨è¢«ã£ã¦ããªããã listen ãã IP ã¢ãã¬ã¹ãåãå ´åãserver_name ã§åºå¥ã§ããªãã¨ãããªãã TLS ã使ãå ´åãSNI ããµãã¼ãããªãã¯ã©ã¤ã¢ã³ãã§ã¯ TLS ç¨ã®è¨å®ã default_server ã®ãã®ã使ãããç¹ã«ã注æã TLS ã使ãå ´åãlisten ãã£ã¬ã¯ãã£ãã« ssl ãªãã·ã§ã³ãæ¸ãã¦ãããã location location ã®ãããã®é çªã«æ³¨æ æ£è¦è¡¨ç¾ã® location ã¯åæ¹ä¸è´ã® location ãã
ä»ããã§ãéã«åãDockerã®åºç¤ãã³ã³ããã¨ã¯ä½ããDockerfileã¨ã¯ä½ããDocker Meetup Tokyo #2 ã³ã³ããåä»®æ³åã®æè¡ã¨ãã¦æ³¨ç®ããã¦ããDockerã®åå¼·ä¼ãDocker Meetup Tokyo #2ãã4æ11æ¥ã«ã°ã¼ã°ã«æ±äº¬ãªãã£ã¹ã§éå¬ããã¾ããã ãã®åå¼·ä¼ã«ã¯å®å¡100åã®ã¨ããã¸400åãè¶ ããç³ãè¾¼ã¿ããããåå ã§ããªãã£ãæ¹ãå¤ãã£ãã¨æãã¾ããæ¬è¨äºã§ã¯ãæåã®ã»ãã·ã§ã³ã¨ãã¦è¡ããã森åä¹æ°ã«ãããä»ããã§ãéã«åãDockeråºç¤+Docker 0.9æ¦è¦ãããã¤ã¸ã§ã¹ãã§ç´¹ä»ãã¾ãããã åèè¨äº 2013å¹´ã®Dockerç»å ´ããç¾å¨ï¼2018å¹´ï¼ã¾ã§ãæ¯ãè¿ãããã®æ¬¡ã®æ®µéãå±æããè¨äºããåç §ãã ããã Dockerã³ã³ããæ代ã®ç¬¬ä¸ç« ã®çµãããããã¦ç¬¬äºç« ã®å±æãªã© ä»ããã§ãéã«åãDockeråºç¤ æ ªå¼ä¼ç¤¾ãããã²ã¼
æ§æ管çãã¼ã«ã¨ããã°Chefã§ãã å¼ç¤¾ããã°ã§ãæ§æ管çãã¼ã«ã«é¢ããè¨äºã¯ãã£ããããã¾ãããã»ã¨ãã©ãChefã«é¢ããè¨äºã§ãã ç§ãChefã«ã¤ãã¦ãæ¸ãã¦ãããã¾ãããRubyãè¦æãªèªåã¨ãã¦ã¯ãChefã®ã¬ã·ããæ¸ãããããã®ã¯é£ããããã§ãã ï¼ããããè¨äºãããã¾ãã) ã§ãChefã®ãããã«ä½¿ããããªæ§æ管çãã¼ã«ãæ¢ãã¦ããããªããããããããªããã¨æã£ãã®ããä»åç´¹ä»ããAnsibleã§ãã Ansibleã¨ã¯ Ansibleã¨ã¯ãPythonã§è¨è¿°ãããæ§æ管çãã¼ã«ã§ãã ã¾ãã¯Ansibleã®åºæ¬ç¨èªã«ã¤ãã¦è§£èª¬ãã¾ãã ã»ã¢ã¸ã¥ã¼ã« ã¯ã©ã¤ã¢ã³ãå ã§ã®åãã¯ãã¢ã¸ã¥ã¼ã«ãã¨ãã¦å®ç¾©ããã¾ãã ã½ããã¦ã§ã¢ãã¤ã³ã¹ãã¼ã«ãããããµã¼ãã¹ã®èµ·åããããããã¢ã¸ã¥ã¼ã«ã¯ãããããç¨æããã¦ã¾ãã èªåã§ã¢ã¸ã¥ã¼ã«ãä½æãããã¨ãå¯è½ã§ãã ãã®ã¢ã¸ã¥ã¼ã«ã¯ä½ã§ä½
ãµã¼ãã®åä½ã«ç°å¸¸ãçºçããéã«åå ãæ¢ãããã®Linuxã³ãã³ãã§ãèªåç¨ã®ã¡ã¢ã§ãã å ¨ã¦manã¨ãã°ã°ã£ããåºã¦ããã®ã§èª¬æã¯é©å½ã§ããæãã¤ãããå¾ã§è¿½è¨ãã¦ããããã§ãã 対象ã¯Debian Squeezeã«ãªãã¾ãã å ¨ã¦ããã±ã¼ã¸ã¤ã³ã¹ãã¼ã«ã§ãããã®ã§ãããã±ã¼ã¸å㯠[in packagename] ã¨ãã¦ããã¾ãã åæããã³ã¡ã³ããããã¨ããããã¾ãã è¯ãæ°ãªã³ãã³ãã¯è¿½è¨ãã¦ããã¾ãã ï¼è¿½å ããã³ãã³ãï¼ * telnet (+ã³ã¡ã³ã wget, netcat) * arp (+ã³ã¡ã³ã arpwatch) * pstree * fdisk ã³ã¡ã³ãã« gdisk * host, dig * watch * reboot
ç°å¢æ§ç¯ æ®éã« Boot2Docker ãMacã«ã¤ã³ã¹ãã¼ã«ãã¾ãããBoot2Docker㯠ããã®ããã°ã®ä¸ã»ã©ã®ç»åã®ããã«VitualBoxä¸ã§Dockerãµã¼ãã¼ãåãããMacã® dockerã³ãã³ããDockerãµã¼ãã¼ã¨éä¿¡ãã¦åä½ãã¾ãã Dockerãµã¼ãã¼ã®ä½æã»èµ·åãªã©ã¯ boot2docker ã³ãã³ãã§è¡ãã¾ãã ä½æã»èµ·åã¯ã % boot2docker init % boot2docker up ããã§ãdockerã³ãã³ãã使ããããã«ãªãã¾ãããéä¿¡ç¨ã®DOCKER_HOSTç°å¢å¤æ°ãè¨å®ããå¿ è¦ãããã¾ãã % export DOCKER_HOST=tcp://192.168.59.103:2375 % docker images REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE nginx latest c
ä»å¹´ã®åããããããå人çãªæè¡æ¤è¨¼ã«ã¯SSDã§åä½ãéãã1æé1åã§æéãå®ãã®ã¨ ãã±ã¼ã·ã§ã³ãSan Franciscoã«ããã¨sshã§ãã¬ã¹ãã³ã¹ãæªããªãã®ã§ãå ¨é¨Digital Oceanã使ã£ã¦ããã(徳丸å çãç´¹ä»ããåãã使ã£ã¦ãããã ï¼) Digital Oceanã«ã¤ãã¦ã¯Rebuild: 2: Rails, Redis, VPS (Kenn Ejima)ã®42åãããããè¨åããã¦ã¾ããå¿ è´ã§ãã 使ã£ã¦ãæ§åã®MacBookAirã¿ãããªè²§å¼±ãªãã·ã³ã ã¨ãã¼ã«ã«ã§VMåããã¨ãã¡ã³åãã¾ããã¨ãã§æ³£ããããªãã®ã§ãDigital Oceanã ã¨æ³£ããã«æ¸ãã§å¿«é©ã ããã§ä»æ¥Vagrantçµç±ã§Digital Oceanå©ç¨ããã¨ãã³ãã³ãã©ã¤ã³ããå¿ è¦ãªã¨ãã«æ°è¦ã¤ã³ã¹ã¿ã³ã¹(Droplet)ä½ã£ã¦ã æ¤è¨¼çµãã£ããåé¤ã¨ããæ軽ãªä½¿ãæ¨ã¦é«éãµã¼ãç°å¢ãå©ç¨
ãããVPS 2GB SSDã®CentOS 6.4ãã»ããã¢ãããã¦ã¤ã±ã¦ããRailsãµã¼ãã«ä»ä¸ããã¾ã§ã®ã·ãªã¼ãºã§ãã第5åã¯nginxã®å°å ¥ã§ããnginxã¯Apacheã¨æ¯ã¹ãã¨æ´å²ã¯æµ ãã§ããRailsã§ä½¿ãã®ãããªãã¡ã¸ã£ã¼ã«ãªã£ã¦ãã¾ãããããApacheã®æ¹ãã好ã¿ã®æ¹ã¯ãããVPS/Cent OS 6.4ã¸ã®Apacheå°å ¥ã試ãã¦ã¿ã¦ãã ããï¼ (07-10 20:30) ELBçµç±ã®nginxã§ã¯ã©ã¤ã¢ã³ãã®IPãåå¾ããæ¹æ³ã追è¨
ãç¥ãã
é害
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}