PHPerKaigi 2020ã®ç»å£è³æã§ãã ãµã³ãã«ã¢ããªã¯ãã¡ã https://github.com/fortkle/ga-phperkaigi-todo-api
DBã®ã¬ã¤ã¤ã¼ãå«ãã¨ã³ããã¼ã¨ã³ããã¹ããDBã«ä¾åããã³ã³ãã¼ãã³ãã®èªåãã¹ããããããããã¨ãå ¨ã¦ã®ãã¹ããçµããã¾ã§ã«é·ãæéããããããã«ãªã£ã¦ãã¾ããã¨ãããã¾ããDBã®ã¯ã¨ãªå®è¡ã¯ãããã¯ã¼ã¯IOããã£ã¹ã¯IOãªã©ãå«ãã é«ã³ã¹ããªå¦çã ããã§ãã Docker ãå°ã工夫ãã¦ä½¿ãã¨ããæ軽ã«ãã¹ãä¸ã®DBã®ã¯ã¨ãªå®è¡ã«ãããæéãåæ¸ã§ãã¾ããèªåãã¹ããå®äºããã¾ã§ã®å¾ ã¡æéãç縮ããéçºã®ãã£ã¼ãããã¯ãµã¤ã¯ã«ãããæ©ãåããããã«ãªãã¾ãï¼ MariaDB ãç¨ããããã¸ã§ã¯ãã®å®ç¸¾ã§ã¯ãDBã¢ã¯ã»ã¹ãä¼´ããã¹ãã±ã¼ã¹ã 153件 ããã¾ãããããã®æ¹æ³ã«ãããã®ãã¹ãã¹ã¤ã¼ãã®ãã¼ã«ã«ç°å¢ã§ã®å®è¡æéãç´ 43% åæ¸ã§ãã¾ããï¼ç´ 145.7s â ç´ 83.3sï¼ã ã©ããã£ã¦ï¼ Docker 㧠tmpfs ã使ãã¾ãã tmpfs tmpfs ã¨ã¯ããã£ã¹
æ¥åã·ã¹ãã éçºã«ããã¦CIï¼ç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³ï¼ãµã¼ãã¯æ¬ ãããªããªã£ã¦ãã¾ããèªåãã¹ããè¡ã£ãããéçºç¨ãµã¼ãã«ãããã¤ãããªã©ã¨ãã£ãæé ãèªååã§ããã®ãé åã§ãã ä»åã¯ãããªCIãµã¼ãã®ä¸ã§ããªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã®ãã®ãã¾ã¨ãã¦ç´¹ä»ãã¾ãããªã¼ãã³ã½ã¼ã¹ã»ã½ããã¦ã§ã¢ã®å ´åãç¹å®ã®ããã°ã©ãã³ã°è¨èªã«ã¤ãã¦ãµãã¼ãããã¦ãããã®ãå¤ãã®ã§ãèªåãã¡ã®ããã¸ã§ã¯ãã§ä½¿ã£ã¦ããè¨èªã«åããã¦é¸æããã®ãè¯ãããã§ãã Jenkins CI æãæåãªCIãµã¼ãã§ããJavaã§ä½ããã¦ãã¾ããä»»æã®ããã°ã©ãã³ã°è¨èªã«å¯¾ãã¦èªåãã¹ããå¯è½ã¨ãªã£ã¦ãã¾ãã Welcome to Jenkins CI! | Jenkins CI Integrity Ruby製ã®CIãµã¼ãã§ãããã¼ã¸ã§ã³ç®¡çã¯Gitã®ã¿ãµãã¼ããã¦ãã¾ãã Integrity | Continuous
CIï¼ç¶ç¶çã¤ã³ãã°ã¬ã¼ã·ã§ã³ï¼ãã¯ãããä¸ã§ããã¹ããã«ãããç°å¢ã¯æ¯åãªã»ãããããæ¹ãé½åãè¯ãã§ããä½è¨ãªãã¼ã¿ãæ®ã£ã¦ããããã«ãã¹ãã«å¤±æããããéã«æåãããã¨è¨ã£ãä¸æ£ç¢ºæ§ã®ãæ®ãã®ã¯ããããã¾ããã ããã§ç»å ´ããCIãµã¼ããDroneã§ããDockerã使ã£ã¦ãã¹ãç°å¢ãæ¯åæ§ç¯ãç ´æ£ãã¦ããã¾ãããããDroneã®CIç°å¢æ§ç¯ã«ã¤ãã¦ãDockerã使ã£ã¦ç°¡åã«ã§ãã¾ãããã²æ°ããCIãµã¼ãã¨ãã¦ãã§ãã¯ãã¦ãã ããã ãªãDroneã¯Webãµã¼ãã¹ãæä¾ãã¦ããããªã¼ãã³ã½ã¼ã¹ã®ããã¸ã§ã¯ãã«ã¤ãã¦ã¯ç¡æã5ã¤ã®ãã©ã¤ãã¼ãããã¸ã§ã¯ããã§ãã¯ã§25ãã«/æããã¨ãªã£ã¦ãã¾ãã Droneã®ããããã¼ã¸ Droneã®ã¤ã³ã¹ãã¼ã« ä»åã¯ãããã®ã¯ã©ã¦ãã使ã£ã¦CoreOSãç«ã¡ä¸ãã¦ãã¾ãã ãã°ã¤ã³ããã joaodubas/docker-droneio ãpul
åè¨éçºãã£ã¦ããããã¾ã®éçºã¹ã¿ã¤ã«ãæ¸ãã ãã®åã®ããã°ã¯ããã¨ãã©ã¼ã«ã¹ããã¼ã£ãã¯ãªãã ã£ãã®ã§ãä»åã¯ç°¡åã«å ¨ä½ã®ã¯ãªããï¼æ¸ãé çªãéã£ã½ãï¼ ä»åã®ããã¸ã§ã¯ãã§ã¯ã¢ã¼ããã¯ãã¨ãã¦ããã®âéçºã¹ã¿ã¤ã«ã®æ§ç¯ã¨éç¨ããã¦ãã¦å¦ã³å¤ãã ãã¼ã¸ã§ã³ç®¡çã¯Git ããã¸ã§ã¯ãç¨ãµã¼ãã¼ã«GitBucketããã¦ã¦ã½ã¼ã¹ã³ã¼ãã管çãã¦ããã ãªãã·ã§ã¢ã¨ä»äºããããªã©ãéçºæ ç¹ããããããã¨ãå¤ãã ã½ã¼ã¹ã³ã¼ãã«å¯¾ãã¦ããã¯ãã¨ã£ãããã¡ããã¨ãä»ã®äººãéçºããããããªããªãããæ ç¹å¥ãã¦ä¸¦è¡éçºãã大è¦æ¨¡æ¡ä»¶ã ãããããGitã使ãå¿ è¦ãããã åéçºè ããã©ã³ãããã£ã¦éçºããã¦ããã«ãªã¯ã§ã¬ãã¥ã¼ä¾é ¼ãããã®ãã¼ã¸ããããã¨ã§ãã¬ãã¥ã¼ãæ¸ãã§ããã½ã¼ã¹ããmasterãã©ã³ãã«åãè¾¼ã¾ããªããã¨ããã®ãã¤ã¤ã å¼ç¤¾ã®âã¨ã³ã¸ãã¢âã¯ã¿ããªå½ããåã®ããã«Gitã使ã£ã¦
Scrutinizerãåãï¼ï¼ Scrutinizerã¨ãããµã¼ãã¹ãPHPã®éç解æåºæ¥ã¦åãã¨ããã¹ã©ã¤ããèªãã§è©¦ãã«ä½¿ã£ã¦ã¿ããæãã®å¤ãããã£ãã å ¬å¼ãµã¤ãURL https://scrutinizer-ci.com/ ã¹ã©ã¤ãã®è¨äº http://www.slideshare.net/hinakano/scrutinizer-ciphp ãªã¼ãã³ã½ã¼ã¹ã®ãªãã¸ããª(publicãªãã¸ããªï¼)ãªãç¡æã§å©ç¨åºæ¥ãããã§ãã éç解æãåªç§ï¼ Scrutinizerã§ã¯åæè¨å®ã®æ®µéã§ãphp-simãpdependãphp-analyzerãã¼ã«ãæå¹ã«ãªã£ã¦ãã¾ãã ããããã¼ã«ã®ä»ã«è¨å®ã§ã PHP Code Sniffer PHP Change Tracking Analyzer PHP CS Fixer PHP Mess Detector Security Advis
ã¢ã¸ã£ã¤ã«éçºã«åãçµããã¼ã åãã®ã³ã¼ãã³ã°ããæè¡é¡§åãèªå®ã¹ã¯ã©ã ãã¹ã¿ã¼ç ä¿®ãªã©ã®å種ãã¬ã¼ãã³ã°ãæä¾ãã¦ãã¾ãããã²ãæ°è»½ã«ãç¸è«ãã ããï¼ååç¸è«ç¡æï¼ ã¿ãªããããã«ã¡ã¯ã@ryuzeeã§ãã 2012å¹´11æ3æ¥,4æ¥ã®äºæ¥éã«ããã¦è¡ãããPHPMatsuri 2012ã§ãç»å£ããã¦ããã ãã¾ããã ãã®éã®è³æãå ¬éãã¦ããã¾ãã å 容ã¯éå»ã«ãã£ãã¯ã³ã¯ãªãã¯ãããã¤åå¼·ä¼ã®å 容ã«CakePHPã£ã½ãå 容ã追å ããæãã§ãã 大ååãããã®ãããã®è©±ã¯ãã¦ããã®ã§ãããã¾ã ã¾ã ããã¡ã¯ãã¹ã¿ã³ãã¼ãã§ã©ãã®ä¼ç¤¾ã§ããã£ã¦ããã¨ããç¶æ³ã«ã¯ã»ã©é ããããããå社åãçµã¿å§ããã¨ãããã¨ããæããªæ°ããã¾ãï¼ãã¡ãã大åç¶æ³ã¯å¤ãã£ã¦ããï¼ åå è ã®æ¹ã«èããã¨ãããç°å¢æ§ç¯å«ãèªååããã¦ããã®ã¯2åãããã§ããã ãã£ãããã¬ã¼ã ã¯ã¼ã¯ã使ãåãã¦é«éã«éçºã§ããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}