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

Ruby on Rails on Azure

Ruby on Rails on Azure

TokyuRuby会議 #11 のLT資料

8db3c91c8b3d3e5686f62fbf43c303dd?s=128

Tatsuya Sato

August 01, 2017
Tweet

Transcript

  1. Ruby on Rails on Azure ͞ͱ͏ ͨͭ΍

  2. ࣗݾ঺հ

  3. ࠤ౻ཽ໵ ɹ@sato_ryu Ruby, Agile, Azure, OSS Gate ࠷دΓӺ͸ژٸക԰ෑӺ ௨ۈ͸౦ٸଟຎ઒ઢ

  4. Botch ΅ͬͪ

  5. μδϟϨ

  6. ϝιου԰ͷϒϩά http://simplearchitect.hatenablog.com/entry/2017/06/19/080036

  7. Mobprogrammer ίί

  8. Mobprogramming ಛʹίί

  9. ϘονͰ
 μδϟϨΛͭͿ΍͘ Mosh’sh Mateͳ ࣗশRubyist ͷ
 ࠤ౻Ͱ͢ɻ

  10. ຊ୊

  11. Ruby on Rails 
 on Azure

  12. Microsoft Azure

  13. Railsʹ͸༏͘͠ͳ͍ɻ

  14. ͓Αͦ1೥લ

  15. –Tatsuya Sato “Rails ΛAzure ʹσϓϩΠ͍ͨ͠ɻ”

  16. ·ͣ͸ਖ਼͍͠ํ๏

  17. ݻ͍ํ๏ • Azure Virtual Machine • AWSͷEC2 ૬౰ • Linux

    OSʹCapistranoͰσϓϩΠͰ͖Δ؀ڥΛߏங
  18. φ΢͍ํ๏ • Azure Container Service/Instances • DockerίϯςφϗεςΟϯάαʔϏε • Public·ͨ͸PrivateͷίϯςφΠϝʔδͰRails؀ڥΛσϓϩΠ

  19. ͔͠͠1೥લ͸

  20. ঢ়گ͕ҧ͏ • Azure Container Service/Instance ͸·ͩແ͍ɻ • Azure Virtual Machine

    ʹ࣮ߦ؀ڥ࡞Δͷ͸໘౗͍͘͞… • Chef, Ansible Ͱॻ͚͹ྑ͍ͱ͍͑͹ɺͦ͏͚ͩͲ…
  21. –Tatsuya Sato “PaaS͕ཉ͍͠ɻ”

  22. –Tatsuya Sato “PaaS͕ཉ͍͠ɻ”

  23. Azure Web App

  24. Azure Web App • Git ΍FTPܦ༝ͰιʔεΛσϓϩΠͰ͖ΔΞϓϦέʔγϣϯ࣮ߦ؀ڥ • Windows Server +

    IIS • αϙʔτݴޠ • Java • Node.js • PHP • Python
  25. Ruby͸αϙʔτແ͠

  26. ઌਓͷ஌ܙΛआΓΔɻ

  27. ͣ͘ Kudu

  28. Kudu • Web App Πϯελϯε্ͰσϓϩΠޙͷηοτΞοϓΛ࣮ࢪ͢Δί ϯϙʔωϯτ • ϦϙδτϦʹ .deployment ϑΝΠϧͰηοτΞοϓΛఆٛ

  29. .deployment Ͱ΍Δ͜ͱ • RubyInstaller for Windows ΛΠϯετʔϧ • PATHΛॻ͖׵͑Δ •

    DevKit΋Πϯετʔϧ
  30. .deployment ͭΒ͍ • ͱʹ͔͘λΠϜΞ΢τ • RubyInstallerͷμ΢ϯϩʔυ͕ऴΘΒͳ͍ɻ • Πϯετʔϧ࣌ͷΠϯελϯεͷঢ়گʹΑͬͯ͸ϋϯά͢Δɻ

  31. σϓϩΠͰ͖ͯ΋ਏ͍ • ΍ͬͺΓWindows Server্ͰRubyΛϝϯς͢Δͷਏ͍ • ೖΒͳ͍gem͕͋Δɻ

  32. –Tatsuya Sato “Windows Server ͰRubyɺμϝɺθολΠ”

  33. ͋Ε͔Β1೥લ

  34. Azure Web App on Linux
 (Preview)

  35. Azure Web App on Linux • LinuxϕʔεͷDockerίϯςφΛαϙʔτͨ͠Web App • ͜Ε·Ͱ௨ΓGit΍FTPͰσϓϩΠՄೳ

    • αϙʔτ͍ͯ͠ΔϥϯλΠϜͰ͋Ε͹Dockerfile͍Βͣ
  36. Ruby is officially supported!

  37. νϡʔτϦΞϧ͕͋Δʂ

  38. νϡʔτϦΞϧͷखॱ • rails new Ͱ৽نϓϩδΣΫτ࡞੒ • σϓϩΠઌͷgit ϦϙδτϦΛొ࿥ • git

    push • ͜Ε͚ͩʂ
  39. None
  40. None
  41. ͑ͬʂʁ

  42. ͱʹ͔͘੬͍ • σϓϩΠ௚ޙʹΞΫηε͢Δͱࢮ͵ɻ • σϓϩΠ௚ޙʹΞΫηε͢ΔͱϑΝΠϧ͕Ϟϩݟ͑ɻ • σϓϩΠதʹಥવࢮ͵ɻ • σϓϩΠ௚ޙʹࢮ͵ɻ

  43. ʢެࣜʣਖ਼͍͠खॱ • σϓϩΠ௚ޙʹϙʔλϧը໘͔Β࠶ىಈ͠·͠ΐ͏ɻ https://docs.microsoft.com/ja-jp/azure/app-service-web/app-service-linux-ruby- get-started#deploy-your-application

  44. ·ͱΊ • ·ͩAzure Web App on LinuxͰRails͸ਏ͍ɻ • Azure ͰRails΍Γ͍ͨͳΒVM͔Container

    Service/Instance