2024-06-01ãã1ã¶æéã®è¨äºä¸è¦§
ä»åã®ã¨ãã¨ãDevOpsåå¼·ä¼ã¯ãèªååã¨å¹çåã®ããã«GitHub Actionsã使ãããªãããã¨é¡ãã¦ãæ¥æ¬ä»®æ³åæè¡ã®ç°ä¸ããGitHub Actionsã«ã¤ãã¦ç´¹ä»ãã¾ããã è¿å¹´ã§ã¯ãITãæ´»ç¨ããªããã¸ãã¹ã¯å°ãªããªããã·ã¹ãã ãã¢ããªã±ã¼ã·ã§ã³ãä¼ç¤¾ã®æ¥ç¸¾ã«â¦
Goè¨èªã§gRPCããããã¨ã«ãªã£ãã®ã§ãåå¼·ãå ¼ãã¦Hello Worldã¬ãã«ã®ç°¡åãªãã®ãä½ã£ã¦ã¿ã¾ãã gRPCã¨ã¯ ãªã¢ã¼ãããã·ã¼ã¸ã£ã³ã¼ã«(RPC)ç¨ã®ãã¬ã¼ã ã¯ã¼ã¯ã§ãGoogleã«ãã£ã¦æ¬¡ä¸ä»£çã¨ãã¦éçºããããã®ã§ãã gRPCã®gã¯Googleã®ãã¨ãæãã¦ããâ¦
å¼ç¤¾ã§ã¯GitHub Actionsã®ç»å ´ä»¥åããCI/CDãè¡ã£ã¦ãããã¨ããããCIç°å¢ã¨ãã¦ã¯CircleCIãæ¨æºã¨ãªã£ã¦ãã¾ããã¨ã¯ããéçºã®ä¸å¿ã¯ãã¯ãGitHubã§ãããGitHubä¸ã§èªå·±å®çµã§ããã¨ããç¹ã«ããã¦ãGitHub Actionsã®åªä½æ§ã¯è¦éãã¾ããã ä»ã¾ã§çâ¦
ååã®è¨äºã§SQSã®ãã¼ã«ã«éçºç°å¢ç¨ã¨ãã¦ElasticMQã使ã£ã¦ã¿ã¾ããã ä»åã¯ElasticMQã§ãããã¬ã¿ã¼ãã¥ã¼ã«ã¤ãã¦å¦ãã§ã¿ã¾ãããã ãããã¬ã¿ã¼ãã¥ã¼ã¨ã¯ ãããã¬ã¿ã¼ãã¥ã¼ã¯ãã¡ãã»ã¼ã¸ã®å¦çã«å¤±æããå ´åã«ããã®ã¡ãã»ã¼ã¸ãå¥ã®ãã¥ã¼ã«â¦
GitHub Actionsã¯åãããªã¬ã¼ãè¨å®ãããå¥ã®ã¯ã¼ã¯ããã¼ãã¡ã¤ã«.github/workflows/{a,b}.yamlãªã©ã並åã§å¦çãã¾ãããããã1ã¤ã¯ã¼ã¯ããã¼ã§ä¸¦åå¦çããããã¨ãããã¾ãããããã¨ãã°ãNodejsã®ãã¼ã¸ã§ã³18,19,20ã§ã¢ããªã±ã¼ã·ã§ã³ããã«ããâ¦
ä»äºæãããã°ãæ¸ãããããã¾ã«éèªã®è¨äºãæ¸ããããããã¨ãããã¾ãã Windowsã使ã£ã¦ããæ代ã¯ä¸å¤ªéã¨ATOKã使ã£ã¦ãæ¸ããæç« ã®ææ¸æ§æããã¦ãã¾ããã Macã§ã¯ATOKã¯åãã¾ãããä¸å¤ªéã¯åãã¾ãã*1ããã®ä¸ãä»ã®ATOKã¯ãµãã¹ã¯ãããªãâ¦
ååã®è¨äºã§Dev Containersã使ã£ã¦Goã®éçºç°å¢ãæ§ç¯ãã¾ããã ä»åã¯ãã®ç¶ãã§ãSQSã®ãã¼ã«ã«ç°å¢ç¨ã«ElasticMQãåããã¦ã¿ã¾ãã ElasticMQã¨ã¯ SQSäºæã®REST(ã¯ã¨ãª)ã¤ã³ã¿ã¼ãã§ã¼ã¹ãæä¾ããã¡ãã»ã¼ã¸ãã¥ã¼ã·ã¹ãã ã§ããElasticMQã¯ãREST(â¦
ä¹ ã ã«Goè¨èªã使ãæ©ä¼ããããããªã®ã§ãDev Containersã§éçºç°å¢ãä½ã£ã¦ã¿ã¾ããã äºåæºå ä»»æã®ãã£ã¬ã¯ããªã«ç§»åãã¦ãããã¸ã§ã¯ãç¨ã®ãã£ã¬ã¯ããªãä½æãã¾ãã mkdir golang-tutorial cd golang-tutorial .devcontainerãã£ã¬ã¯ããªã®ä½æ â¦
ããã«ã¡ã¯ã 6æã«ãªãã¾ããããããããããã¨æ¹¿åº¦ãä¸ãã£ã¦ãã¦æ¢ é¨ã®å£ç¯ãè¿ã¥ãã¦ãã¾ããã ä»æãVisual Studio Codeã®æ°ãããã¼ã¸ã§ã³ããªãªã¼ã¹ããã¾ããã®ã§ããã®å 容ããä¼ããã¾ãã ç®æ¬¡ ç®æ¬¡ Visual Studio Code ãã¥ã¼ãªãªã¼ã¹ 主ãªãªâ¦
GitHubãä¸å¿ã«éçºããã¦ããã¨å¯¾å¿ãããã ãããªããã ãããããªãå¤ãIssueãæ®ã£ã¦ãããã¾ãããï¼è§£æ±ºæ¸ã¿ã ãã©éãå¿ãã¦ãã ããªã®ããã¿ããªãã¿ããªèªåã«ã¯é¢ä¿ãªãã¨æã£ã¦åå¿ããªãã®ãããããªã£ã¦ãã¾ã£ãIssueã¯ãã®ã¾ã¾æ®ãã¦ããã¦ãâ¦
å¾ã ã«å¯ãæ¥ãæ¸ãéãããããææã«ãªãã¾ããããæ¯æ1ã¶æåã®ãã¥ã¼ã¹ãæ¯ãè¿ã£ã¦ããã¨çæAIãã¯ããã¨ããAIç³»ã®è©±é¡ã¯éåãããã¨ãªãæ¯æãããããªå°è±¡ãæã¡ã¾ããã 5æåãã¦ã®ã¡ã¸ã£ã¼ãã¼ã¸ã§ã³ã¢ãããããããã°ã©ãã³ã°è¨èªãã©ã¤ãã©â¦
å¼ç¤¾ã®DevOpsãã¼ã ã§ã¯ãã¨ãã¨ãDevOpsåå¼·ä¼ãã¨ãããªã³ã©ã¤ã³å½¢å¼ã®ã¤ãã³ããéå¬ãã¦ãã¾ãã ãªã³ã©ã¤ã³ã¤ãã³ããéå¬ããããã«ã¯æºåã¨ãã¦ãZoomãYoutube Liveã質åç³»ã®ãµã¤ããªã©ããããURLãçºè¡ãã¾ãã çºè¡ããURLãç縮URLåãããã©ãâ¦
ä»åã®ã¨ãã¨ãDevOpsåå¼·ä¼ã¯ãGitã§å§ãããã¼ã¸ã§ã³ç®¡çå ¥éãã¨é¡ãã¦ãæ¥æ¬ä»®æ³åæè¡ã®å®®åããGitã¨GitHubã®åºæ¬ã¨ã©ã¤ããã¢å½¢å¼ã§å®éã«ãªãã¸ããªãä½æãã¦ãããã«ãã³ããããããã·ã¥ãªã©ã®æä½ãç´¹ä»ãã¾ããã Gitãã¯ããã¨ãããã¼ã¸ã§ã³â¦
Pythonã«ã¯è²ã ãªä¾¿å©ãªã¢ã¸ã¥ã¼ã«ãåå¨ãã¾ããä¸ã«ã¯åä½ã§åãCLIãã¼ã«ãªã©ããã£ãããã¾ãã pipxã¯ãPythonã§æ¸ãããã¨ã³ãã¦ã¼ã¶ã¼ã¢ããªã±ã¼ã·ã§ã³ã®ã¤ã³ã¹ãã¼ã«ã¨å®è¡ã«å½¹ç«ã¤ãã¼ã«ã§ãã macOSã®brewãJavaScriptã®npxãLinuxã®aptãdnfã«ä¼¼â¦