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

DevOpsの基本と実践〜Visual Studio Team Servicesを使ったDev...

DevOpsの基本と実践〜Visual Studio Team Servicesを使ったDevOps〜 / TFSUG 33th Tokyo

『第33回TFSUG東京 Visual Studio Team ServicesでDevOps』で講演した『DevOpsの基本と実践〜Visual Studio Team Servicesを使ったDevOps〜』

changeworld

March 17, 2016
Tweet

More Decks by changeworld

Other Decks in Technology

Transcript

  1. © 2016 Takashi Takebayashi Microsoft MVP for Visual Studio and

    Development Technologies Takashi Takebayashi(a.k.a @changeworlds) changesworlds.com DevOpsͷجຊͱ࣮ફ ʙVisual Studio Team ServicesΛ࢖ͬͨDevOpsʙ ୈ33ճ TFSUG౦ژ Visual Studio Team ServicesͰDevOps
  2. © 2016 Takashi Takebayashi Takashi Takebayashi @changeworlds Microsoft MVP for

    Visual Studio and Development Technologies Blog : http://changesworlds.com/ Role : Scrum Master, Agile Coach Writing : Build Insider, mynavinews Community : εΫϥϜಓ, TFSUG, T4TίΞϝϯό Speaker
  3. © 2016 Takashi Takebayashi Why need DevOps? Why is good

    it? Summary Agenda ͳͥDevOps͕ඞཁ͔ʁ ͦΕ͡Όͳ͍ͱμϝʁ ·ͱΊ
  4. © 2016 Takashi Takebayashi Feedback Loop ϑΟʔυόοΫɾϧʔϓ ALMͱDevOpsͱϦʔϯελʔτΞοϓ͸Կ͕ҧ͏ͷ͔ʁ - Build

    Insider http://www.buildinsider.net/enterprise/almessentials/01 ૉૣ͘ϑΟʔυόοΫɾϧʔϓΛճ͢ͷ͸ ͳʹ΋ελʔτΞοϓʹݶΒͳ͍
  5. © 2016 Takashi Takebayashi Dev’ and Ops’ job are to

    enable the business http://www.slideshare.net/jallspaw/10-deploys-per-day-dev-and-ops-cooperation-at-flickr
  6. © 2016 Takashi Takebayashi But there’s a risk of outage

    when change http://www.slideshare.net/jallspaw/10-deploys-per-day-dev-and-ops-cooperation-at-flickr
  7. © 2016 Takashi Takebayashi Lowering risk of change through tools

    and culture http://www.slideshare.net/jallspaw/10-deploys-per-day-dev-and-ops-cooperation-at-flickr
  8. © 2016 Takashi Takebayashi Tool: Automated infrastructure Tool: Shared version

    control Tool: One step build and deploy Tool: Feature flags Tool: Shared metrics Tool: IRC and IM robots Culture: Respect Culture: Trust Culture: Healthy attitude about failure Culture: Avoiding Blame
 : DevOps component DevOpsߏ੒ཁૉ
  9. © 2016 Takashi Takebayashi Tool: Automated infrastructure Tool: Shared version

    control Tool: One step build and deploy Tool: Feature flags Tool: Shared metrics Tool: IRC and IM robots Culture: Respect Culture: Trust Culture: Healthy attitude about failure Culture: Avoiding Blame
 : DevOps component DevOpsߏ੒ཁૉ Culture: จԽ
 Lean: Ϧʔϯ
 Automated: ࣗಈԽ
 Measurement: ଌఆ
 Sharing: ڞ༗
 or People: ਓ(Culture etc)
 Process: ϓϩηε
 Product: ੡඼
  10. © 2016 Takashi Takebayashi DevOps 1st step DevOps͸͡Ίͷ1า ૊৫શମͷόϦϡʔɾετϦʔϜΛ֬ೝ͢Δ ੍໿(ϘτϧωοΫ)Λݟ͚ͭΔ(ToC:

    ੍໿ཧ࿦) ΧΠθϯͷεέδϡʔϧ΍໨ඪʹ޲͔͍ͬͯΔ͔Λ ֬ೝ͢ΔϝτϦΫεΛܾΊΔ ϑΟʔυόοΫɾϧʔϓͰ܁Γฦ͢
  11. © 2016 Takashi Takebayashi DevOps 1st step DevOps͸͡Ίͷ1า ૊৫શମͷόϦϡʔɾετϦʔϜΛ֬ೝ͢Δ ੍໿(ϘτϧωοΫ)Λݟ͚ͭΔ(ToC:

    ੍໿ཧ࿦) ΧΠθϯͷεέδϡʔϧ΍໨ඪʹ޲͔͍ͬͯΔ͔Λ ֬ೝ͢ΔϝτϦΫεΛܾΊΔ ϑΟʔυόοΫɾϧʔϓͰ܁Γฦ͢ ͸͡Ίͷ1าͱ͍͚ͬͨͲ͜Ε͕͢΂ͯ
  12. © 2016 Takashi Takebayashi Case Study: Where is the bottleneck?

    ϘτϧωοΫ͸ʁ https://www.flickr.com/photos/nep/8637390485/ ҎԼͷ޻ఔͰύϯΛ࡞Δύϯ԰͞Μ͕͋ Γ·͢ɻ ʮੜ஍Λͭ͘Δʯɹɿ30ݸ/2࣌ؒ ʮύϯΛম͘ʯɹɹɿ15ݸ/࣌ؒ ʮύϯΛൢച͢Δʯɿ1ݸ/3෼ 1೔8࣌ؒӦۀͰɺຖ೔মཱ͖ͯͷύϯͷച ্ΛࠓΑΓ΋͋͛Δʹ͸Ͳ͜ΛΧΠθϯ ͢Ε͹Α͍Ͱ͠ΐ͏ʁ
  13. © 2016 Takashi Takebayashi Case Study: Where is the bottleneck?

    ϘτϧωοΫ͸ʁ https://www.flickr.com/photos/nep/8637390485/ ҎԼͷ޻ఔͰύϯΛ࡞Δύϯ԰͞Μ͕͋ Γ·͢ɻ ʮੜ஍Λͭ͘Δʯɹɿ30ݸ/2࣌ؒ ʮύϯΛম͘ʯɹɹɿ25ݸ/࣌ؒ ʮύϯΛൢച͢Δʯɿ1ݸ/3෼ 1೔8࣌ؒӦۀͰɺຖ೔মཱ͖ͯͷύϯͷച ্ΛࠓΑΓ΋͋͛Δʹ͸Ͳ͜ΛΧΠθϯ ͢Ε͹Α͍Ͱ͠ΐ͏ʁ
  14. © 2016 Takashi Takebayashi Case Study: Where is the bottleneck?

    ϘτϧωοΫ͸ʁ https://www.flickr.com/photos/nep/8637390485/ ҎԼͷ޻ఔͰύϯΛ࡞Δύϯ԰͞Μ͕͋ Γ·͢ɻ ʮੜ஍Λͭ͘Δʯɹɿ50ݸ/2࣌ؒ ʮύϯΛম͘ʯɹɹɿ25ݸ/࣌ؒ ʮύϯΛൢച͢Δʯɿ1ݸ/3෼ 1೔8࣌ؒӦۀͰɺຖ೔মཱ͖ͯͷύϯͷച ্ΛࠓΑΓ΋͋͛Δʹ͸Ͳ͜ΛΧΠθϯ ͢Ε͹Α͍Ͱ͠ΐ͏ʁ
  15. © 2016 Takashi Takebayashi Case Study: Where is the bottleneck?

    ϘτϧωοΫ͸ʁ https://www.flickr.com/photos/nep/8637390485/ ҎԼͷ޻ఔͰύϯΛ࡞Δύϯ԰͞Μ͕͋ Γ·͢ɻ ʮੜ஍Λͭ͘Δʯɹɿ50ݸ/2࣌ؒ ʮύϯΛম͘ʯɹɹɿ25ݸ/࣌ؒ→45෼ ʮύϯΛൢച͢Δʯɿ1ݸ/3෼ 1೔8࣌ؒӦۀͰɺຖ೔মཱ͖ͯͷύϯͷച ্ΛࠓΑΓ΋͋͛Δʹ͸Ͳ͜ΛΧΠθϯ ͢Ε͹Α͍Ͱ͠ΐ͏ʁ
  16. © 2016 Takashi Takebayashi ࠶ܝ: DevOps 1st step DevOps͸͡Ίͷ1า ૊৫શମͷόϦϡʔɾετϦʔϜΛ֬ೝ͢Δ

    ੍໿(ϘτϧωοΫ)Λݟ͚ͭΔ(ToC: ੍໿ཧ࿦) ΧΠθϯͷεέδϡʔϧ΍໨ඪʹ޲͔͍ͬͯΔ͔Λ ֬ೝ͢ΔϝτϦΫεΛܾΊΔ ϑΟʔυόοΫɾϧʔϓͰ܁Γฦ͢
  17. © 2016 Takashi Takebayashi Process or People? “;ͭ͏ͷਓʑ͔Β͢͹Β͍͠੒ՌΛ͋͛ΔΑ͏ͳɺ͢͹Β͍͠γες ϜΛϚωδϝϯτ͢ΔɻզʑͷίϯϖςΟλ͸ɺ͢͹Β͍͠ਓʑ͔Β ී௨ͷ੒ՌΛ্͛ΔΑ͏ͳɺյΕͨϓϩηεʹ࢛ۤീ͍ۤͯ͠Δɻ”

    –ு෋࢜෉(τϤλࣗಈंձ௕) “զʑ͕ग़ձ͏΄ͱΜͲ(͓ͦΒ͘90%) ͷ໰୊͸ҰൠతʹݪҼΛ1ͭʹಛ ఆͰ͖ͳ͍ෳ਺ͷӨڹͷ݁ՌͰ͋ Δɻ໰୊ͷݪҼΛҰ෦ͷਓͷ͍ͤ ʹ ͯ͠௥ڀ͢Δͷ͸શ͘ٯޮՌͩɻ ѱ͍ঢ়گΛ͞Βʹѱͯ͘͠͠·͏” - Deming
  18. © 2016 Takashi Takebayashi Process or People? “;ͭ͏ͷਓʑ͔Β͢͹Β͍͠੒ՌΛ͋͛ΔΑ͏ͳɺ͢͹Β͍͠γες ϜΛϚωδϝϯτ͢ΔɻզʑͷίϯϖςΟλ͸ɺ͢͹Β͍͠ਓʑ͔Β ී௨ͷ੒ՌΛ্͛ΔΑ͏ͳɺյΕͨϓϩηεʹ࢛ۤീ͍ۤͯ͠Δɻ”

    –ு෋࢜෉(τϤλࣗಈंձ௕) “զʑ͕ग़ձ͏΄ͱΜͲ(͓ͦΒ͘90%) ͷ໰୊͸ҰൠతʹݪҼΛ1ͭʹಛ ఆͰ͖ͳ͍ෳ਺ͷӨڹͷ݁ՌͰ͋ Δɻ໰୊ͷݪҼΛҰ෦ͷਓͷ͍ͤ ʹ ͯ͠௥ڀ͢Δͷ͸શ͘ٯޮՌͩɻ ѱ͍ঢ়گΛ͞Βʹѱͯ͘͠͠·͏” - Deming
  19. © 2016 Takashi Takebayashi Process or People? “;ͭ͏ͷਓʑ͔Β͢͹Β͍͠੒ՌΛ͋͛ΔΑ͏ͳɺ͢͹Β͍͠γες ϜΛϚωδϝϯτ͢ΔɻզʑͷίϯϖςΟλ͸ɺ͢͹Β͍͠ਓʑ͔Β ී௨ͷ੒ՌΛ্͛ΔΑ͏ͳɺյΕͨϓϩηεʹ࢛ۤീ͍ۤͯ͠Δɻ”

    –ு෋࢜෉(τϤλࣗಈंձ௕) “զʑ͕ग़ձ͏΄ͱΜͲ(͓ͦΒ͘90%) ͷ໰୊͸ҰൠతʹݪҼΛ1ͭʹಛ ఆͰ͖ͳ͍ෳ਺ͷӨڹͷ݁ՌͰ͋ Δɻ໰୊ͷݪҼΛҰ෦ͷਓͷ͍ͤ ʹ ͯ͠௥ڀ͢Δͷ͸શ͘ٯޮՌͩɻ ѱ͍ঢ়گΛ͞Βʹѱͯ͘͠͠·͏” - Deming ͦ͏͍͏ͷͲ͔ͬʹͳ͍ͷʁ
  20. © 2016 Takashi Takebayashi Visual Studio Team Services Work Item(like

    issue), Kanban: like Redmine, Trac, JIRA…etc
 operate via Excel, Web browser Build and Test and Deploy(CI, CD): like Jenkins, Fabric, Capistrano…etc Discussion, Pull request: like GitHub, GitLab, Bitbucket…etc and more
 Branch Policy, 5 FREE users, Unlimited FREE stakeholders/eligible MSDN subscribers, 
 Unlimited team projects and private code repos, 
 FREE work item tracking for all users, 
 FREE limited minutes/month of build,
 FREE limited virtual user minutes/month of load testing
  21. © 2016 Takashi Takebayashi Producer Dev team QA, Ops team

    νʔϜ։ൃʹ͓͚ΔόϦϡʔετϦʔϜͷؔ܎ऀ(Ұ෦)
  22. © 2016 Takashi Takebayashi Producer Dev team QA, Ops team

    νʔϜ։ൃʹ͓͚ΔόϦϡʔετϦʔϜͷؔ܎ऀͷؔ৺(Ұ෦)
  23. © 2016 Takashi Takebayashi Producer Dev team QA, Ops team

    νʔϜ։ൃʹ͓͚ΔόϦϡʔετϦʔϜͷؔ܎ऀͷؔ৺(Ұ෦)
  24. © 2016 Takashi Takebayashi Producer Dev team QA, Ops team

    νʔϜ։ൃʹ͓͚ΔόϦϡʔετϦʔϜͷؔ܎ऀͷؔ৺(Ұ෦)
  25. © 2016 Takashi Takebayashi νʔϜ։ൃʹ͓͚ΔόϦϡʔετϦʔϜͷؔ܎ऀͷؔ৺(Ұ෦) Producer Dev team QA, Ops

    team Excel, Word, PowerPoint…etc Redmine, Trac, JIRA…etc GitHub, GitLab…etc Jenkins…etc Fabric, Capistrano…etc Skype, Slack, ChatWork…etc
  26. © 2016 Takashi Takebayashi νʔϜ։ൃʹ͓͚ΔόϦϡʔετϦʔϜͷؔ܎ऀͷ෦෼࠷దԽͷฐ֐(Ұ෦) Producer Dev team QA, Ops

    team Excel, Word, PowerPoint…etc Redmine, Trac, JIRA…etc GitHub, GitLab…etc Jenkins…etc Fabric, Capistrano…etc Skype, Slack, ChatWork…etc
  27. © 2016 Takashi Takebayashi Producer Dev team QA, Ops team

    νʔϜ։ൃʹ͓͚ΔόϦϡʔετϦʔϜͷؔ܎ऀΛશମ࠷దͰܨ͕Δ(Ұ෦) Excel, TFS, VSTS TFS, VSTS TFS, VSTS TFS, VSTS TFS, VSTS Team Room
  28. © 2016 Takashi Takebayashi DevOps 1st step DevOps͸͡Ίͷ1า ૊৫શମͷόϦϡʔɾετϦʔϜΛ֬ೝ͢Δ ੍໿(ϘτϧωοΫ)Λݟ͚ͭΔ(ToC:

    ੍໿ཧ࿦) ΧΠθϯͷεέδϡʔϧ΍໨ඪʹ޲͔͍ͬͯΔ͔Λ ֬ೝ͢ΔϝτϦΫεΛܾΊΔ ϑΟʔυόοΫɾϧʔϓͰ܁Γฦ͢
  29. © 2016 Takashi Takebayashi νʔϜ։ൃʹ͓͚ΔόϦϡʔετϦʔϜͷؔ܎ऀͷ෦෼࠷దԽͷฐ֐(Ұ෦) Producer Dev team QA, Ops

    team Excel, Word, PowerPoint…etc Redmine, Trac, JIRA…etc GitHub, GitLab…etc Jenkins…etc Fabric, Capistrano…etc Skype, Slack, ChatWork…etc
  30. © 2016 Takashi Takebayashi Process or People? “;ͭ͏ͷਓʑ͔Β͢͹Β͍͠੒ՌΛ͋͛ΔΑ͏ͳɺ͢͹Β͍͠γες ϜΛϚωδϝϯτ͢ΔɻզʑͷίϯϖςΟλ͸ɺ͢͹Β͍͠ਓʑ͔Β ී௨ͷ੒ՌΛ্͛ΔΑ͏ͳɺյΕͨϓϩηεʹ࢛ۤീ͍ۤͯ͠Δɻ”

    –ு෋࢜෉(τϤλࣗಈंձ௕) “զʑ͕ग़ձ͏΄ͱΜͲ(͓ͦΒ͘90%) ͷ໰୊͸ҰൠతʹݪҼΛ1ͭʹಛ ఆͰ͖ͳ͍ෳ਺ͷӨڹͷ݁ՌͰ͋ Δɻ໰୊ͷݪҼΛҰ෦ͷਓͷ͍ͤ ʹ ͯ͠௥ڀ͢Δͷ͸શ͘ٯޮՌͩɻ ѱ͍ঢ়گΛ͞Βʹѱͯ͘͠͠·͏” - Deming
  31. © 2016 Takashi Takebayashi Producer Dev team QA, Ops team

    νʔϜ։ൃʹ͓͚ΔόϦϡʔετϦʔϜͷؔ܎ऀΛશମ࠷దͰܨ͕Δ(Ұ෦) Excel, TFS, VSTS TFS, VSTS TFS, VSTS TFS, VSTS TFS, VSTS Team Room
  32. © 2016 Takashi Takebayashi Takashi Takebayashi @changeworlds Microsoft MVP for

    Visual Studio and Development Technologies Blog : http://changesworlds.com/ Role : Scrum Master, Agile Coach Writing : Build Insider, mynavinews Community : εΫϥϜಓ, TFSUG, T4TίΞϝϯό Speaker