$30 off During Our Annual Pro Sale. View Details »

Dockerイメージのバージョン管理は GitのCommitHashよりもTreeでやると良い

yuukiyo
May 16, 2018
4.3k

Dockerイメージのバージョン管理は GitのCommitHashよりもTreeでやると良い

Docker Meetup Tokyo#23

yuukiyo

May 16, 2018
Tweet

Transcript

  1. %PDLFSΠϝʔδͷόʔδϣϯ؅ཧ͸ (JUͷ$PNNJU)BTIΑΓ΋5SFFͰ΍Δͱྑ͍ ฏ੒30೥5݄18೔ %PDLFS.FFUVQ5PLZP

  2. ٢ా༞थʢ:VLJ:PTIJEBʣ ,%%*גࣜձࣾ ʙ  ΞδϟΠϧ։ൃηϯλʔ ࣗݾ঺հ !2

  3. "OESPJEΤϯδχΞΛ୳͍ͯ͠·͢ !3 w )0.&*P5αʔϏεʹڵຯ͋Δ w ৽॓ۈ຿ɺΤϨϕʔλʔετϨεͳ͠ w ,PUMJO͚ͩ͡Όͳͯ͘ϞϒϓϩͰԿͰ΋΍Γ·͢

  4. Copyright © 2018 KDDI Corporation. All Rights Reserved %PDLFSपΓͰར༻ͯ͠Δ΋ͷ !4

    w "84ͷ&$3ͱ&$4 w σϓϩΠ͸5FSSBGPSNΛར༻ w ΞϓϦ͸(Pɺ1Zɺ+BWBɺ1)1ͳͲ w 7$4͸()&ͱ%SPOF
  5. Copyright © 2018 KDDI Corporation. All Rights Reserved ։ൃϑϩʔ !5

    w ։ൃ͸(JU)VC'MPX w σϓϩΠ͕བྷΉϦϙδτϦ͸(JU-BC'MPX w %PDLFSͷλάʹ͸HJUͷ$PNNJU)BTIΛར༻
 MBUFTUλά͸͚ͭͳ͍
  6. ຊ൪؀ڥʢQSEʣ %SPOF (JU)VC " ։ൃ؀ڥ EFW "QQMJDBUJPO-PBE#BMBODFS NBTUFS "QQMJDBUJPO-PBE#BMBODFS

  7. ຊ൪؀ڥʢQSEʣ %SPOF (JU)VC QSESFMFBTF EFWSFMFBTF " # $ ։ൃ؀ڥ EFW

    "QQMJDBUJPO-PBE#BMBODFS NBTUFS "QQMJDBUJPO-PBE#BMBODFS $ $ # #
  8. ຊ൪؀ڥʢQSEʣ %SPOF (JU)VC QSESFMFBTF EFWSFMFBTF " % # $ ։ൃ؀ڥ

    EFW "QQMJDBUJPO-PBE#BMBODFS NBTUFS GFBUVSF & "QQMJDBUJPO-PBE#BMBODFS $ $ # & &
  9. ຊ൪؀ڥʢQSEʣ %SPOF (JU)VC QSESFMFBTF EFWSFMFBTF " % ' # (

    $ ։ൃ؀ڥ EFW "QQMJDBUJPO-PBE#BMBODFS NBTUFS GFBUVSF & ) "QQMJDBUJPO-PBE#BMBODFS $ # & ( ) ) (
  10. ຊ൪؀ڥʢQSEʣ %SPOF (JU)VC QSESFMFBTF EFWSFMFBTF " % ' # (

    $ ։ൃ؀ڥ EFW "QQMJDBUJPO-PBE#BMBODFS NBTUFS GFBUVSF & ) "QQMJDBUJPO-PBE#BMBODFS $ # & ( ) ) ( ແବ͕ଟ͍Ͱ͢ΑͶʂʁ
  11. ຊ൪؀ڥ %SPOF (JU)VC QSESFMFBTF EFWSFMFBTF " % ' # (

    $ ։ൃ؀ڥ "QQMJDBUJPO-PBE#BMBODFS NBTUFS GFBUVSF & ) "QQMJDBUJPO-PBE#BMBODFS $ # & ( ) ) ( ͜ͷΤϦΞ಺ͷத਎͸มߋͳ͠ʂ %PDLFSϏϧυͷճ਺Λ ʹݮΒͤͦ͏
  12. Ͳ͏΍Δʁ

  13. ͦΕHJUͷ5SFFͰग़དྷ·͢

  14. yuukiyo at Yuki-Yoshida.local in ~/ on git:master > git cat-file

    -p c577fd09f174d2581dd6b7b8a11e10eb1f75b6f8 Copyright © 2018 KDDI Corporation. All Rights Reserved $PNNJU)BTIͱ5SFF)BTIͷग़͠ํ !14 yuukiyo at Yuki-Yoshida.local in ~/ on git:master > git rev-parse @ c577fd09f174d2581dd6b7b8a11e10eb1f75b6f8 $PNNJU)BTI tree a2566421cfc74aafc19169c4f4ca04e1ac929bb7 parent ccfd05ba1ce66db357c66f47c8bf87badd736ef6 parent 6cde67f317e46f6599f88847cc8bffaeae3e9815 author Yuki Yoshida <yi-yoshida@kddi.com> 1522731499 +0900 committer GitHub <no-reply@github.com> 1522731499 +0900 Merge pull request #131 from yuukiyo/yuukiyo $PNNJU0CKFDU 5SFF)BTI
  15. 5SFFͷ)BTIͰ΍ͬͯΈͨ

  16. ຊ൪؀ڥʢQSEʣ %SPOF (JU)VC " " " ։ൃ؀ڥ EFW "QQMJDBUJPO-PBE#BMBODFS NBTUFS

    "QQMJDBUJPO-PBE#BMBODFS " " " QSESFMFBTF EFWSFMFBTF
  17. ຊ൪؀ڥʢQSEʣ %SPOF (JU)VC " # # " # " ։ൃ؀ڥ

    EFW "QQMJDBUJPO-PBE#BMBODFS NBTUFS GFBUVSF # # "QQMJDBUJPO-PBE#BMBODFS # " # # QSESFMFBTF EFWSFMFBTF
  18. ຊ൪؀ڥʢQSEʣ %SPOF (JU)VC " # # " # " ։ൃ؀ڥ

    EFW "QQMJDBUJPO-PBE#BMBODFS NBTUFS GFBUVSF # # "QQMJDBUJPO-PBE#BMBODFS # " # # 5SFFͳΒத਎Ͱ൑அͯ͘͠ΕΔ͔Β σϓϩΠͷճ਺ͱ࣌ؒͷ୹ॖ͕ग़དྷͨ QSESFMFBTF EFWSFMFBTF
  19. Copyright © 2018 KDDI Corporation. All Rights Reserved ·ͱΊ !19

    w %PDLFSΠϝʔδʹόʔδϣϯλάΛ͚ͭΔ࣌ʹHJUͷ 5SFF4IBΛར༻ͨ͠Β#VJMEͷճ਺ΛݮΒͤ·ͨ͠ɻ w "OESPJEΤϯδχΞཉ͍͠
  20. ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠