ãGCPð³ããŸã Artifact Registryã«ç§»è¡ããŠãªãã¢ãã¿ãž
èšäºã«ãããã£ãã
ç§ã¯GCPäžã§çµãŸãããããžã§ã¯ããåãããŠããã®ã§ãããæéãã§ããæã«Artifact Registryã«ç§»è¡ããããšæã£ãŠããŸãã
ãã®éã«äžäœäœãå€ããã®ãæŠèŠãæŽãã§ãããããæé ãªèšäºãå°ãªãã£ãã®ã§ãŸãšããŠã¿ãŸããã
æ¯èŒããŒãã«
æ©èœ | Container Registry | Artifact Registry |
---|---|---|
ãµããŒã察象ã®ãã¡ã€ã«åœ¢åŒ | ã³ã³ãã ã€ã¡ãŒãžã®ã¿ | ã³ã³ãã ã€ã¡ãŒãžãJava ããã±ãŒãžãNode.js ã¢ãžã¥ãŒã«ãªã©ãè€æ°ã®ã¢ãŒãã£ãã¡ã¯ã圢åŒïŒâ»ããã±ãŒãž ãªããžããªã¯ã¢ã«ãã¡çã§ããïŒ |
ãªããžã㪠| ãããŸã§ã€ã¡ãŒãžã push ããããšããªãå Žåããã«ããªãŒãžã§ã³ã«ãªããžããªãèªåçã«äœæããŸãã | ã€ã¡ãŒãžã push ããåã«ãªããžããªãäœæããå¿ èŠããããŸãããã«ãã»åäœãªãŒãžã§ã³ã®ããããã«äœæã§ããŸãã |
çµç¹ | Google Cloud ãããžã§ã¯ãå ã®åããã«ããªãŒãžã§ã³ ãã¹ãäžã®ãªããžããªã¯ãã¹ãŠãåäžã®ã¹ãã¬ãŒãž ãã±ãããå ±æããŸãã | ãªãŒãžã§ã³ãŸãã¯ãã«ããªãŒãžã§ã³ããšã«ãåå¥ã®ãªããžããªãäœæã§ããŸããã©ãã«ãé©çšããŠãããŒã ãéçºæ®µéããã®ä»ã®ã«ããŽãªå¥ã«ã°ã«ãŒãåããŸãã |
ã¢ã¯ã»ã¹å¶åŸ¡ | ãããžã§ã¯ã ã¬ãã«ãŸãã¯ãã«ããªãŒãžã§ã³ ãã¹ãããšã«ã¹ãã¬ãŒãž ãã±ããã«å¯ŸããŠæš©éãä»äžããŸã | ãããžã§ã¯ããŸãã¯åã ã®ãªããžããªã«å¯Ÿããæš©éãä»äžããŸãã |
ãã¹ãå | ãã¹ã㯠gcr.io ãã¡ã€ã³ã«ãããŸãã | ãã¹ã㯠pkg.dev ãã¡ã€ã³ã«ãããŸããååã®åœ¢åŒã®è©³çŽ°ã«ã€ããŠã¯ãªããžããªãšã¢ãŒãã£ãã¡ã¯ãã®ååãã芧ãã ããã |
æš©é | Cloud Storage ã®æš©éã䜿çšããŠã¢ã¯ã»ã¹æš©ãä»äžãããåã ã®ãªããžããªã§ã¯ã¢ã¯ã»ã¹ãå¶éããããšã¯ã§ããŸããã | Artifact Registry ã®æš©éã䜿çšããŠã¢ã¯ã»ã¹æš©ãä»äžãããåã ã®ãªããžããªãžã®ã¢ã¯ã»ã¹ãå¶éã§ããŸãã |
顧客管çã®æå·éµïŒCMEKïŒ | CMEK ã䜿çšããŠãã€ã¡ãŒãžãå«ãã¹ãã¬ãŒãž ãã±ãããæå·åããã | åã ã®ãªããžããªãæå·åããã«ã¯ãCMEK ã䜿çšããŸãã |
Pub/Sub éç¥ | gcr ãããã¯ã®å€æŽãå ¬éããŸãã | gcr ãããã¯ã®å€æŽãå ¬éããŸããæ¢åã® Container Registry ãµãŒãã¹ãšåããããžã§ã¯ãã«ãªããžããªãäœæãããšãæ¢åã® Pub/Sub æ§æãèªåçã«æ©èœããŸãã |
æé | ã¹ãã¬ãŒãžãšå€åããããã¯ãŒã¯ãå«ã Cloud Storage ã®äœ¿çšéã«åºã¥ããŠããŸãã | ã¹ãã¬ãŒãžãšå€åããããã¯ãŒã¯ã«åºã¥ããŠç¬èªã®æéãèšå® |
ã€ãŸã...Artifact Registryã®ããæã¯ð
- è€æ°ã®ã¢ãŒãã£ãã¡ã¯ã圢åŒã§ä¿åãå¯èœã«ãªã£ã
- ãã现ããæš©é管çãã§ããããã«ãªã£ã
- ãªãŒãžã§ã³ ãªããžããªã®äœæããµããŒããããããšã«ããé©åãªå Žæãéžãã§ã€ã¡ãŒãžçã眮ããããã«ãªã£ãã
- ãªãŒãžã§ã³ãå°éããæéã¢ãã«ããéåšãã¯ç¹ã«æ°ã«ãªãæãšããããšã§ä»¥äžåŒçš
Artifact Registry ã®æéäœç³»ã¯ãäžãïŒå€åãïŒãããã¯ãŒã¯ãšã¹ãã¬ãŒãžäœ¿çšéã®çµã¿åããã«åºã¥ããŠããŸããããªãŒãžã§ã³ ãªããžããªããµããŒãããŠããŸããã€ãŸããã³ã³ãã ãªããžããªããã¹ããããªãŒãžã§ã³ãéžæå¯èœã§ããããšãæå³ããŠããŸãããŠããããããã®ã¹ãã¬ãŒãžã®è²»çšã¯ Artifact Registry ã®æ¹ãé«ããªããŸããããªããžããªã®å°åãæé©åãã䜿çšãããªãŒãžã§ã³ãšåããªãŒãžã§ã³ã«ãã¹ãããããšã§ãçµæãšããŠã³ã¹ãåæžã«ã€ãªãããŸããåäžãªãŒãžã§ã³å ã®ãããã¯ãŒã¯ ãã©ãã£ãã¯ã¯äžãïŒå€åãïŒãšã¯èŠãªããããç¡æãšãªãããã§ãã
Container Registry ã¯ã©ããªãã®ïŒ
Container Registry ã¯çŸåšãå©çšå¯èœã§ Google Enterprise API ã«ãããµããŒãã¯ç¶ç¶ãããŸããããªãªãŒã¹ãããæ°æ©èœã¯ Artifact Registry ã§ã®ã¿å©çšå¯èœã§ãContainer Registry ã§ã¯éèŠãªã»ãã¥ãªãã£ä¿®æ£ã®ã¿ãé©çšãããŸãã
ä»ããGCPã§CI/CDçµããªãContainer Registryã䜿ãå¿ èŠã¯ãªãããã§ããïŒ
Artifact Registry ã«ã€ããŠã¡ãã£ãšè©³ããã¿ãŠã¿ã
ãããããã«ãã®ã¢ãŒãã£ãã¡ã¯ã管ç
Container Registry ã®é²å圢ã§ãã Artifact Registry ã¯ãçµç¹ãã³ã³ãã ã€ã¡ãŒãžãšèšèªããã±ãŒãžïŒMaven ã NPM ãªã©ïŒã 1 ãæã§ç®¡çã§ããå Žæã«ãªããŸããããã㯠Google Cloud ã®ããŒã«ãšã©ã³ã¿ã€ã ãšå®å šã«çµ±åãããŠããããã€ãã£ãã®ã¢ãŒãã£ãã¡ã¯ã ãããã³ã«ã®ãµããŒããä»å±ããŸããããã«ãããCI / CD ããŒã«ãšç°¡åã«çµ±åããŠèªååãã€ãã©ã€ã³ãèšå®ã§ããããã«ãªããŸããã
ãã£ãã·ã¥ããã Docker Hub ã®ã€ã¡ãŒãžã¯ïŒð¥
mirror.gcr.io ã§åŒãç¶ããDocker Hub ããé »ç¹ã«ãªã¯ãšã¹ããããã€ã¡ãŒãžãmirror.gcr.io ã«ãã£ãã·ã¥ãããŸãããã£ãã·ã¥ã«ä¿åãããå ¬éã€ã¡ãŒãžã䜿çšå¯èœãªå Žåã¯ããã䜿çšã㊠Docker ããŒã¢ã³ãæ§æã§ãããã£ãã·ã¥ã«ä¿åãããã³ããŒããªãå Žå㯠Docker Hub ããã€ã¡ãŒãžã pull ããŠããŸãã
ïŒã³ã³ããåãããŠããæã¯ãã£ãã·ã¥ãæèããŠã¿ããšè§£æ±ºããããšãå€ãã§ãïŒâŠãæèããŠããããšã§ã³ã³ããç³»ã®èšäºãèŠãéã«èªã¿ããããªã£ããšæããŠããŸãã
Google ãæäŸããã€ã¡ãŒãžã¯ãåŒãç¶ã gcr.io ã§å©çšã§ããŸãð¥
ã©ã¡ãã®ãããã¯ãããPub/Sub éç¥ã«åããgcrããããã¯ã䜿çšããŸããã€ãŸãããgcrããããã¯ãžã®æ¢åã®ãµãã¹ã¯ãªãã·ã§ã³ã«ã¯ãArtifact Registry ãš Container Registry ã®äž¡æ¹ã®éç¥ãå«ãŸããŠããŸãã
ã©ã¡ãã®ãããã¯ããåã Container Analysis API ã䜿çšããŸããContainer Registry ãŸã㯠Artifact Registry ã®ã©ã¡ãã㧠Container Analysis API ã æå¹ã«ãããšãäž¡æ¹ã®ãããã¯ã㧠API ãæå¹ã«ãªããŸãã
Container Analysis ã¯ãArtifact Registry ãš Container Registry ã®äž¡æ¹ã§ãã³ã³ãã ã€ã¡ãŒãžã®ã¡ã¿ããŒã¿ä¿åãšè匱æ§ã¹ãã£ã³ããµããŒãããŠããŸãã
èšäºãèªãã§é ã
æåŸãŸã§èšäºãèªãã§é ãããããšãããããŸãïŒ
ãŸããååã®èšäºã§æ²¢å±±ã®ããããé ãããããšãããããŸããïŒ
è¯ããè²°ãããšèšäºãæžãã¢ããã«ç¹ããã®ã§ãšãŠãå¬ããã§ãð¥ºïŒ
Discussion