B u i l d i n g L i n u x d i s t r i b u t i - - PowerPoint PPT Presentation

b u i l d i n g l i n u x d i s t r i b u t i o n p a c k
SMART_READER_LITE
LIVE PREVIEW

B u i l d i n g L i n u x d i s t r i b u t i - - PowerPoint PPT Presentation

B u i l d i n g L i n u x d i s t r i b u t i o n p a c k a g e s w i t h D o c k e r F e b r u a r y 2 0 1 6 B r u n o C o r n e c , H P E E G E M E A O p e n S o u


slide-1
SLIDE 1

B u i l d i n g L i n u x d i s t r i b u t i

  • n

p a c k a g e s w i t h D

  • c

k e r

F e b r u a r y 2 1 6 B r u n

  • C
  • r

n e c , H P E E G E M E A O p e n S

  • u

r c e a n d L i n u x S t r a t e g i s t

slide-2
SLIDE 2

I n t r

  • d

u c i n g m y s e l f

2

  • S
  • f

t w a r e e n g i n e e r i n g a n d U n i c e s s i n c e 1 9 8 8 :

M

  • s

t l y C

  • n

f i g u r a t i

  • n

M a n a g e m e n t S y s t e m s ( C M S ) , B u i l d s y s t e m s , q u a l i t y t

  • l

s ,

  • n

m u l t i p l e c

  • m

m e r c i a l U n i x s y s t e m s

D i s c

  • v

e r e d O p e n S

  • u

r c e & L i n u x ( O S L ) & m a d e f i r s t c

  • n

t r i b u t i

  • n

s i n 1 9 9 3

F u l l t i m e

  • n

O S L s i n c e 1 9 9 5 , f i r s t a s H P r e s e l l e r t h e n @ H P

  • C

u r r e n t l y :

O S L T e c h n

  • l
  • g

y S t r a t e g i s t , E M E A E G I n n

  • v

a t i

  • n

S

  • l

u t i

  • n

C e n t e r a k a H P / I n t e l S

  • l

u t i

  • n

C e n t e r , G r e n

  • b

l e

H P O S L A d v

  • c

a t e a n d C

  • n

v e r g e d I n f r a s t r u c t u r e A m b a s s a d

  • r

W W L i n u x C

  • m

m u n i t y L e a d f

  • r

t h e H P O p e n S

  • u

r c e P r

  • f

e s s i

  • n

P O S S c

  • n

f e r e n c e , O p e n S t a c k . f r a n d A F U L b

  • a

r d m e m b e r . C

  • n

f e r e n c e s a t W W l e v e l a t L i n u x C

  • n

, L i n u x . c

  • n

f . a u , . . .

M

  • n

d

  • R

e s c u e , P r

  • j

e c t

  • B

u i l d e r .

  • r

g , U U W L a n d P U S K P r

  • j

e c t L e a d

L i n u x C O E , m r e p

  • ,

t e l l i c

  • ,

r i n s e , f

  • s

s

  • l
  • g

y , c

  • l

l e c t l , I r

  • n

i c c

  • n

t r i b u t

  • r

F O S S B a z a a r / S P D X a n d O S L G

  • v

e r n a n c e e n t h u s i a s t

M a n d r i v a , M a g e i a , F e d

  • r

a p a c k a g e r

  • A

n d a l s

  • :

A m a t e u r s i n g e r ( A l t

  • /

T e n

  • r

) , r e c

  • r

d e r p l a y e r s i n c e 1 9 7 6 a n d C h

  • i

r d i r e c t

  • r

s i n c e 1 9 8 7 , C D c

  • l

l e c t

  • r

( 5 + ) , C

  • n

c e r t s , P h

  • t
  • g

r a p h y

slide-3
SLIDE 3

C

  • n

t e x t

slide-4
SLIDE 4

O S V i r t u a l i z a t i

  • n

( ‘ L X C / D

  • c

k e r ’ c

  • n

t a i n e r s )

– A p p l i c a t i

  • n

s i n a z

  • n

e a r e i s

  • l

a t e d f r

  • m

t h e

  • t

h e r s ( c h r

  • t
  • n

s t e r

  • ï

d s )

  • S

e c u r i t y ( a s s e c u r e a s y

  • u

r k e r n e l )

  • N

a m e s p a c e s ( r

  • t

, U I D , G I D , n e t w

  • r

k , P I D , I P C , m

  • u

n t p

  • i

n t s , h

  • s

t n a m e / u t s )

  • C

g r

  • u

p G r a n u l a r i t y

  • S

i n g l e O S i m a g e m a n a g e s H W a c c e s s e s

  • P

e r f

  • r

m a n c e & t r a n s p a r e n c y n e i t h e r e m u l a t i

  • n

n

  • r

f u l l v i r t u a l i z a t i

  • n
  • N

e t f i l t e r f

  • r

n e t w

  • r

k i s

  • l

a t i

  • n

( N A T a n d p

  • r

t f w d )

  • A

u F S

  • v

e r l a y s i s

  • l

a t e d f i l e s y s t e m s

  • n

t

  • p
  • f

a p h y s i c a l f i l e s y s t e m

– O t h e r t e c h n

  • s

a v a i l a b l e

  • V
  • S

e r v e r

  • V

i r t u

  • z

z

  • O

p e n V Z

L i n u x C

  • n

t a i n e r s O S V i r t

h t t p s : / / b l

  • g

. d

  • c

k e r . c

  • m

/ w p

  • c
  • n

t e n t / u p l

  • a

d s / 2 1 4 / 3 / d

  • c

k e r

  • e

x e c d r i v e r

  • d

i a g r a m . p n g

slide-5
SLIDE 5

D

  • c

k e r I n B r i e f

  • V

i s i

  • n

: B u i l d , S h i p , a n d R u n A n y A p p A n y w h e r e

  • B
  • t

h : a c

  • m

p a n y a n d a n

  • p

e n s

  • u

r c e e c

  • s

y s t e m ( u n d e r t h e A p a c h e l i c e n s e V 2 . s i n c e 2 1 3 )

  • D
  • c

k e r i s a t

  • l

c h a i n w r i t t e n i n G

  • t

h a t s i m p l i f i e s t h e c r e a t i

  • n

a n d m a n a g e m e n t

  • f

c

  • n

t a i n e r s .

  • P

a r a d i g m s h i f t : “ n e w ” p a c k a g i n g m

  • d

e l f

  • r

d e p l

  • y

i n g a p p l i c a t i

  • n

s a n d s e r v i c e s u s i n g L i n u x c

  • n

t a i n e r s

( G

  • g

l e h a s b e e n d

  • i

n g t h i s f

  • r

y e a r s ; 2 b i l l i

  • n

/ w e e k )

  • C
  • n

t a i n e r s : A s e l f

  • c
  • n

t a i n e d p

  • r

t a b l e e n v i r

  • n

m e n t f

  • r

p a c k a g i n g , d e p l

  • y

i n g , a n d e x e c u t i n g a p p l i c a t i

  • n

s a n d s e r v i c e s . C

  • n

t a i n s a l l e x e c u t i

  • n

d e p e n d e n c i e s f

  • r

a s e r v i c e ( s i n g l e p r

  • c

e s s

  • >

s i n g l e c

  • n

t a i n e r )

  • B

e t t e r r e s

  • u

r c e u t i l i z a t i

  • n

: V M s v i r t u a l i z e t h e C P U , c

  • n

t a i n e r s v i r t u a l i z e p r

  • c

e s s ( e s ) ( l i g h t w e i g h t )

  • S

i m p l i f i e d A p p l i c a t i

  • n

L i f e c y c l e M a n a g e m e n t :

– B

u i l d a n d c

  • n

f i g u r e

  • n

c e ( i n t e g r a t e d D e v O p s )

– D

e p l

  • y

a n y w h e r e ( l a p t

  • p

, s e r v e r , c l

  • u

d , … )

– I

T f

  • c

u s e s

  • n

m a n a g i n g t h e b a s e i n f r a s t r u c t u r e

  • V

a l u e p r

  • p

– R

e l i a b l e d e p l

  • y

m e n t

– M

  • r

e e fg i c i e n t d e p l

  • y

m e n t

– R

e d u c e d d e p l

  • y

m e n t l a t e n c y

– M

  • r

e e fg i c i e n t u s e

  • f

s y s t e m r e s

  • u

r c e s

slide-6
SLIDE 6

A l a y e r e d a p p r

  • a

c h

I m a g e s L

  • c

a l

  • r

r e m

  • t

e r e f e r e n c e c

  • n

t e n t t

  • i

n i t i a t e a c

  • n

t a i n e r M u l t i p l e i m a g e s c a n b e l a y e r e d a d d i n g c

  • n

t e n t a t e a c h t i m e u s i n g C

  • p

y

  • n

W r i t e F S C a c h e t

  • s

p e e d u p r e p e a t e d

  • p

e r a t i

  • n

s C

  • n

t a i n e r s L a s t l a y e r p r

  • v

i d i n g r w a c c e s s t

  • t

h e c u m u l a t e d s e t

  • f

i m a g e s

1 a p p l i c a t i

  • n

+ i t s d e p s = = 1 c

  • n

t a i n e r

slide-7
SLIDE 7

W h y b u i l d i n g d i s t r i b u t i

  • n

p a c k a g e s w i t h C

  • n

t a i n e r s v s V M s ?

C

  • n

t a i n e r l i k e V M s b r i n g s i s

  • l

a t i

  • n

N

  • p
  • l

l u t i

  • n
  • f

y

  • u

r r u n n i n g e n v i r

  • n

m e n t E a s i l y s c r a t c h a n d r e d

  • i

f p r

  • b

l e m s E a s i e r r e f i n e m e n t & a u t

  • m

a t i

  • n
  • f

t h e b u i l d e n v i r

  • n

m e n t w i t h t h e D

  • c

k e r f i l e C

  • n

t a i n e r s l i k e V M s b r i n g s m u l t i

  • d

i s t r i b u t i

  • n

s u p p

  • r

t E a s y t

  • b

u i l d f

  • r

a n

  • t

h e r d i s t r i b u t i

  • n

t h a n y

  • u

r s U s e f u l a l s

  • f
  • r

y

  • u

r

  • w

n d i s t r

  • :

n

  • t

e v e r y b

  • d

y u s e s a n u n s t a b l e d i s t r

  • C
  • n

t a i n e r s c a n u s e n a t i v e l y y

  • u

r h

  • m

e d i r e c t

  • r

y A l l

  • w

s h a r i n g

  • f

y

  • u

r p a c k a g e s

  • u

r c e s f

  • r

l

  • c

a l a n d i n c

  • n

t a i n e r b u i l d A l l

  • w

s h a r i n g

  • f

y

  • u

r . r p m m a c r

  • s

, . r p m r c f i l e s , M a g e i a S S H k e y s

  • r

F e d

  • r

a c e r t s V M s a r e m a n d a t

  • r

y i s y

  • u

n e e d a d i fg e r e n t k e r n e l

slide-8
SLIDE 8

B a s i c D

  • c

k e r w

  • r

k f l

  • w

t

  • b

u i l d d i s t r i b u t i

  • n

p a c k a g e s

M y c

  • m

p u t e r L

  • c

a l D

  • c

k e r E n g i n e

Images

Containers D

  • c

k e r f i l e s Mageia Cauldron Mageia 5 ... Fedora Rawhide Fedora 22 ... Mageia Cauldron Mageia 5 ... Fedora Rawhide Fedora 22 ...

D i s t r i b u t i

  • n

R e p

  • s

i t

  • r

y

S V N / G i t s

  • u

r c e s P a c k a g e m n g t

Docker registry

slide-9
SLIDE 9

B u i l d i n g d i s t r i b u t i

  • n

i m a g e s w i t h a D

  • c

k e r f i l e

#!/bin/bash mkdir -p /tmp/docker-mageia cd /tmp/docker-mageia RD="/home" WD="$RD/bruno/Maison/bruno/prj/mageia/" cat > Dockerfile << EOF FROM juanluisbaptiste/mageia-cauldron:latest MAINTAINER bcornec@mageia.org RUN urpmi.update -a -c -f RUN urpmi --auto --auto-select --no-recommends RUN urpmi --auto bm subversion mgarepo colordiff sudo RUN sed -i 's/users:x:.*$/users:x:501/' /etc/group RUN useradd bruno -u 600 -g 501 -N -M -d $RD/bruno RUN echo "bruno ALL=NOPASSWD:/sbin/urpmi" >> /etc/sudoers WORKDIR $WD USER bruno CMD /bin/bash EOF docker build --file=Dockerfile -t pb:mageiabuild . if [ $? -eq 0 ]; then docker run -v $RD/bruno:$RD/bruno -ti pb:mageiabuild fi

slide-10
SLIDE 10

S h

  • w

T i m e !

slide-11
SLIDE 11

29/01/2016 Private | Confidential | Internal Use Only

P r

  • j

e c t B u i l d + m e t a d a t a

C

  • n

t i n u

  • u

s P a c k a g i n g w i t h D

  • c

k e r & p r

  • j

e c t

  • b

u i l d e r .

  • r

g

D

  • c

k e r C

  • n

t a i n e r s L

  • c

a l b u i l d P r

  • j

e c t R e p

  • s

i t

  • r

y L

  • c

a l B u i l d S e r v e r P a c k a g e r s D e v e l

  • p

e r s

slide-12
SLIDE 12

29/01/2016 Private | Confidential | Internal Use Only

” C h a n g e s a r e n e v e r e a s y t

  • m

a k e . T h e r e i s c

  • m

f

  • r

t a n d s a f e t y i n t r a d i t i

  • n

, b u t c h a n g e m u s t c

  • m

e , n

  • m

a t t e r h

  • w

p a i n f u l

  • r

e x p e n s i v e i t m a y b e . ” B i l l H e w l e t t

B r u n

  • .

C

  • r

n e c @ h p e . c

  • m

( O p e n S

  • u

r c e a n d L i n u x T e c h n

  • l
  • g

y S t r a t e g i s t a t t h e H P / I n t e l S

  • l

u t i

  • n

C e n t e r ) h t t p : / / d

  • w

n l

  • a

d s . l i n u x . h p e . c

  • m

/ L i n u s T

  • r

v a l d s , R i c h a r d S t a l l m a n , E r i c R a y m

  • n

d , N a t M a k a r e v i t c h , R e n é C

  • u

g n e n c , E r i c D u m a s , R é m y C a r d , B d a l e G a r b e e , B r y a n G a r t n e r , C r a i g L a m p a r t e r , L e e M a y e s , G a l l i g R e n a u d , A n d r e e L e i d e n f r

  • s

t , P h i l R

  • b

b , B

  • b

G

  • b

e i l l e , M a r t i n M i c h l m a y r a m

  • n

g

  • t

h e r s , f

  • r

t h e i r w

  • r

k a n d d e v

  • t

i

  • n

t

  • t

h e O p e n S

  • u

r c e S

  • f

t w a r e c a u s e . . . a n d m y f a m i l y f

  • r

t h e i r p a t i e n c e :

  • )

THANK YOU