Build CI for Smartphone apps dev. at Hatena

3f4be9784f765877f444bc839de29888?s=47 aereal
April 13, 2015

Build CI for Smartphone apps dev. at Hatena

3f4be9784f765877f444bc839de29888?s=128

aereal

April 13, 2015
Tweet

Transcript

  1. εϚʔτϑΥϯΞϓϦͷҝ ͷCIαʔόߏஙͱӡ༻ id:aereal

  2. ΞδΣϯμ w CI ͷ໾ׂͱҙٛ w ͸ͯͳͷεϚʔτϑΥϯΞϓϦ։ൃͱCI • OS X Server͋

    w Infrastructure as CodeΛ໨ࢦ͢
  3. ࣗݾ঺հ id:aereal Twitter: aereal GitHub: aereal ΞϓϦέʔγϣϯΤϯδχΞ

  4. ͸ͯͳͷεϚʔτϑΥϯΞϓϦ ։ൃۙگ

  5. None
  6. ͳͥCI͕ඞཁ͔

  7. CI = Continuous Integration

  8. ౷߹ Integration w Ұ࿈ͷϓϩηεΛ౷߹͢Δ w e.g.ϏϧυˠςετˠΧόϨοδܭଌˠ഑෍ w ʮνʔϜʹ։ൃϏϧυΛ഑ΔͷΛ๨Ε͍ͯͨʯ w ʮϏϧυ৬ਓʯͷഉআ

  9. ܧଓత Continuous w ୤ʮ΍ͬͨΓɺ΍Βͳ͔ͬͨΓʯ w git pushͨ͠Β౷߹͕࢝·Δ w ϓϩηε͕ͦͷ࣌ʑͰมΘΒͳ͍

  10. ͸ͯͳͷ εϚʔτϑΥϯΞϓϦ։ൃͱCI

  11. ͜Ε·Ͱ • Jenkins on MacBook w ʮJenkins͕ಈ͍͍ͯΔͷͰ֖Λด͡ͳ͍Ͱʯ w ӡ༻ͷ஌ݟͱ༨༟͕ͳ͔ͬͨ w

    ։ൃͷن໛
  12. ݱࡏ • Jenkins on Mac mini w/OS X Server w

    ςετ w Ϗϧυͱ഑෍ w J5VOFT$POOFDU΁ͷΞοϓϩʔυ
  13. OS X Server

  14. w جຊ͸OS X w iOS Developer Programʹೖ͍ͬͯΔͱແྉ w MackerelͰ؂ࢹ w

    IUUQTNBDLFSFMJP
  15. w OS X Ͱ࢖͑ΔίϚϯυ͕ී௨ʹ࢖͑Δ • softwareupdate(8) • defaults(1) • launchctl(1)

    • http://developer.hatenastaff.com/entry/ hatena-engineer-advent-calendar-01-ansible
  16. ͳͥࣗલͰӡ༻͢Δͷ͔ w GitHub Enterpriseͱͷ౷߹ w Ϗϧυπʔϧͷόʔδϣϯ • Xcode

  17. ࣗલor SaaS w Մ༻ੑorίετ w ΫϦςΟΧϧͰͳ͍ͱ͜Ζ͔Β • εΫϦʔϯγϣοτͷ࡞੒ • σϓϩΠ

    w ηΩϡϦςΟϙϦγʔ
  18. Ansibleͱ Infrastructure as Code

  19. Ansibleͱ Infrastructure as Code

  20. IUUQXXXBOTJCMFDPNIPNF l"OTJCMFJTUIFTJNQMFTUXBZUPBVUPNBUFz

  21. ΞϓϦέʔγϣϯͷ։ൃ؀ڥΛ AnsibleͰͭ͘Δ IUUQEFWFMPQFSIBUFOBTUB⒎DPNFOUSZIBUFOBFOHJOFFSBEWFOU DBMFOEBSBOTJCMF

  22. Ansibleͱ Infrastructure as Code

  23. Infrastructure as Code w ϗετͷઃఆ΍ߏ੒ΛίʔυͰ௚઀දݱ͢Δ w ࣮ߦՄೳʹ w ςετՄೳʹ

  24. No moreےྗӡ༻ w CIΛಈ͔͢͜ͱࣗମ͕໨తͰ͸ͳ͍ w CIͷԸܙΛ׆͔͠Ձ஋͋ΔϓϩμΫτΛ࡞Δࣄ͕ ໨త w ςετՄೳͳํ๏ΛબͿ

  25. ڞ௨ݴޠͱͯ͠ͷίʔυ w ʮ͍͟ͱͳΕ͹ಡΊ͹Θ͔Δʯ w ϝϯςφϯε͢ΔϞνϕʔγϣϯ

  26. ࣗಈԽͷਐΊํ w Կ౓΋܁Γฦͯ͠΍Δ͜ͱ͔Β࢝ΊΔ w e.g. launchd༻plistΛίϐʔ͢Δ w จॻԽͰ͢·ͤΔ͜ͱΛݕ౼ͯ͠΋Α͍ w e.g.͘͝୯७Ͱճ͖Γͷ࡞ۀ

  27. ·ͱΊ w ඼࣭Λ୲อ͠ૉૣ͘ϓϩμΫτΛ࡞ΔͨΊʹ$*Λॏ ༻͍ͯ͠·͢ w ྗٕͷߏஙɾӡ༻ʹͳΒͳ͍Α͏ʹ*OGSBTUSVDUVSF BT$PEFΛ৺ֻ͚͍ͯ·͢

  28. ࢀߟ • http://www.apple.com/jp/osx/server/ • https://mackerel.io/ • http://developer.hatenastaff.com/entry/hatena- engineer-advent-calendar-01-ansible • http://www.ansible.com/home