éé£çããã°ã©ãã³ã°å¦ç¿æ¹æ³10ç®æ¡
- ç¿ããã¯ããã
- éãæãããª
- æå¾ã¾ã§èªããª
- ã¡ã¢ãæ®ã
- errorã®åºåå 容ã翻訳ãã¦ç解ãããããã¦ã°ã°ã
- é§ç®ãªã次ãã¡ãã£ã¢ãå¤ãã
- 俺ã®é ãæªãããããªããã¾ã 追ãä»ãã¦ãªãã ã
- éè¤é¨åãã²ã¨ã¾ãç®ãéã
- ä¸æããããªãè¦å´ãå¾ããå¹ãã¦ãã
- åºæ¥ããæãããããããã¦æãããããª
å®ã¯7æããã¾ã¨ã¾ã£ãæéãåºæ¥ã¦ããã®1é±éç¨ãæ°ããªæè¡ã®åå¼·ãå§ãã¦ãä»ãã£ã¨æåã®ç®æ¨ã®ç°å¢æ§ç¯ãã§ããæ§ã«ãªãã¾ãããï¼docker-compose㧠nginx, MySQL,Laravelã®éçºç°å¢ãä½ãã¾ããï¼ ãã®éãç解ããã¾ã§ããªãç´ä½æ²æããã£ã¦ãããããããªãæ°ããæè¡ã®åå¼·ã®ä»æ¹ã¿ãããªãã®ã«æ°ä»ããã®ã§ãã¾ã¨ãã¦ããã¾ãã
Dockerã§ã®ç°å¢æ§ç¯æ¹æ³ã£ã¦ããã°ã©ãã³ã°ã¨ããããã¤ã³ãã©ã§ãããã¾ããå¦ã³æ¹ã¯åãã ã¨æãã®ã§ãå¤ãã«è¦ã¦ãã ããã
ç¿ããã¯ããã
æ°ããäºãè¦ãããã¨æã£ãããä¸çªã«è¨ãããã®ã¯ãã¨ã«ããä¸çªç°¡åã§å 容ã®èãã¡ãã£ã¢ããå§ããã®ããããããã¾ãã ä»åç§ã失æããã®ã¯ãã¡ãã£ã¨ä¸ç´è åãã®æ¬ãè²·ã£ã¦å¦ç¿ãåãã¦ãã¾ã£ãäºã§ããããããã¡ãã£ã¢ã¯ãå¤ãã®æé»ã®ç¥èãåæã«ç©äºãæ¸ãã¦ããã®ã§ãå¾ã ã«çç¥ãããäºæãæ ¡æ£ãã¹çã§ããã®éãã«ãã£ã¦ãä¸æãè¡ããªãäºãå¤ã ããã¾ãããããããã®ã«ä¸åº¦ãããã¨ãªã«ããªã¼ãã¨ã¦ãé£ãããªãã¾ãã解決ã§ããªãã§ä¸æéãæ©ãã¨ç²¾ç¥çã«ãåã£ã¦ãã¦ããæ°ãç¡ããå¯è½æ§ãããã®ã§ããªãã¹ãæåä¸å¯§ã§ãå¤ãããããã®ããå§ããã®ãè¯ãã§ãããã
éãæãããª
ãããã«ã¯ç¡æã®ã³ã³ãã³ããå±±ã®æ§ã«ããã¾ããã¨ã¦ãåèã«ãªããã®ãããã¾ãããæ¬å½ã®åå¿è åãã³ã³ãã³ãã¨ããã®ã¯ãå®ã¯ã¨ã¦ãæéæããããã³ã¹ãããããã®ã§ãã ããã¯ãã¾ã£ããã®ãã½ã³ã³åå¿è ã«ãè¬å¸«ã¨ãã¦Excel,html,cssçãæãã¦ããçµé¨ä¸ã確信ãæã£ã¦è¨ãã¾ãã æè¿ããã°ã©ãã³ã°ã¹ã¯ã¼ã«ã§ã®å¦ç¿ããªã«ãã¨è©±é¡ã«ãªãã¾ãããææ¥æããããªãã«ãããã®ã¯ãææã®ä½æããç´æ¥æããã³ã¹ãã馬鹿ã«ãªããªããããã¨ããé¢ãå¤åã«ããã¨æãã¾ãã
èªåèªèº«ã®åã§èª¿ã¹ã¦å¦ã¶ã¹ãã«ã«èªèº«ããªãã®ã§ããã°ãéãæãã¾ããã¹ã¯ã¼ã«ãªããé«ä¾¡ãªæ¬ãªããææã³ã³ãã³ãçã§å¦ã¶ã¹ãã§ããããããã¦ãç¥èã ãã§ã¯ãªãããå¦ã³æ¹ããå¦ã¶äºãæèããã¨ããã§ããã ã¯ããå çä»å¤§äºãªãã¨ãè¨ãã¾ãããã¼ã
æå¾ã¾ã§èªããª
æ¬ãåç»ã®è©±ã§ãããããåºæ¬çãªäºæ以å¤ã¯ãç¡çã«å ¨é¨ãèªãã ãè¦ããããå¿ è¦ã¯ç¡ãã¨èãã¦ãã¾ããç¹ã«ãèªåãç®çæèãæã£ã¦å¦ç¿ãã¦ããæã¯ãªãããã§ãã ä»ã®ç®æ¨ã¨ç°ãªãå 容ã§ããã°ãè¦åºãã«ç®ãéãã¦è¨æ¶ã«ã¨ã©ãã¦ããã ãã§å¤§ä¸å¤«ã ã¨æãã¾ããããããåºæ¬çãªäºæã°ããã®ãã®ã§ããã°ãç解ã¯åºæ¥ãªãã£ãã¨ãã¦ãã軽ã¼ãç®ãéãä½ã¯ãã¦ãããæ¹ãè¯ãã§ãããããããªãã®ããããã ãã¨ããæ å ±ã®è¦åºããä¿æãã¦ãããã¨ãå¾ã å½¹ã«ç«ã¤ãã¨ãããã§ãããã
ã¡ã¢ãæ®ã
ããã°ã©ãã³ã°ãè¦ããã®ã§ããã°ãã¡ã¢ã¯çµ¶å¯¾å¿ è¦ã§ããã¨ãããããã®èªåã ãã®èç©ãèªåèªèº«ã®éè¦ãªè²¡ç£ã«ãªãçã§ãã ç§ã¯ Evernoteã Boostnoteã使ã£ã¦ãæ°ããç¥èã«é¢ãã¦ã¯ãã¨ã«ããããã¹ããã¼ã¹ã¡ã¢ãæ®ãæ§ã«ãã¦ã¾ãã
ããã¦ãã°ã°ã£ã¦ã¿ãã®ã¨ä¸¦è¡ãã¦ããã®ã¡ã¢ã§ãæ¤ç´¢ããã¾ãããã使ãã³ãã³ãã¨ããåºåãããã¨ã©ã¼ã¨ãurlã®ã¯ãªããã¨ããQiitaè¨äºã®ã³ãã¼ã¨ããã¨ã«ããèç©ããã¦ããã¾ãããã¼ã«ã«ãã£ã¦ã¯ã«ãã´ãªã¼ãã¿ã°ãä»ããããã®ã§ãç§ã¯çµæ§ä¸å¯§ã«åé¡ããã¦ãã¾ãã ç¹ã«ãµã¼ãã¼ã®ç°å¢æ§ç¯ã«é¢ãã¦ã¯ãQiitaã®è¨äºããã¼ã¹ã«ãèªåã®ã¡ã¢ã追å ãã¦ããã®ã¡ã¢ãè¦ãã°å ¨é¨åãã«ä½ãããã£ã¦ä½ä¸å¯§ã«ã³ãã³ããã注æç¹ãæ¸ãã¦ãç¬èªã®ãã¼ãã«ãã¦ã¾ãï¼ãªã®ã§å ¬éã¯åºæ¥ãªãï¼
errorã®åºåå 容ã翻訳ãã¦ç解ãããããã¦ã°ã°ã
ããã¯ãã®ã¾ã¾ã§ããã¨ã©ã¼ã¡ãã»ã¼ã¸ã®è±èªãããããªãå ´åã¯Google翻訳ã«ããã¦ä½ã¦æããã¦ãã®ãç解ãã¾ããããããã«ãã®è±èªæããã®ã¾ã¾æ¤ç´¢ãã¦ãæµ·å¤ã®stackoverflowã®è¨äºãããããããªãã¦ããã¡ããã¨è¦ã«è¡ãã¾ããããè±èªã®ãµã¤ãã§ããã©ã¦ã¶ã®ç¿»è¨³æ©è½ã§æ¥æ¬èªåãã¦èªãã°ãçµæ§ç解ã§ããã解決ã§ãããããã«ãã®ã¨ã©ã¼è§£æ±ºæ¹æ³ããæ¥æ¬èªè¨äºã«ãªã£ã¦ãªããã°ãèªåãè¨äºãæ¸ãã¦Webã«æ®ãã¦ããã°å¾ã«æ¥ã人ãå©ããäºã«ãªãã
é§ç®ãªã次ãã¡ãã£ã¢ãå¤ãã
ããã§ããªãã ãè¦ããããªãããã³ã¨ããªããããæ°ãåºãªããææãåºãªããã¨ãã£ãäºã§ããã°ãããã§ä¸æãã¦æ¬¡ã«è¡ãã¾ããããä»ã®èªåã«åã£ãç¥èã¨æ å ±ã絶対ã©ããã«ããçã§ãç§ã¯ãã®ä¸é±éã§ã300ãã¼ã¸è¶ãã®æ¸ç±ã2åè²·ã£ã¦å®è·µãã¦ã¾ããããå®éã«èªãã§å®è·µãããã¼ã¸ã¯100ãã¼ã¸ç¨ã§ããã ã§ãããããé§ç®ã ã¨æã£ã¦ã次ã«åç»ãæ¢ãã¦2æéã»ã©ã®å®è·µåç»ãè¦ãªããå®è·µãã¦ã¿ã¾ããããããããããæå¾ã¾ã§ã¯å®èµ°ã§ãããä»åº¦ã¯å¥ã®åºç¤çãªèª¬æããã¦ãããã¦ã§ããµã¤ããããã¤ãèªã¿ãå®è·µãã¦ããã£ã¨èªåã®ç®æ¨ã ã£ããã®ãæ§ç¯ã§ããããã«ãªãã¾ããã
ããããããã§è¦ã¦æ¥ãæ¬ããµã¤ããåç»ã§ã®ç¥èã¯ãã¡ã¢ãæ®ãã¦ããã®ã§ãæéãçµéãã¦æè¡çè³å³æéãåããªãéãããã¤ã§ã調ã¹ãããæ å ±ã®è¦åºãã«ãªã£ã¦ãã¾ãã
俺ã®é ãæªãããããªããã¾ã 追ãä»ãã¦ãªãã ã
ä»åè³¼å ¥ãã2åã®æ¬ã¯ãä»ã®èªåã«ã¯ãã¼ãã«ãé«ãã£ãã§ããç¹ã«ãè¨å®ãä¸æããããæ£ã è©°ã¾ã£ã¦ãåé¡ã解æ¶ãããã«ããå¦ã³ããDockerã¨ã¯ç°ãªãé¨åã§ã®ãã©ãã«ã ã£ãã®ã§ãã¾ã£ããã¢ããã¼ã·ã§ã³ããããã¾ããã§ãããï¼jenkinsã®ã¹ã¬ã¤ãã®sshæ¥ç¶ã®è¨å®ãä¸æããããªãã¨ããä»ã®èªåã«ã¯ãã¾ãå¿ è¦ã®ãªãäºæã§æ©ãã§è«¦ããï¼ ã¾ããèªåã®ç®æãæ¹æ³ã¨ã¯ç°ãªãæ¹æ³è«ã§è¨è¿°ãããæ¬ã®è¨å®æ¹æ³ãèªåã«åããããããä¸æããããªãã£ãã®ã§ããããæ©ã ã«è«¦ãã¾ãããã©ã¡ããä»ã®èªåã®ã¬ãã«ã§ã¯ç解ã追ãä»ããªããéè¦ãªäºæã ã£ãã®ããããã¾ãããããããåºæ¥ãªããç解ã§ããªãäºã§æ°ã«ç ãäºã¯ãªãã¨æã£ã¦ã¾ãã
éè¤é¨åãã²ã¨ã¾ãç®ãéã
è¤æ°ã®ã¡ãã£ã¢ã§ã¤ã¾ã¿é£ãå¦ç¿ããã¦ããã¨ãæåã®æ¹ã¯ãã©ããåããã¨è¨ã£ã¦ããªã¼ãã¨æã£ã¦ãã±ãã±ãã¨é£ã°ãã¦ãã¾ã£ãããã¾ãããå®ã¯ããæããäºã£ã¦ãããäºã§ããã ã£ã¦ããã¾ã§ç解ãé²ãã§ã説æãã¦ããããªãã§ããããæ§ã«ãªã£ã¦ãã訳ã§ããããããããã®éè¤é¨åãæµãç¨åº¦ã§è¯ãã®ã§ãã²ã¨ã¾ãç®ãéããã¨ããããããã¾ããèªåã®ç解ãããã¾ãã ã£ãäºæãåºæ¬æ¦å¿µããéã人ã®è¨èã§ç¶´ããã¦ããã®ãè¦ãäºã§ãããç©äºã®ç解ãé²ãã¨æãã¾ãã
ä¸æããããªãè¦å´ãå¾ããå¹ãã¦ãã
ã§ããã®è¾ºã¾ã§æ¥ã¦è²ã ã¤ã¾ã¿é£ããã¦ããä»ã®èªåã«ä¸åº¦è¯ãææã«åºä¼ããã¨ã以åä¸æãè¡ããªãã£ãéã«ãè¦å´ãã¦èª¿ã¹ãäºã¨ãã試ãã¦ãããã¨ããå¹ãã¦ããæãæ¥ã¾ãï¼æè¨ï¼å¦ç¿æ²ç·ãä¸æ°ã«ä¸æ¹åã«ä¼¸ã³ãç¬éã¨ã§ãè¨ãã¾ãããããããããã®ã¨ã©ã¼ã¯åã«ããã£ãããããã¦ããªãããã ãªãã¨ãããããã®ç¶æ ãªãã次ã«â¡â¡ãããã¦ããã®ã³ãã³ãã¯åã«ã¡ã¢ãããããã«â¦ãã¿ããã«ãªã£ã¦æ¥ãç¬éãæ¥ãããã£ã¡ã®ãã®ã§ãã
åºæ¥ããæãããããããã¦æãããããª
ããã¦åºæ¥ããæãã£ããåã³ã¾ããããé¨å±ã§è¸ã£ããã人ã«èªæ ¢ãã¦ãè¯ãã¨æãã¾ãã
docker-compose 㧠nginx,mysql,volumes ã®çµã¿åããã§ãã¹ãos å´ã§laravelã¢ããªã®ã³ã¼ããå ±æããã¦ããç°å¢ãæ§ç¯ãããã¨ãåºæ¥ãï¼è²ã è¿·ã£ãåãerrorãåºã¦ãæä½éãªãã¨ãã§ããæ§ã«ãªã£ãï¼
— sakamata (@sakamata) 2020å¹´7æ8æ¥
èªåèªèº«ã®å¦ç¿åã®ææã¨ãå¤ãã®å 人ãæ®ããã¡ãã£ã¢ã®åãåãã¦åºæ¥ãææã§ãã人ç®ãæããæãã£ããåãã§ãã ãããããã¦ã俺ã£ã¦ãããï¼ã¨èªåãè¤ãã¦ãã£ã¦ãã ããã
ããã¦å¦ç¿ã®çºã«ã¡ãã£ã¢ã¨ãã¦æ®ãã¦ãããå 人ã«æ大éã®æè¬ããã¾ããããããªãããããç解ã§ããã®ã¯ãå 人ãã¡ãã£ã¢ãéãã¦ãããªãã«ãããæãã¦ãããããã§ããæãããã£ãå¾ã¯ãè¬èã«ãªã£ã¦ããã¤ããã®ãã¦ãã¦ã次ã«æ¥ã誰ãã«ãä¼ãã¦ãããããããã«ãªãã¨è¯ãã¨æãã¾ãã
ä»åã®å¦ç¿ã§ãä¸è©±ã«ãªã£ãæ¸ç±ããµã¤ããåç»ç
Docker/Kubernetes å®è·µã³ã³ããéçºå ¥é
- ä½è :å±±ç° ææ²
- çºå£²æ¥: 2018/08/25
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
試ãã¦å¦ã¶ Dockerã³ã³ããéçº
- ä½è :æ«»äº æ´ä¸é,æå´ å¤§è¼
- çºå£²æ¥: 2019/07/25
- ã¡ãã£ã¢: åè¡æ¬ï¼ã½ããã«ãã¼ï¼
æçµçã«ãã¡ãã®ãµã¤ãã®éãã«æ§ç¯ãããã§ããæ§ã«ãªãã¾ããã ãããã¨ããããã¾ãã
ãã¾ã
ãã¾ãã¾é ç®ã10ã«ã¾ã¨ã¾ã£ãã®ã§ãç§ã®å¤§å¥½ããªã¢ããè¨ç»ã®ãã©ã¤ããã£ã¬ã¯ã¿ã¼ã®ãã¸ã¼ã³ã¯ã©ã³ãã®10ç®æ¡ããç´¹ä»ãã¾ãã
- Be proactiveï¼ç©æ¥µçã«è¡åããï¼
- Take responsibilityï¼èªã責任ãæã¦ï¼
- Play flat-outï¼ç®æ¨ã«åãã£ã¦èç®ãæ¯ãããéããã«éè¡ããï¼
- Ask questionsï¼åãããªããã¨ã¯è³ªåããï¼
- Test and validate all assumptionï¼èãããããã¨ã¯ãã¹ã¦è©¦ãã確èªããï¼
- Write it downï¼ã¡ã¢ãã¨ãï¼
- Don't hide mistakesï¼ãã¹ãé ããªï¼
- Know your system thoroughlyï¼èªåã®ä»äºãçç¥ããï¼
- Think aheadï¼å¸¸ã«å ã®ãã¨ãèããï¼
- Respect your teammatesï¼ä»²éãå°éããä¿¡é ¼ããï¼
ããã§ã¢ãã13å·ã¯ã«ã¼ãç¡äºå¸°éãããã¨æãã¨è¸ç±ã
é¢é£è¨äºï¼ sakamata.hateblo.jp