OSTree: OSイメージとパッケージシステムの間にGitのアプローチを

Preview:

DESCRIPTION

Project Atomicでも使用されている環境バージョニングシステムの「OSTree」について、概要を説明します。

Citation preview

© 2014 Nippon Telegraph and Telephone Corporation

OSTree

Project Atomic✄�✁✂☎✆✝✞OSTree✟

✠✡☛☞✌✍✎✏✑✒✓✔✕✖✗�

© 2014 Nippon Telegraph and Telephone Corporation

✆�✁✂✄☎✝✞✟✠✡☛☞✌✍✎✏✑

© 2014 Nippon Telegraph and Telephone Corporation

☎�✁✂✄✆✝✞✟✠✡☛☞✌✄✍✎✏✄✑✂✡✒

© 2014 Nippon Telegraph and Telephone Corporation

© 2014 Nippon Telegraph and Telephone Corporation

OSTree

Git✄�✁✂☎✆✝✞✟✠Tree)✡☛☞✌✍

© 2014 Nippon Telegraph and Telephone Corporation

1

© 2014 Nippon Telegraph and Telephone Corporation

Linux

© 2014 Nippon Telegraph and Telephone Corporation

chroot

© 2014 Nippon Telegraph and Telephone Corporation

Git✄�✁✂☎✆✝✞✟

✠Docker✄✡☛☞✌✍✎✏✑✒✓✔

© 2014 Nippon Telegraph and Telephone Corporation

!"✂�✁✄☎✆✝✞✟✠✡☛�☞✌✍"

!"#$%&'"#()'**"

"

! ✢✎✏✑✒✓✔✠✁☛✝✕✖✗"

!"+,)'**"-%#&."&.&)/0,"#()'**"

"

!"✒✓✔✠✁☛✝✘✙"

!"1,"#()'**"

2++)""%*3""4+#*""+,)'**""5'+6"

'++)""'7."",(,"")#5"

"

!"✢✚✛✜✣☛"

!"+,)'**"6+##&)"#()'**"//2'-.64"

#-,)*'"

!"8*0✝✘✙"

!"+,)'**"'*0,"

#-,)*'"

"

!"✤✥✦✧★✩✍✪✫✬✭✝✮✯"

!"+,)'**"1,"#-,)*'"

%99:;;"9"9""""""9"<"

%99:;;"9"9""""""9"<2++)"

%99:;;"9"9""""""9"<%*3"

%99:;;"9"9""""""9"<4+#*"

%99:;;"9"9""""""9"<+,)'**"

%99:;;"9"9""""""9"<5'+6"

%99:99"9"9""""""9"<'++)"

%99:;;"9"9""""""9"<'7."

%99:;;"9"9""""""9"<,(,"

%9=:;;"9"9""""""9"<)#5"

"

© 2014 Nippon Telegraph and Telephone Corporation

!"✂�✁✄☎✆✝✞✟✠"

!"*64+">)*,)>"?"#()'**<0++2-'"

"

!"@✡☛☞✌✍✎✏"

!"+,)'**"6+##&)"#()'**"//2'-.64"

#-,)*'"

"

!"✑✒✓☞✔✕"

!"+,)'**"%&00""#-,)*'"

A""""<0++2-'"

"

!"✌✍✎✏✖✗☞✔✕"

!"+,)'**"1+B"#-,)*'"6+##&)"-*=;C6C%DEDFEG;-EF:=:=@G6%DG9=%%@;29:-G66DC;--262E

D%0GF=2%;%=;29"

H-)*I""@9=E/9;/@D"9CI9CI;9"J9999"

"

""""A%%"0++2-'"

"

6+##&)"CD-FD*D:0;CF%*6FF%06E%GD@69G2ED9=D-E6FF;-;%*CDGG2G

@09DE:2F6-6FF2"

H-)*I""@9=E/9;/@D"9CI9FI9="J9999"

"

""""K.&)&-1&L*"

"

!"1,✘✙✂�✁✄✚✛✜✞✢✠"

!"+,)'**"1,"#-,)*'"%99:;;"9"9""""""9"<"

/99FEE"9"9"""""";"<0++2-'"

%99:;;"9"9""""""9"<2++)"

%99:;;"9"9""""""9"<%*3"

%99:;;"9"9""""""9"<4+#*"

%99:;;"9"9""""""9"<+,)'**"

%99:;;"9"9""""""9"<5'+6"

%99:99"9"9""""""9"<'++)"

%99:;;"9"9""""""9"<'7."

%99:;;"9"9""""""9"<,(,"

%9=:;;"9"9""""""9"<)#5"

© 2014 Nippon Telegraph and Telephone Corporation

Git✄�✁✂☎✆✝✞✟

✠Docker✄✡☛☞✌✍✎✏✑✒✓✔

© 2014 Nippon Telegraph and Telephone Corporation

/home /var /usr /bin /sbin /lib /lib64

/home /var /usr /bin /sbin /lib /lib64

+,)'**"%*51+("#-,)*'"

+,)'**"-%#&.",M&)64"NHOPQRSTOUVWKH?

✞�✁✂

✠✄�✁✂

✟☎✆✝✡chroot☛☞✄✌✍✎✏✑✒

✓ deploy✔✕✖✗✘✙✚✛✜✢✣✤✥✦✧★✩/ostree/deploy✪✫✬✗✘ID✩✭✮✘✯

© 2014 Nippon Telegraph and Telephone Corporation

© 2014 Nippon Telegraph and Telephone Corporation

/home /var /usr /bin /sbin /lib /lib64

/home /var /usr /bin /sbin /lib /lib64

+,)'**"-%#&.",M&)64"NHOPQRSTOUVWKH?

✞�✁✂

✠✄�✁✂

© 2014 Nippon Telegraph and Telephone Corporation

© 2014 Nippon Telegraph and Telephone Corporation

© 2014 Nippon Telegraph and Telephone Corporation

•  /ostree ✄�✁✂☎✁✆✝

•  deployment✞ /ostree/deploy/<osname>

•  chroot✟✠✁✆✝✡☛inode☞✌✍ !"!"#$%#&##

'(")*++',+-!(.'-*(/+0)$1)(2%0$0(3)*(!!+*',+-!(.'14056789898:,466+,457;;;7695<6=6>977+:7741>715=9?69:>=1?+6>;6,?:@?'#

@FE;;EF="2&."""@FE;;EF@"4+#*"""@FE;;EFF"#.)"""""@FE;;EFC"'++)"""GDGCD;D",(,""""""@FG;FG=D"3-'"

"""""F;@"2++)""@FE;;EFD"1&2""""@FE;;EF:"+5)""""""""""F;D"'7."""=FG=GC=C",(,'++)"

=FG=GC=G"%*3"""@FE;;EFE"1&2FE""@FE;;EFG"+,)'**""@FE;;E:9",2&.""@FE;;E:@")#5"

"""DG9EG"*)6"""@FE;;EF;"#*%&-""@FE;;E:D"5'+6""""@FE;;E:=",'3"""@FE;;E:E"7,'"

"

!"!"#$%#'#

@FE;;EF="2&."""@FE;;EF@"4+#*"""@FE;;EFF"#.)"""""@FE;;EFC"'++)"""""""""=",(,"""""""GDGG:E9"3-'"

"""""""@"2++)""@FE;;EFD"1&2""""@FE;;EF:"+5)"""""""""FD=9"'7.""""""""=@G",(,'++)"

"""""""D"%*3"""@FE;;EFE"1&2FE""@FE;;EFG"+,)'**""@FE;;E:9",2&.""@FE;;E:@")#5"

"""DG9EG"*)6"""@FE;;EF;"#*%&-"""""""""="5'+6""""@FE;;E:=",'3"""@FE;;E:E"7,'

© 2014 Nippon Telegraph and Telephone Corporation

rpm-ostree•  ostree✄ –  rpm ✞�✁✂☎✆

– https://github.com/cgwalters/rpm-ostree

•  JSON rpmrpm-

ostree treecompose

•  upgrade ✄

© 2014 Nippon Telegraph and Telephone Corporation

!"✡�✁✂✄☎✆✝✞✟✠☛"

!"#$%&'",'3"

!"6%",'3"

"

! ☎✢☞✝✞✌✍✎ Z✏✑✒✓✔✕✖☛✗✘✙-'64&3*/L@✚✠☛["

!"+,)'**"//'*5+b<'++)<,'3<'*5+"//#+%*"-'643*/L@"&.&)"

"

!"✛✜☞✣✆✝✤✚✥✦✧☛"

!"1,"'*5+"

6+.0&B""+2X*6),""'*0,"

'*#+)*/6-64*"")#5"

"

!"'*5+✟★✩✪✦✫✬✭✝"

,)'**"6+##&)"#()'**"//'*5+b<'++)<)*,)<'*5+"//2'-.64".*M#-,)*'"

HTTP✮✯✰✱✲✳✴✵✶✯✷✲✳✸✹✺✻✼✽✷✾✿❀❁✲❂❃pull✮❄✼

© 2014 Nippon Telegraph and Telephone Corporation

© 2014 Nippon Telegraph and Telephone Corporation

v.s. OS

•  VM

• 

© 2014 Nippon Telegraph and Telephone Corporation

v.s. Google ChromeOS autoupdate

•  CoreOS✄�✁✂☎✆✝✞✟✠✡☛

•  ☞✌✍✎✏✑✒✟✓✔✕✖☛✗✘✙✂✚✛✜✢✣✤✥✦✧

•  ☞✌✍✎✏✑✒✢★✩✪☛✂✚✫✬✭✮✏✯✍✰✂✱☎✄✲✳☛

•  ✴✎✯✵✶✠✛✜✢✷✡✸2✹✺✻✼

•  ✽✾✿✚❀❁✌✮❂❃✵❀1❄❅✂❆❇❈✌❉

•  OSTree✂✝✢❊❋✙★●❍

© 2014 Nippon Telegraph and Telephone Corporation

v.s. Chef

• 

•  Chef

• 

– ✡ � ✁

–  � � ✁

© 2014 Nippon Telegraph and Telephone Corporation

v.s. Docker

• 

•  Docker

Recommended