Lock in $30 Savings on PRO—Offer Ends Soon! ⏳

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

yuukiyo
May 16, 2018
5.3k

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

Docker Meetup Tokyo#23

yuukiyo

May 16, 2018
Tweet

Transcript

  1. 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
  2. Copyright © 2018 KDDI Corporation. All Rights Reserved ։ൃϑϩʔ !5

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

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

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

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

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

    $ ։ൃ؀ڥ "QQMJDBUJPO-PBE#BMBODFS NBTUFS GFBUVSF & ) "QQMJDBUJPO-PBE#BMBODFS $ # & ( ) ) ( ͜ͷΤϦΞ಺ͷத਎͸มߋͳ͠ʂ %PDLFSϏϧυͷճ਺Λ ʹݮΒͤͦ͏
  8. 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 <[email protected]> 1522731499 +0900 committer GitHub <[email protected]> 1522731499 +0900 Merge pull request #131 from yuukiyo/yuukiyo $PNNJU0CKFDU 5SFF)BTI
  9. ຊ൪؀ڥʢQSEʣ %SPOF (JU)VC " " " ։ൃ؀ڥ EFW "QQMJDBUJPO-PBE#BMBODFS NBTUFS

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

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

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

    w %PDLFSΠϝʔδʹόʔδϣϯλάΛ͚ͭΔ࣌ʹHJUͷ 5SFF4IBΛར༻ͨ͠Β#VJMEͷճ਺ΛݮΒͤ·ͨ͠ɻ w "OESPJEΤϯδχΞཉ͍͠