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

DockerでPaaSをつくる #ylug_111

DockerでPaaSをつくる #ylug_111

taichi nakashima

May 30, 2014
Tweet

More Decks by taichi nakashima

Other Decks in Technology

Transcript

  1. ࣮ߦ؀ڥ: Dyno (base on LXC) Ϗϧυ: Slug compiler (buidpack) ىಈ:

    Procfile $ git push heroku master ࣮ߦ؀ڥ: Docker (progrium/buildstep) Ϗϧυ: builderεΫϦϓτ (buidpack) ىಈ: Procfile $ git push dokku master dokku
  2. ࣮ߦ؀ڥ: Docker (ctlc/buildstep) Ϗϧυ: builderεΫϦϓτ (buidpack) ىಈ: Procfile $ building

    -p 3000 tcnksm/myapp ࣮ߦ؀ڥ: Docker (progrium/buildstep) Ϗϧυ: builderεΫϦϓτ (buidpack) ىಈ: Procfile $ git push dokku master Building dokku
  3. Run $ cd your-application $ building -p 3000 tcnksm/myapp 1.

    ઐ༻ͷDockerfileͷੜ੒ 2. ImageͷϏϧυ 3. Containerͷىಈ Building
  4. Dockerfile FROM ctlc/buildstep ! ADD . /app #1)ΞϓϦέʔγϣϯͷ௥Ճ RUN /build/builder

    #2)ΞϓϦέʔγϣϯͷ൑ผ/Ϗϧυ CMD /start web #3) Procfileʹج͖ͮΞϓϦέʔγϣϯͷىಈ
  5. ++

  6. • 12 factor AppͷΑ͏ͳαʔϏεΛ࡞Δ • 2ͭͷlayerͰߏ੒͞ΕΔ • CoreOSͷetcdʹΑΔαʔϏεσΟεΧόϦ૚ (layer0) •

    HerokuͷΑ͏ͳΞϓϦέʔγϣϯͷσϓϩΠ/Ϗϧυ૚ (layer1) • Herokuͷ؆ศ͞ͱEC2ͷࣗ༝౓Λ݉Ͷඋ͑Δ Flynn
  7. Reference • Inside Dokku in 5 minutes • http://banyan.me/slides/20140116/slides.html •

    The Start of the Age of Flynn • http://progrium.com/blog/2014/02/06/the-start-of-the-age-of-flynn/ • Flynn vs. Deis: The Tale of Two Docker Micro-PaaS • http://www.centurylinklabs.com/flynn-vs-deis-the-tale-of-two-docker-micro-paas-technologies/