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

ふくばねてす_1_CNBuildpack.pdf

Kazuhiko Yamashita
April 08, 2019
180

 ふくばねてす_1_CNBuildpack.pdf

Kazuhiko Yamashita

April 08, 2019
Tweet

Transcript

  1. CloudNative Buildpacks
    ʙload to 2002ʙ

    View full-size slide

  2. ࢁԼ࿨඙!QZBNB
    (.0ϖύϘٕज़ج൫νʔϜ
    γχΞɾϓϦϯγύϧ
    UFOTOBQPODPN
    QZBNBGVO
    TUOTKQ

    View full-size slide

  3. 45/4
    -JOVY/444FSWFS
    TUOTKQ

    View full-size slide

  4. झຯ: ࠗ׆

    View full-size slide

  5. “Έͳ͞Μ͸ɺ
    CloudNativeͰ͔͢ʁ”

    View full-size slide

  6. ͳͥCloud Nativeͳͷ͔ʁ

    View full-size slide

  7. Ϟςͦ͏ʂʂʂʂ̍

    View full-size slide

  8. Native English = ϞςΔ
    ͭ·Γ
    Cloud Native = ϞςΔ
    Αͬͯ
    Native English = Cloud Native

    View full-size slide

  9. ࠓ೔࿩͢͜ͱ
    • Pࢁ͕ߟ͑ΔϖύϘͷΫϥ΢υωΠςΟϒҠߦ

    • ͦΕΒʹඞཁͱߟ͍͑ͯΔ΋ͷ

    • Cloud Native Buildpacks

    View full-size slide

  10. ϖύϘͷݱঢ়
    • Πϯϑϥ͸ΦϯϓϨOpenStack + ΦϯϓϨϗεςΟϯάαʔό

    • CI͸׬શʹίϯςφ(γεςϜίϯςφ)

    • ։ൃ؀ڥ͸Ұ෦ίϯςφɺ΄΅VM

    • ຊ൪؀ڥ͸΄΅VM

    • ΞϓϦ+ΠϯϑϥΤϯδχΞ or ΞϓϦΤϯδχΞ͕શ෦΍Δ

    View full-size slide

  11. Ϋϥ΢υωΠςΟϒҠߦʹΑͬͯղܾ͍ͨ͜͠ͱ
    • ࣄۀࠩผԽཁҼҎ֎͸ϚωʔδυαʔϏεΛར༻͠ɺϦιʔεΛूத͢Δ

    • ΞϓϦΤϯδχΞɺΠϯϑϥΤϯδχΞ͕ຊདྷͷόϦϡʔΛग़͢΂͖ͱ͜
    ΖʹूதͰ͖ΔΑ͏ʹ͍ͨ͠

    • ։ൃ؀ڥͱຊ൪؀ڥͷࠩҟΛͳ͍ͨ͘͠

    View full-size slide

  12. ͦΕʹඞཁͱߟ͍͑ͯΔ΋ͷ
    • Ϋϥ΢υωΠςΟϒͳΞʔΩςΫνϟʹ͸ɺOS͕΍͍ͬͯͨΑ͏ͳ࢓ࣄ
    Λड͚࣋ͭίϯϙʔωϯτ͕ඞཁͱߟ͍͑ͯΔ

    • ΞϓϦέʔγϣϯ͕ಈ͘؀ڥΛVMɺγεςϜίϯςφͰ͸ͳ͘ΞϓϦ
    έʔγϣϯίϯςφʹ͍ͨ͠ɺ؆୯ʹ

    View full-size slide

  13. https://speakerdeck.com/pyama86/an-falsezhong-dejin-kafkagawan-quan-nire-i
    syslogͱ͔͕΍ͬͯͨ࢓ࣄ͸Kafkaͱ͔࢖͏Έ͍ͨͳ࿩Λͨ͠

    View full-size slide

  14. Buildpacks?
    Ҿ༻:https://jp.heroku.com/elements/buildpacks

    View full-size slide

  15. Cloud Native Buildpacks
    • heroku΍Cloud FoundryͷBuildpacksͷ࢓૊ΈΛඪ४Խ

    • ඪ४࣮૷ͱͯ͠packίϚϯυΛ഑෍

    • OCI Imageͱͯ͠ग़ྗ͕Մೳ

    • https://github.com/buildpack/spec

    View full-size slide

  16. php buildpacks
    Cloud Native Buildpacks
    App Code
    detect build
    phpͷϓϩδΣΫτʁ phpͷίϯύΠϧ
    ίʔυΛݩʹɺඞཁͳbuild͕ߦΘΕɺίϯςφΠϝʔδ͕࡞੒͞ΕΔ

    View full-size slide

  17. buildpacks
    php buildpacks
    Cloud Native Buildpacks
    App Code
    apache buildpacks
    composer buildpacks
    buildpacksΛෳ਺૊Έ߹ΘͤͯҰͭͷίϯςφΠϝʔδΛ࡞੒

    buildpacks͸ൃలʹ൐͍ɺݴޠίϛϡχςΟ൛ͳͲ͕ग़ͯ͘Δͱਪଌ͞ΕΔ

    View full-size slide

  18. Cloud Native Buildpacks
    build࣌ʹར༻͢ΔΠϝʔδͱɺ࣮ߦ࣌ʹ

    ར༻͞ΕΔΠϝʔδ͸ҟͳΔ
    https://buildpacks.io/docs/using-pack/building-app/

    View full-size slide

  19. Cloud Native Buildpacks͕࡞Δੈք
    • ίʔυΛݩʹࣗಈͰඞཁͳ΋ͷ͕ೖΔ͔ͷΑ͏ʹ࣮૷Ͱ͖ΔͷͰɺεέʔϧϝϦοτ͕
    ग़΍͍͢(ޙड़)

    • ηΩϡϦςΟ໘ʹ͓͍ͯ΋BuildpacksͰύοέʔδ؅ཧ͕Ͱ͖ΔͷͰɺن໛͕େ͖͍৔
    ߹Ͱ΋ηΩϡϦςΟFIX͕༰қ

    • ΞϓϦґଘͷઃఆͳͲ͕ΞϓϦέʔγϣϯϦϙδτϦʹͦͷ··ஔ͔ΕΔΑ͏ʹͳΔ͔
    Βɺxxxx-chef/xxxx-puppetͳͲͷϦϙδτϦ͕ফࣦ͢Δ

    • httpdͱ͔nginxͱ͔؀ڥม਺͚ͩͰ͸࿫͑ͳ͍ݻ༗ͷઃఆϑΝΠϧ͸ΞϓϦέʔγϣ
    ϯϦϙδτϦ(αϒϞδϡʔϧ)Ͱ؅ཧ͞ΕΔΑ͏ʹͳΓɺΞϓϦ+ίϯϑΟάϨʔγϣ
    ϯϦϙδτϦʹͳΔͷͰ͸ͳ͍͔ʁ

    View full-size slide

  20. ϖύϘͷະདྷ
    pepabo buildpacks
    php buildpacks
    apache buildpacks
    composer buildpacks
    ͋ΒΏΔ঎ࡐͷίϯςφΠϝʔδ͕Ұݩతʹ࡞੒ՄೳʹͳΓɺ
    ։ൃϦιʔεɺશࣾҰ؏ͷηΩϡϦςΟ؅ཧ͕΍Γ΍͘͢ͳΔ

    View full-size slide

  21. developerͱͯ͠΋νϟϯε͕͋Δ

    View full-size slide

  22. Զͱ͜ͷϏοά΢Σʔϒʹ৐ͬͯ͘Εʂʂ̍
    ࠷৽ͷ࠾༻৘ใΛνΣοΫˠ !QC@SFDSVJU

    View full-size slide