GitHub ã® Dockerfile ãã Docker Image ãèªåãã«ãããè¨å®æé
Docker Hub ã® Automated Builds ã使ãã¨ãGitHub ã¾ã㯠Bitbucket ã® Dockerfile ã®å¤æ´ãæ¤ç¥ãã¦ãDocker Image ãèªåãã«ããããã¨ãã§ãã¾ãã
- ã¬ãã¸ããªã¸ã®ã³ããããæ¤ç¥ãã¦ãDocker Hub ã® Docker Image ãèªåã§ãã«ããã¾ãã
- ã¿ã°ããã©ã³ãã®è¿½å ãæ¤åºãã¦ãèªåã§ã¿ã°ã»ãã©ã³ãåãTAGã¨ãã Docker Image ãä½ããã¨ãå¯è½ã
ä¸éãè¨å®ã試ãã¦ã¿ãã®ã§ãã¡ã¢ã§ãã
- unagenau/docker-jiji2 ã«é ç½®ãã¦ãã Dockerfile ãèªåãã«ãããããã«ãã¦ã¿ã¾ããã
- Docker Hub ã®ã¢ã«ã¦ã³ãããªãå ´åã¯ããã¡ãããä½æãã¦ãã ããã
1. Docker Hub ã®ã¢ã«ã¦ã³ã 㨠GitHubã¢ã«ã¦ã³ãã¨ãé£æºããã
ã¾ãåãã«ãDocker Hub ã®ã¢ã«ã¦ã³ã 㨠GitHubã¢ã«ã¦ã³ãã¨ãé£æºãããå¿ è¦ãããã¾ãã
Docker Hubã«ãã°ã¤ã³ãã¦ãå³ä¸ã®ã¡ãã¥ã¼ãã Settings ãé¸æãã¾ãã
ç¶ãã¦ã ä¸ã®ã¿ããã Linked Accounts & Services ãé¸æã
GitHub ãé¸æã
ãªã³ã¯æ¹æ³ãé¸æãã¾ãã èªåã§hookãè¨å®ãã¦ããããããã®ã§ã Public and Private ãé¸æãã¾ããã
é£æºç¢ºèªã®ç»é¢ã表示ãããã®ã§ãé£æºã許å¯ãã¦å®äºã
2. èªåãã«ããè¡ãã¬ãã¸ããªãä½ã
GitHubã¢ã«ã¦ã³ãã¨ã®é£æºãã§ããããèªåãã«ããè¡ãã¬ãã¸ããªãä½ãã¾ãã
å³ä¸ã®ã¡ãã¥ã¼ãã Create - Create Automated Build ãé¸æã
GitHub ãã¯ãªãã¯ã
Dockerfile ããã¹ããã¦ããã¬ãã¸ããªãé¸æãã¾ãã
ããããè¨å®ãã¾ãã
- Short Description ã«èª¬æãå ¥å
- Click here to customize ãã¯ãªãã¯ããã¨ã詳細è¨å®ç»é¢ãéãã¾ãã
- Dockerfile ãã«ã¼ããã£ã¬ã¯ããªã«ç½®ãã¦ããªãã£ãã®ã§ã詳細ç»é¢ã® Dockerfile Locationã§æå®ãã¦ãã¾ãã
- ã¾ããã¿ã°ã®è¿½å ãæ¤åºãã¦ãã¿ã°åä»ã®ã¤ã¡ã¼ã¸ãä½æããè¨å®ãè¡ã£ã¦ã¿ã¾ããã
è¨å®ãå®äºå¾ãCreate ãã¯ãªãã¯ããã¨ãã¬ãã¸ããªãä½æããã¾ãã
3. ã¤ã¡ã¼ã¸ããã«ããã¦ã¿ã
ã¬ãã¸ããªãã§ããããGitHubã¬ãã¸ããªã«å¤æ´ãã³ããããã or ã¿ã°ã追å ããã¨ãèªåã§ãã«ããè¡ããã¾ãã ã¾ããUIããæåã§ãã«ããå®è¡ãããã¨ãã§ãã¾ããæåãã«ããããå ´åã¯ãBuild Settings ã® Trigger ãã¿ã³ãã¯ãªãã¯ããã°OKã
Build Details ã¿ãã§ããã«ãã¿ã¹ã¯ã®å®è¡ç¶æ³ã確èªã§ãã¾ãã
ä¸æ¦ Quque ã«ç©ã¾ããå¾ã 10åç¨åº¦å¾ ã¤ã¨ãã«ãããã¾ããã