éçºç°å¢ãDockerã«ãã話
è¥å¹²é£ãã¿ã¤ãã«ã£ã½ãã
ã©ã®éçºç°å¢ãã¨ãã話ã ãã©ãèªåã®å ´åã
- ã¤ã³ãã©ç¨éã®ã¡ãã£ã¨ããPythonã¹ã¯ãªããã®éçº
- Terraformããã¼ã«ã«ããå®è¡ãã
- éçºããAnsibleã®Roleããã¼ã«ã«ã§è©¦ã
- golangã®éçºããã¼ã«ã«ã§è¡ã
ã¿ãããªã®ãããã¾ã§ã¯Vagrantï¼Virtualboxä¸ã§è¡ã£ã¦ããã
主ãªçç±ã¨ãã¦ã
- 家ã®PCã¯Windowsã§Linuxéçºããã¼ã«ã«ã§å®æ½ãã«ãã
- ä¼ç¤¾ã®Macã§ããã¼ã«ã«ãæ±ããããªã
- 家ã¨ä¼ç¤¾ã®ç°å¢ãå ±éåããã
ã¿ãããªã®ãããã
Terraformãgolangã¯Macãã¼ã«ã«ã«ãå
¥ãã¦ãã®ã ãã©ã
BrewCaskã§ã®æ´æ°ãå±ããããã¯ããã¼ã«ã«ç´ã¯ç®¡çãã«ã¤ããã¨ã
Vagrantã§ãåã£ã¦ãããã ãæèã
ã§Dockerã§ãããã¨ã«ãããã ãã©ã ããã ããªãã¶ã£ã¡ããç°¡åã§
Docker Toolboxããå
¥ãã¦ããã°ããã¨ã¯
ãpython:2.7.11-slimãã¨ããgolang:latestã
ã¨ãå¼ã£å¼µã£ã¦ãã¦ã»ã¼çµäºãªã®ã ãã
å©ä¾¿æ§ã®ããã«ããã¤ãã®ãã¼ã«ãå梱ããããã«ããã
- direnv
- peco
- ghq
direnvã¯AWSã®è¤æ°ã¢ã«ã¦ã³ãåæ¿ã®ããã
direnv allowã®çµæãä¿æããã®ã§ã¦ã¼ã¶ãã¼ã ããã¦ã³ããã¦ããã
peco+ghqã¯ã¬ãã¸ããªç®¡çãgopathæ¹å¼ã«ãã¦ãã¦ä¾¿å©ã«ä½¿ãããã
$GOPATHããã¦ã³ããããæãã
ãã¨ä¸çªããããã£ãã®ã¯Ansibleã§1.9ç³»ã¨2.xç³»ã®ç§»è¡æãDockerã§åãæãããã®ã ãã
å®ã¯ã³ã³ã¯ã¾ã ãã¾ããã£ã¦ãªãé¨åãããã
ãããªããã§éãªDockerfileãéç£ä½å¶ã«å
¥ãã¤ã¤ã
ä½å¢ãé§ã£ã¦ããããã°ã¢ããªãã©ãã«ããã¦ããããã¨ç»çãã¦ããã¨ããã
Mac for Dockerã¯ã¾ã 試ãã¦ã¾ããã