+ All Categories
Home > Documents > Landing the Docker

Landing the Docker

Date post: 23-Feb-2016
Category:
Upload: mayes
View: 70 times
Download: 0 times
Share this document with a friend
Description:
Landing the Docker. Kunpeng Yang & Mark Shao. Agenda. Introduction of Docker What is Docker What Docker is all about Our problems Solution Solution with vSphere Solution with Docker Benefit/Limitation Pagrant Tips to Share & Lesson learnt. - PowerPoint PPT Presentation
Popular Tags:
21
1 © Copyright 2014 EMC Corporation. All rights reserved. © Copyright 2014 EMC Corporation. All rights reserved. Landing the Docker Kunpeng Yang & Mark Shao
Transcript
Page 1: Landing the  Docker

1© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Landing the Docker

Kunpeng Yang & Mark Shao

Page 2: Landing the  Docker

2© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Agenda• Introduction of Docker

– What is Docker– What Docker is all about

• Our problems• Solution

– Solution with vSphere– Solution with Docker– Benefit/Limitation– Pagrant

• Tips to Share & Lesson learnt

Page 3: Landing the  Docker

3© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Docker is an open-source engine that automates the deployment of any application as a lightweight, portable, self-sufficient container that will run virtually anywhere.

Page 4: Landing the  Docker

4© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

What is Docker• Open Source engine to commoditize LXC• Using AUFS for quick provision• Standard format for containers: Layers• Allowing to create and share images

Page 5: Landing the  Docker

5© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

What Docker is all about• Deployment and Delivery• DevOps• Test• ...

Page 6: Landing the  Docker

6© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Our problems• 3000 automated test cases• 4-5 hours duration regression• Dirty data cause unreliable test result

Page 7: Landing the  Docker

7© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Solution with vSphere• Save VMs (Client, Server, DB) as

template• Use Soap-based ws to do

provision • Provision a couple of templates at

same time• Build code and transfer it to the

multiple client machine

Click icon to add picture

Page 8: Landing the  Docker

8© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Issues• Provision cost 1/3 time of regression• Big efforts to maintain template• Difficult to add dependency between VMs in

same template

Page 9: Landing the  Docker

9© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

One day we meet Docker

Page 10: Landing the  Docker

10© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Solution with Docker• Use containers instead of VMs• Invoke provision by REST in JSON• Share the folder between container and host

server• Handle libs dependency once and share it in all

containers• Share the xml report from slave with host

server

Page 11: Landing the  Docker

11© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Benefits/Limitation• Benefits

– Free & Open-source– Provision in seconds– Easy to maintain images (AUFS layers)– Add dependency by adding link between containers

• Limitation– Windows– Integration with IAAS

Page 12: Landing the  Docker

12© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Pagrant• A small tool we build to easily scale out the

slaver nodes• Easy to control both the master and slaver

nodes through Pagrant• Some other features for distributed test.

Page 13: Landing the  Docker

13© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

10

20

30

40

50

60

70

1 2 4 6

Benchmark node/time cost

Page 14: Landing the  Docker

14© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Tips to Share & Lesson learnt

Page 15: Landing the  Docker

15© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Private registry• The download speed too slow from `index`• Enterprise security• Easy to share the images internally• https://github.com/dotcloud/docker-registry

Page 16: Landing the  Docker

16© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Don’t be reluctant to report issue

Page 17: Landing the  Docker

17© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Community is always ready to help• Problem faced with linking containers• Link the containers via name• export the environment variables for service

host and port in the target container

Page 18: Landing the  Docker

18© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Community is always ready to help (cont)

Page 19: Landing the  Docker

19© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

TestNG support distributed execution?

Page 20: Landing the  Docker

20© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Patch on TestNG• Deprecate the huge serializable object during

communication• Dispatch according to Test by default• Accumulate the xml reports from slavers and

generate the final merged report at end

Page 21: Landing the  Docker

21© Copyright 2014 EMC Corporation. All rights reserved.© Copyright 2014 EMC Corporation. All rights reserved.

Docker has landed


Recommended