dockerã®ã¤ã¡ã¼ã¸ãæ§ç¯ããã«ã¯Dockerfileã使ã£ã¦æ§ç¯ãã¾ãããããã Dockerfileã¯ã»ã¼åãªãshell scriptãªã®ã§ããããã¨æ¸ãã«ããã¨ããåé¡ ãããã¾ãããã®ãããpackerã使ã£ã¦ã¤ã¡ã¼ã¸ãæ§ç¯ããæ段ãåãããã ãã¾ããããpackerã®ansible provisionerã¯ansible-pullãå é¨ã§å®è¡ãã㨠ããå½¢å¼ã®ãããansibleå®è¡ç°å¢ãgitãã¤ã¡ã¼ã¸ã®ä¸ã«å ¥ããå¿ è¦ãããã¾ ãã ã¾ããèµ·åãã¦ããã³ã³ããã«å¯¾ãã¦ã³ãã³ããå®è¡ããããã«ã¯sshã§å ¥ãå¿ è¦ãããã¾ããããã¯ã¤ã¾ããsshdãå ¥ãã¦sshã®ãã¼ããexposeããå¿ è¦ãã ãããªããã¤åçã«å¤ããdockerã®å¤å´sshãã¼ããææ¡ããå¿ è¦ãããã¾ãã ãããã®åé¡ç¹ã解決ããããã«ãansibleãç´æ¥dockerã³ã³ããã¨ããã¨ãã ãããã©ã°ã¤ã³
{{#tags}}- {{label}}
{{/tags}}