Upgrade to Pro — share decks privately, control downloads, hide ads and more …

熊でもわかるCI/CD/モダンインフラVol1:用語を覚えよう編

 熊でもわかるCI/CD/モダンインフラVol1:用語を覚えよう編

CI/CDから最近っぽいインフラについて説明した勉強会を開きました。
用語を覚える編です。

91f47c6a88734f521567938d2436b614?s=128

Shohei Kobayashi

May 16, 2022
Tweet

More Decks by Shohei Kobayashi

Other Decks in Programming

Transcript

  1. ༻ޠΛ֮͑Α͏ฤ 3BJMTΞϓϦͷ։ൃ޻ఔͰઆ໌͢ΔΑʂ ۽Ͱ΋Θ͔Δ$*$%ϞμϯΠϯϑϥ

  2. զ ΤϯδχΞྺɿ೥͘Β͍ ۀքɿ8FC͹͔ͬ ݴޠɿ3VCZͱ3BJMT೥ 1)11ZUIPO1FSM೥͘Β͍ʢ๨Ε͕ͪʣ Πϯϑϥ΍͖ͬͯͨྺʹΤϯδχΞྺ %/4αʔόͱ͔ϝʔϧαʔό࡞ͬͯ·ͨ͠ ࠷ۙ͸΋ͬͺΒ3BJMT࢖͍ͷϑϦʔϥϯεɻ ޷͖ͳ%/4αʔόͷϛυϧ΢ΣΞɿEKCEOT ޷͖ͳϝʔϧαʔόͷϛυϧ΢ΣΞɿ2NBJM

    ޷͖ͳ.Z42-ͷίϚϯυ͸TIPXTMBWFTUBUVT ޷͖ͳ"84ϓϩμΫτ͸&MBTUJD.BQ3FEVDF ޷͖ͳ($1ϓϩμΫτ͸$MPVESVO ޷͖ͳ$*$%πʔϧ͸(JUIVC"DUJPO &$4׬ᘳʹཧղͨ͠ কདྷͷເ͸ηΩϡϦςΟΤϯδχΞɻ
  3. $JSDMF$*͸͍͍ͧʂʂʂʂ

  4. ΍͍͖ͬͯ

  5. ίί rails new ίʔυ͍ͬͺ͍͔͘ ϩʔΧϧͰ׬੒ʂ ʁ આ໌͢Δͱ͜Ζ ੨͍ͱ͜Ζ͕આ໌͠ͳ͍ͱ͜Ζ

  6. ܧଓతΠϯςάϨʔγϣϯ ΦϨϯδ৭ͷՕॴͷߏ੒ཁૉ ܧଓతσϦόϦʔ ΠϯϑϥɾαʔόɾωοτϫʔΫ લͷϖʔδͷΦϨϯδ৭Λࡉ෼Խ ܧଓతσϓϩΠϝϯτ

  7. ΦϨϯδ৭ͷՕॴͷҙຯ Continuous IntegrationʢܧଓతΠϯςάϨʔγϣϯʣ Continuous DeliveryʢܧଓతσϦόϦʔʣ ৘ใγεςϜΛߏ੒͢ΔαʔόͳͲͷػثɺιϑτ΢ΣΞɺ௨৴ωοτϫʔΫ ܧଓతΠϯςάϨʔγϣϯ ܧଓతσϦόϦʔ ΠϯϑϥɾαʔόɾωοτϫʔΫ ܧଓతσϓϩΠϝϯτ

    Continuous DeploymentʢܧଓతσϓϩΠʣ
  8. ϞμϯΠϯϑϥΛ࿩্͢Ͱߟ͑Δ$ͳΜͱ͔ܥ CͳΜͱ͔ܥͷจ຺ΛҰॹʹ࿩͞ͳ͍ͱϞμϯΠϯϑϥ͸੒Γཱͨͳ͍ ܧଓతΠϯςάϨʔγϣϯ ܧଓతσϦόϦʔ ΠϯϑϥɾαʔόɾωοτϫʔΫ ܧଓతσϓϩΠϝϯτ

  9. ܧଓతΠϯςάϨʔγϣϯ ܧଓతσϦόϦʔ ΠϯϑϥɾαʔόɾωοτϫʔΫ ܧଓతσϓϩΠϝϯτ

  10. ΞδϟΠϧ։ൃʹ͍ͭͯ $*$%$%ͷઆ໌Λ͢Δલʹ ·ͣ஌Βͳ͍ͱ͍͚ͳ͍֓೦ʹ͍ͭͯ

  11. ػೳΛ෼ׂ ΞδϟΠϧ։ൃͱ͸ ։ൃ ػೳΛখ͘͞෼ׂͯ͠ɺখ͍͞୯ҐͰ։ൃɾςετɾϦϦʔεΛ͍ͯ͘͠ख๏ εΫϥϜ։ൃͱಉٛͰ͸͋Γ·ͤΜʢҰॹʹઆ໌͞Ε΍͍͚͢Ͳʣ ςετ ϦϦʔε ։ൃ ςετ ϦϦʔε

    ։ൃ ςετ ϦϦʔε ػೳ1 ػೳ2 ػೳ3 ։ൃ։࢝
  12. ΞδϟΠϧ։ൃͷϝϦοτͱσϝϦοτ ͜ͷลେࣄ ཁٻมߋʹରԠ͠΍͍͢ ཁٻͷ௥ՃʹରԠ͠΍͍͢ มԽͷॊೈͳରԠ͕͠΍͍͢ ߴ଎ͳϦϦʔε͕͠΍͍͢ શମͷεέδϡʔϧ͕؅ཧͮ͠Β͍ ਐḿ͕؅ཧͮ͠Β͍ ϝϦοτ σϝϦοτ

  13. ΞδϟΠϧ։ൃͷσϝϦοτΛղܾ͍ͨ͠ ཁٻมߋʹରԠ͠΍͍͢ ཁٻͷ௥ՃʹରԠ͠΍͍͢ มԽͷॊೈͳରԠ͕͠΍͍͢ ߴ଎ͳϦϦʔε͕͠΍͍͢ શମͷεέδϡʔϧ͕؅ཧͮ͠Β͍ ਐḿ͕؅ཧͮ͠Β͍ ϝϦοτ σϝϦοτ

  14. ΞδϟΠϧ։ൃͷσϝϦοτղܾख๏ ܧଓతYYYYYY

  15. $ͳΜͱ͔ܥϫʔυ ܧଓతΠϯςάϨʔγϣϯ ܧଓతσϦόϦʔ ܧଓతσϓϩΠϝϯτ 1SPEVDUJPO؀ڥ ։ൃऀͷϩʔΧϧ

  16. $ͳΜͱ͔ܥϫʔυ ܧଓతΠϯςάϨʔγϣϯ ܧଓతσϦόϦʔ ܧଓతσϓϩΠϝϯτ 1SPEVDUJPO؀ڥ ։ൃऀͷϩʔΧϧ QSPEVDUJPOʹࢸΔ·ͰΛࣗಈԽ͢Δ޻ఔ͕ଟ͍ ҙຯ͸શ෦جຊಉ͡

  17. ྫ͑ ܧଓతΠϯςάϨʔγϣϯ ܧଓతσϦόϦʔ ܧଓతσϓϩΠϝϯτ ҙຯ͸શ෦جຊಉ͡ ڇͷؙম͖ αʔϩΠϯεςʔΩͱλϯγνϡʔ ڇλϯম೑ఆ৯͝൧ൈ͖ 1SPEVDUJPO؀ڥ ։ൃऀͷϩʔΧϧ

  18. ϩʔΧϧ͔Β1SPEVDUJPOʹࢸΔ·Ͱʹ΍Δ͜ͱ 1SPEVDUJPO؀ڥ ։ൃऀͷϩʔΧϧ

  19. ܧଓతYYYͷࣔ͢ൣғ 1SPEVDUJPO؀ڥ ։ൃऀͷϩʔΧϧ ୯ମςετ ݁߹ςετ Ϗϧυ σϓϩΠ४උ σϓϩΠ ܧଓతΠϯςάϨʔγϣϯ ܧଓతσϦόϦʔ

    ܧଓతσϓϩΠϝϯτ
  20. $*$%Λཧղ্ͨ͠Ͱઆ໌͢Δ 1SPEVDUJPO؀ڥ

  21. ͻͱੲલͷΠϯϑϥͱݺ͹ΕΔ΋ͷجຊܥ "NB[PO&$ "QQMJDBUJPO-PBE#BMBODFS 3%4.Z42- 71$ "QQMJDBUJPO-PBE#BMBODFS "NB[PO&$ 3%4 71$ ϩʔυόϥϯαʔɻ

    ΞΫηεΛෳ਺ͷαʔόʹৼΓ෼͚Δɻ )7.ʢϋʔυ΢ΣΞԾ૝ϚγϯʣํࣜͰԾ૝Խ͞Εͨ-JOVYΠϯελϯεɻ ׬શԾ૝ԽΛࠓ͸ਪ঑͍ͯ͠Δɻ ࠓ͸४Ծ૝ԽͱΦʔόʔϔουͦΜͳมΘΒͳ͍Β͍͠ɻ "84͕ఏڙ͍ͯ͠Δ.Z42-΍1PTUHSF42-ͷ4BB4ɻ 7JSUVBM1SJWBUF$MPVEɻ࿦ཧతʹ෼཭͞Ε͍ͯΔԾ૝ωοτϫʔΫɻ
  22. ׂͱࠓ࣌ͳΠϯϑϥͱݺ͹ΕΔ΋ͷɿجຊฤ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB 71$ "QQMJDBUJPO-PBE#BMBODFS "NB[PO&$4 3%4"VSPSB 71$ ϩʔυόϥϯαʔɻ

    ΞΫηεΛෳ਺ͷίϯςφʹৼΓ෼͚Δɻ %PDLFSίϯςφ࣮ߦ؀ڥɻ "84͕ఏڙ͍ͯ͠Δ3%#ͷ4BB4ɻ ޓ׵ੑ͕͋Δ͚ͩͰɺ.Z42-΍1PTUHSF42-ͱ͸શ͘ͷผ෺ɻ 7JSUVBM1SJWBUF$MPVEɻ࿦ཧతʹ෼཭͞Ε͍ͯΔԾ૝ωοτϫʔΫɻ ·ͣ͸جຊܥ͔Β
  23. ׂͱࠓ࣌ͳΠϯϑϥͱݺ͹ΕΔ΋ͷɿϑϩϯτ෼཭൛ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB 71$ "84"NQMJGZ ϑϩϯτΤϯυͷߏஙʙϗετ·ͰΛ໘౗ݟͯ͘ΕΔπʔϧͱػೳͷ૯শɻ ػೳͷҰͭʹϑϩϯτΤϯυͷϗεςΟϯάΛߦͬͯ͘ΕΔɻ ϑϩϯτΤϯυͱόοΫΤϯυΛ෼཭͠·͢ɻ "84"NQMJGZ

    ϑϩϯτΤϯυ όοΫΤϯυ ֎෦͔ΒͷΞΫηε
  24. ׂͱࠓ࣌ͳΠϯϑϥͱݺ͹ΕΔ΋ͷɿϑϩϯτ෼཭൛ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB 71$ "NB[PO$MPVE'SPOU "84ࣗલͷ$%/ɻ ஋ஈʹԠͯ͡"LBNBJͱ͔ʹͳΔ͜ͱ΋͋Δ $%/ΛڬΜͰ4ͱ͍͏ํ๏Λ࢖͍·͢ɻ "NB[PO$MPVE'SPOU

    ϑϩϯτΤϯυ όοΫΤϯυ ֎෦͔ΒͷΞΫηε "NB[PO4 "NB[PO4 ੩తϑΝΠϧΛϗεςΟϯά͢Δͷʹ࢖ΘΕΔετʔϨδαʔϏεɻ ଱ٱੑ͸Ͱམͪͳ͍ͷͰɺΠϨϒϯφΠϯͱ͔ݺ͹ΕΔ
  25. ׂͱࠓ࣌ͳΠϯϑϥͱݺ͹ΕΔ΋ͷɿϑϩϯτ෼཭൛ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB 71$ 7FSDFM ϑϩϯτΤϯυͷϗεςΟϯάઐ໳ϓϥοτϑΥʔϜɻ 3FBDU7VFOVYUOFYUͱ͔΋ରԠ͍ͯ͠Δɻ ϑϩϯτΤϯυͷϗεςΟϯάͰ"84Λ࢖Θͳ͍ख΋͋Γ·͢ɻ ϑϩϯτΤϯυ

    όοΫΤϯυ ֎෦͔ΒͷΞΫηε
  26. ׂͱࠓ࣌ͳΠϯϑϥͱݺ͹ΕΔ΋ͷɿϑϩϯτ͚ͩ൛ 'JSFCBTF3FBMUJNF%BUBCBTF (PPHMFͷ($1͕༻ҙ͍ͯ͠Δ'JSFCBTFʹ͋Δσʔλϕʔεɻ ϑϩϯτΤϯυͷػೳʹΑͬͯ͸"84Λ࢖Θͳ͍ख΋͋Γ·͢ɻ ϑϩϯτΤϯυ ֎෦͔ΒͷΞΫηε $MPVE'JSFTUPSF 3FBMUJNF%BUBCBTF 'JSFCBTF$MPVE%UBCBTF ࠓճ͸આ໌͠·ͤΜ

  27. ׂͱࠓ࣌ͳΠϯϑϥͱݺ͹ΕΔ΋ͷɿϑϩϯτ͚ͩ൛ FUIFSFVN ϒϩοΫνΣʔϯͷϓϥοτϑΥʔϜͷҰͭɻ εϚʔτίϯτϥΫτͰॲཧΛ͔͚ΔͷͰɺόοΫΤϯυͱͯ͠΋࢖͑Δɻ εϚʔτίϯτϥΫτΛόοΫΤϯυͱͯ͠࡞ΔΞϓϦΛ%BQQTͱ͍͏ɻ ϒϩοΫνΣʔϯΛόοΫΤϯυͱͯ͠ѻ͏ͱ͜Μͳߏ੒ʹͳͬͨΓ͠·͢ɻ ϑϩϯτΤϯυ ֎෦͔ΒͷΞΫηε ࠓճ͸આ໌͠·ͤΜ

  28. $*$%ͱΠϯϑϥΛཧղ্ͨ͠Ͱઆ໌͢Δ σϓϩΠ όοΫΤϯυʹݶఆ͢ΔΑ

  29. ιʔείʔυͷద༻ͷྲྀΕ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB ϩʔΧϧ͔Βຊ൪·Ͱͷ͓͞Β͍ɻ "NB[PO$MPVE'SPOU ϑϩϯτΤϯυ όοΫΤϯυ "NB[PO4 ։ൃऀͷϩʔΧϧ

    ୯ମςετ ݁߹ςετ Ϗϧυ σϓϩΠ४උ σϓϩΠ (JUIVC"DUJPO /FUXPSL $%/ ωοτϫʔΫ ετϨʔδ ϩʔυόϥϯαʔ ίϯςφ 3%#
  30. ιʔείʔυͷద༻ͷྲྀΕ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB ࣮ࡍʹ΍Δ͜ͱ "NB[PO$MPVE'SPOU ϑϩϯτΤϯυ όοΫΤϯυ "NB[PO4 ։ൃऀͷϩʔΧϧ

    ୯ମςετ ݁߹ςετ Ϗϧυ σϓϩΠ४උ σϓϩΠ CVOEMFJOTUBMM SBJMTECDSFBUF SBJMTECNJHSBUF CVOEMFFYFDSTQFD CVOEMFFYFDCSBLFNBO CVOEMFFYFDSVCPDPQ EPDLFSCVJME EPDLFSUBH EPDLFSQVTI DELEFQMPZ
  31. ιʔείʔυͷద༻ͷྲྀΕ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB ʮܧଓతσϓϩΠϑΣʔζʯ͕ϙΠϯτ "NB[PO$MPVE'SPOU ϑϩϯτΤϯυ όοΫΤϯυ "NB[PO4 ։ൃऀͷϩʔΧϧ

    ୯ମςετ ݁߹ςετ Ϗϧυ σϓϩΠ४උ σϓϩΠ
  32. σϓϩΠͷจ຺ ඍົʹݴͬͯΔ͜ͱ͕ҧ͏ ։ൃऀͷ͍͏σϓϩΠ "84ͷυΩϡϝϯτͷ͍͏σϓϩΠ खݩͷιʔείʔυΛຊ൪ʹద༻͢Δɻ %PDLFSJNBHFͱͯ͠׬੒͞Εͨ΋ͷΛίϯςφͱͯ͠ىಈຊ൪ͷ&$4ʹϦϦʔε͢Δɻ

  33. σϓϩΠͷจ຺ ඍົʹݴͬͯΔ͜ͱ͕ҧ͏ ίϯςφΠϝʔδ͕͋Δલఏͷ σϓϩΠͱ͍͏จ຺ͳͷͰ ͜ͷลΘ͔ΒΜͱࠞཚ͢Δ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB "NB[PO$MPVE'SPOU ϑϩϯτΤϯυ

    όοΫΤϯυ "NB[PO4 σϓϩΠ ʁ
  34. $*$%ͱΠϯϑϥͱσϓϩΠͷҙຯΛ౿·্͑ͨͰ %PDLFS*NBHF

  35. %PDLFS*NBHFपΓͷ࿩ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB σϓϩΠ४උͷ࿩ɻ ܧଓతσϦόϦʔʹ͋ͨΓ·͢ɻ "NB[PO$MPVE'SPOU ϑϩϯτΤϯυ όοΫΤϯυ "NB[PO4

    ։ൃऀͷϩʔΧϧ ୯ମςετ ݁߹ςετ Ϗϧυ σϓϩΠ४උ σϓϩΠ
  36. %PDLFS*NBHFपΓͷ࿩ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB Πϝʔδ࡞੒ΛσϓϩΠ४උͷϑΣʔζͰ΍Γ·͢ɻ "NB[PO$MPVE'SPOU ϑϩϯτΤϯυ όοΫΤϯυ "NB[PO4 ։ൃऀͷϩʔΧϧ

    ୯ମςετ ݁߹ςετ Ϗϧυ σϓϩΠ४උ σϓϩΠ EPDLFSCVJME EPDLFSUBH EPDLFSQVTI
  37. %PDLFS*NBHFपΓͷ࿩ Πϝʔδ࡞੒ޙίϯςφΛ؅ཧ͢Δ3FQPTJUPSZʹQVTI͠·͢ɻ ։ൃऀͷϩʔΧϧ ୯ମςετ ݁߹ςετ Ϗϧυ σϓϩΠ४උ σϓϩΠ EPDLFSCVJME EPDLFSUBH

    EPDLFSQVTI 1SPEVDUJPO؀ڥ %PDLFS3FQPTJUPSZ
  38. ͦͯ͠"84ͷσϓϩΠͷจ຺΁ ඍົʹݴͬͯΔ͜ͱ͕ҧ͏ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB "NB[PO$MPVE'SPOU ϑϩϯτΤϯυ όοΫΤϯυ "NB[PO4 σϓϩΠ

    %PDLFS3FQPTJUPSZ QVTI͞ΕͨΠϝʔδΛ࢖ͬͯ ίϯςφΛ&$4ʹσϓϩΠ͢Δ
  39. "84ͷσϓϩΠ͸Ͳ͏͢Δͷ͔ ͔͜͜Βઌ͸ผͷճͰ΍Γ·͢ɻ "NB[PO&$4 "QQMJDBUJPO-PBE#BMBODFS 3%4"VSPSB "NB[PO$MPVE'SPOU ϑϩϯτΤϯυ όοΫΤϯυ "NB[PO4 σϓϩΠ

    %PDLFS3FQPTJUPSZ
  40. ·ͱΊ ܧଓతYYY͸ܧଓతΠϯςάϨʔγϣϯɾσϦόϦʔɾσϓϩΠ͕͋Δ ΞδϟΠϧ։ൃͱεΫϥϜ։ൃ͸ผ΋ͷ ܧଓతYYY͸ΞδϟΠϧ։ൃͷܽ఺ΛຒΊΔͨΊʹ͋Δղܾ๏ Πϯϑϥߏ੒ཁૉͱͯ͠"84ϓϩμΫτ͸཈͓͑ͯ͜͏ ։ൃऀͷσϓϩΠͱ"84υΩϡϝϯτͷσϓϩΠ͸গ͠χϡΞϯε͕ҧ͏