ã¿ãªããããã«ã¡ã¯ïŒ Vorlon.JSããŒã ã«ããäžé£ã®èšäºãHow We Deployed DevOpsããå ¬ââéããŠããŸãããã€ã¯ããœããã¯ãDevOpsãã©ã¯ãã£ã¹ã®å®è£ ã«äœ¿çšã§ããå€æ°ã®ããŒã«ãæäŸããŠããŸãããã®ã·ãªãŒãºã§ã¯ãVisual Studio Team ServicesãVisual Studio Codeãããã³Microsoft Azureãšã®é£æºã«ã€ããŠè©³ãã説æããŸãã ãã¡ãããMicrosoft Azureã«ã¢ããªã±ãŒã·ã§ã³ããããã€ããå Žåãå«ãããã€ã¯ããœãã以å€ã®å€ãã®ããŒã«ã䜿çšããå¯èœæ§ã«ã€ããŠã觊ããŸãã
Vorlon.JSã¯node.jsããŒã¹ã®ããŒã«ã§ãWebéçºè ããç¹ã«ã¢ãã€ã«ã·ã¹ãã ãçµã¿èŸŒã¿ã·ã¹ãã ã§ãWebã¢ããªã±ãŒã·ã§ã³ããªã¢ãŒãã§ãã¹ããå¶åŸ¡ããããã°ãã䟿å©ãªæ¹æ³ãæäŸããŸãã MSDNã®ããã°ã§ãããŒã ã¯Vorlon.JSã®äœæ¥ãæŽçããéã®DevOpsãã©ã¯ãã£ã¹ã®æ®µéçãªå®è£ ãšãæ¥åžžã®ã¿ã¹ã¯ã解決ããããã®ããŒã«ã®éžæã«ã€ããŠè©³ãã説æããŸããã Vorlon.JSã¯ãªãŒãã³ãœãŒã¹ãããžã§ã¯ãã§ãã
ãµã€ã¯ã«ã³ã³ãã³ãïŒ
- Visual Studio Team Servicesã䜿çšãããããžã§ã¯ãã®èšç»ãšç®¡ç
- GitHubããã³Visual Studio Team Servicesãã«ãã·ã¹ãã ãšã®ç¶ç¶çãªçµ±å
- Microsoft Azureããã³Azure Resource Managerã䜿çšããASAãã¬ãŒã ã¯ãŒã¯
- Visual Studio Team Servicesã®ãªãªãŒã¹ç®¡ç
- Microsoft Azure App ServiceãšWeb Appsã䜿çšããå®çšŒåç°å¢ã§ã®ãã¹ã
ãŸããVisual Studio Team Servicesã䜿çšããèšç»ãšãããžã§ã¯ã管çã«é¢ããæåã®èšäºã§ãä»ããæ £ããããšãã§ããŸãã
ãã¹ãŠã®ãããžã§ã¯ãåå è éã®æ å ±äº€æã¯ã³ã©ãã¬ãŒã·ã§ã³ã«ãšã£ãŠéåžžã«éèŠã§ããããã®ãããªäº€æã確ç«ããæè¯ã®æ¹æ³ã¯åãããŒã«ã䜿çšããããšã§ãã
Visual Studio Team ServicesïŒVSTSïŒã«ã¯ããŠãŒã¶ãŒã¹ããŒãªãŒã®äœæãããšã©ãŒã®å ±åãåãããžã§ã¯ãã¿ã¹ã¯ã®ã¿ã€ãã³ã°ã®è¿œè·¡ãŸã§ããã¹ãŠã®æ®µéã§ãããžã§ã¯ããèšç»ããããã®ããŒã«ãå«ãŸããŠããŸãã ãããã®ã·ã¹ãã ã¯ãéçºã®æè¡çã¿ã¹ã¯ã®ã¿ãç®çãšããŠããŸããããããžã§ã¯ãã®ãã¹ãŠã®åå è ã䜿çšããããšãã§ããŸãïŒãããã䜿çšããå¿ èŠããããŸãïŒã
Vorlon.JSã§ã®DevOpsãã©ã¯ãã£ã¹ã®å®è£ ã«é¢ããäœæ¥ãæŽçããããã«ãVSTSãéžæããŸããã ãããããããžã§ã¯ãã¯ãªãŒãã³ãœãŒã¹ã§ãããããGitHubã®åé¡ç®¡çã¡ã«ããºã ã䜿çšããŠãéçºã®åé¡ã解決ãããšã©ãŒã远跡ããŸããã
Visual Studio Team Servicesã®äœ¿çšãéå§ãã
VSTSã¢ã«ãŠã³ãããŸã ãæã¡ã§ãªãå Žåã¯ã ãã®ããŒãžã§äœæã§ããŸã ã æ¥ç¶ããããæ°ããããŒã ãããžã§ã¯ããäœæã§ããŸãã
次ã®2ã€ã®æ±ºå®ãè¡ãå¿ èŠããããŸãã
- 䜿çšããããã»ã¹ãã³ãã¬ãŒãïŒã¹ã¯ã©ã ãã¢ãžã£ã€ã«ãCMMI
- éžæããããŒãžã§ã³ç®¡çã·ã¹ãã ïŒTeam Foundation Version ControlãŸãã¯GIT
ã¹ã¯ã©ã ãšGITããã»ã¹ãã³ãã¬ãŒããéžæããŸããã Vorlon.JSã®ãœãŒã¹ã³ãŒãã¯GitHubã§ãã¹ããããŠãããããããŒãžã§ã³ç®¡çã¡ã«ããºã ã¯éèŠã§ã¯ãããŸããã
ãããžã§ã¯ããäœæãããšãã·ã¹ãã ã¯ã¡ã€ã³ããŒãžã®æ å ±ããã«ã«ãªãã€ã¬ã¯ãããŸããããã§ããããžã§ã¯ãã«é¢ããæçšãªæ å ±ïŒæè¿ã®ã¢ã»ã³ããªã®çµæãéããŠããäœæ¥é ç®ãŸãã¯ãšã©ãŒã®æ°ãªã©ïŒãå«ãã¿ã€ã«ãåºå®ã§ããŸãã
Visual Studio Team Servicesã«ã¯ããã°ãããŒããå«ãŸããŠãããåéã§ã¢ã€ãã ããã©ãã°ã¢ã³ãããããããã ãã§ããŠãŒã¶ãŒã¹ããŒãªãŒãã¿ã¹ã¯ããšã©ãŒãç°¡åã«ç®¡çããããä»ã®ã¿ã¹ã¯ã解決ãããã§ããŸãã 圌女ã¯ããªãããããžã§ã¯ããèšç»ããããŒã ãšããåãããã®ãæäŒããŸãã ãã¹ãŠã®åã¯ãèŠä»¶ãšã«ãŒã«ã«åãããŠæè»ã«ã«ã¹ã¿ãã€ãºã§ããŸãã
ããŒã ã¯ãŒã¯
ããã¯ãã°ã¢ã€ãã ãšã¹ããªã³ããäœæããåã«ãããŒã ãã»ããã¢ããããå¿ èŠãããå ŽåããããŸãã
ãããè¡ãã«ã¯ãããŒã ãããžã§ã¯ãã®ããŒã ç»é¢ã§[ããŒã ã¡ã³ããŒ]ã¿ã€ã«ãã¯ãªãã¯ããã ãã§ãã
æ°ãããŠã£ã³ããŠãéããã¡ãŒã«ã¢ãã¬ã¹ãæå®ããŠæ°ããã¡ã³ããŒãè¿œå ã§ããŸãã
ã¹ããªã³ããäœæ¥é ç®ãããã³ããŒã æ©èœã®ã«ã¹ã¿ãã€ãº
ãã¹ãŠã®ããŒã ã¡ã³ããŒãå²ãåœãŠãåŸãã¹ããªã³ããäœæ¥é ç®ãããã³Visual Studio Team Servicesã®ä»ã®ãªããžã§ã¯ãã®æäœæ¹æ³ãã«ã¹ã¿ãã€ãºã§ããŸãã
ããã·ã¥ããŒãã®WORKã»ã¯ã·ã§ã³ã«ç§»åããŸãã ããã¯ãã°ãã¥ãŒã§ãæ¯è»ã®ã¢ã€ã³ã³ãã¯ãªãã¯ããŸãã æ°ãããŠã£ã³ããŠãéããã«ãŒãã®å 容ãæ å ±ããã«ã«è¡šç€ºãããåãããã³ããŒã ã®å°±æ¥æ¥ãªã©ã®ãã®ä»ã®ãã©ã¡ãŒã¿ãŒãèšå®ã§ããŸãã
å·ŠåŽã®ã¹ããªã³ããã¯ãªãã¯ãããšããªã³ã¯ã衚瀺ãããŸãã ããã«åŸã£ãŠããã®ã¹ããªã³ãã®æ¥ä»ã調æŽããããååãå€æŽããŸãã
ãã®åŸãæ¥ä»ãåã¹ããªã³ãã®å³äžé ã«è¡šç€ºãããŸãã
[ãã£ãã·ãã£]ã¿ãã§ãåããŒã ã¡ã³ããŒããããžã§ã¯ãã«å°å¿µã§ããæéæ°ãèšå®ããé皌åæ¥ãæå®ã§ããŸãã
ãã®æ å ±ã¯ãäœæ¥ã®ã¹ã±ãžã¥ãŒã«ãšãããžã§ã¯ãèšç»ã®ã¬ããŒãã«äœ¿çšãããŸãã
äœæ¥é ç®ïŒãŠãŒã¶ãŒã¹ããŒãªãŒãã¿ã¹ã¯ãªã©ïŒã®äœæãšãåå è ãšã¹ããªã³ããžã®å²ãåœãŠ
ããã§ãã¹ããªã³ããšããŒã ãã»ããã¢ããããåŸãã¯ãŒã¯ã¢ã€ãã ïŒãŠãŒã¶ãŒã¹ããŒãªãŒãã¿ã¹ã¯ãªã©ïŒãäœæããŠãããŒã ã¡ã³ããŒã«å²ãåœãŠãããšãã§ããŸãã
VSTSããŒã¿ã«ã§ã¯ããããããã€ãã®æ¹æ³ã§è¡ãããšãã§ããŸãã æåã®æ¹æ³ã¯ãå·ŠåŽã®[ããã¯ãã°ã¢ã€ãã ]ããã¹ããã¯ãªãã¯ããŠãã¯ã€ãã¯äœææ©èœã䜿çšããããšã§ãã
è¿œå ãããã¢ã€ãã ã¯ãã¹ããªã³ãéã§ãã©ãã°ã§ããŸãã è¿œå åŸãè¡ãããã«ã¯ãªãã¯ããŠè©³çŽ°æ å ±ãå«ããŠã£ã³ããŠãéããã¯ãŒã¯ã¢ã€ãã ãããŒã ã¡ã³ããŒã«å²ãåœãŠãããè¿œå æ å ±ãæäŸããŸãã
ããŒãã¢ãŒãã«åãæ¿ããŠã+ NEWãã¿ã³ãæŒãããšãã§ããŸãã
éæšæºãªã¯ãšã¹ãã®äœæãããŒã ãããžã§ã¯ãã®æ å ±ããã«ã§ã®ä¿®æ£
Visual Studio Team Servicesã䜿çšãããšãã¯ãŒã¯ã¢ã€ãã ã®ã«ã¹ã¿ã ãªã¯ãšã¹ããäœæããã¡ã€ã³ããŒãžã®ããã·ã¥ããŒãã«æ·»ä»ããŠå€æŽã远跡ã§ããŸãã ããšãã°ãçŸåšã®ã¹ããªã³ãã§èšé²ããããšã©ãŒã®æ°ãè¿ãã¯ãšãªãäœæã§ããŸãã
[WORK]ã¿ãã«ç§»åããå·ŠåŽã®[ã¯ãšãª]é ç®ãéžæããŸãã ã芧ã®ãšãããVSTSã«ã¯ããã€ãã®ã¯ãšãªãæ¢ã«äœæãããŠããŸãã
æ°ããã¯ãšãªãäœæããã«ã¯ïŒããšãã°ããããžã§ã¯ãå ã®ã¢ã¯ãã£ããªãšã©ãŒã®æ°ãè¿ãïŒã[æ°èŠ]ãã¿ã³ãã¯ãªãã¯ããŸãã
äœæããã¯ãšãªãã°ã«ãŒãå šäœã§äœ¿çšã§ããããã«ããã«ã¯ã[ã¯ãšãª]ã»ã¯ã·ã§ã³ãã[å ±æã¯ãšãª]ã«ãã©ãã°ããŸãã ãã®åŸãããŒã æ å ±ããã«ã«æ»ãã+ãã¿ã³ãã¯ãªãã¯ããŠã衚瀺ããããŠã£ã³ããŠã§[ã¯ãšãªçµæ]ãéžæã§ããŸãã
æ°ããã¬ãžã§ãããã¯ãªãã¯ããŠã«ã¹ã¿ãã€ãºããŸãã ã¿ã€ã«ã®ååãæå®ãã䜿çšããã¯ãšãªãšè¡šç€ºããããã£ãŒã«ããéžæã§ããŸãã
[ä¿å]ãã¿ã³ãã¯ãªãã¯ããŸãã ãã¹ãŠæºåå®äºã§ãïŒ ã°ã«ãŒããããžã§ã¯ãã®ã»ããã¢ãããå®äºããŸããïŒ ããã§ãå®äºããå¿ èŠããããã¹ãŠã®äœæ¥é ç®ã宣èšããå®è¡äžã®ã¿ã¹ã¯ã«å¿ããŠããã·ã¥ããŒããæ§æã§ããŸãã
次ã®æçš¿ã§ã¯ãVisual Studio Team ServicesãšGitHubã®ãœãŒã¹ã³ãŒããªããžããªéã®ç¶ç¶çãªçµ±åãæ§æããæ¹æ³ã«ã€ããŠèª¬æããŸãã
é£çµ¡ãåãåããŸãããïŒ
èè ã«ã€ããŠ
Julien Coriolandã¯ããã©ã³ã¹ã®ãã€ã¯ããœããã®ãã¯ãããžãŒãšãã³ãžã§ãªã¹ãã§ãã ã³ã³ãµã«ã¿ã³ããšããŠ6幎éåããåŸã圌ã¯ãã©ã³ã¹ã®ãã€ã¯ããœããã®æè¡ãšãã³ãžã§ãªã¹ãã§ãã äž»ãªäœæ¥åéã¯ãMicrosoft Azureã¢ããªã±ãŒã·ã§ã³ãã©ãããã©ãŒã ã§ãã 圌ã¯éçºè ãã¯ã©ãŠãã¢ããªã±ãŒã·ã§ã³ãäœæããã®ãæäŒããVorlon.JSããŒã«éçºã°ã«ãŒãã®äžå¡ã§ããããDevOpsãã©ã¯ãã£ã¹ã®å®è£ ãæ¯æŽããŠããŸãã
Vorlon.JSãããžã§ã¯ãã®éçºè ã§ããJulien CoriolandãšEttiene Margraffã¯ãDevCon 2016ã«ã³ãã¡ã¬ã³ã¹ã§è¬æŒè ãšãªããã©ã€ããã©ã¯ãã£ã¹ã®å®è£ çµéšã«ã€ããŠã®ã¿è©±ãããããã®ããã»ã¹ãèªåã§æ§ç¯ããæ©äŒãæäŸããŸããæã
ãã®äžé£ã®åºçç©ãŸãã¯DevOpsæ¹æ³è«ã«ã€ããŠè³ªåãããå Žåã¯ãTwitterçµç±ã§èè ã«çŽæ¥é£çµ¡ã§ããŸãïŒ twitter.com/jcorioland
䟿å©ãªãªã³ã¯
- Visual Studio 2015ãVisual Studio Team ServicesãVisual Studio CodeïŒ ç¡æã®éçºè åããµãŒãã¹
- Visual Studio Dev Essentialsã®è¿œå ã®ç¡æããŒã«ãšãµãŒãã¹
- Visual Studio 2015ã®ãœãããŠã§ã¢ã®éçºããã¹ããã©ã€ããµã€ã¯ã«ç®¡çã«é¢ããå®éšå®€äœæ¥