9
1 © Copyright 2015 EMC Corporation. All rights reserved. COPRHD ON DOCKER YUN QIN, COPRHD DEVCON

1© Copyright 2015 EMC Corporation. All rights reserved. COPRHD ON DOCKER YUN QIN, COPRHD DEVCON

Embed Size (px)

Citation preview

1© Copyright 2015 EMC Corporation. All rights reserved.

COPRHD ON DOCKERYUN QIN, COPRHD DEVCON

3© Copyright 2015 EMC Corporation. All rights reserved.

• Contents– Opensuse base w/ required libraries (runtime)– CoprHD rpm

• How to build– Run “make BUILD_TYPE=oss docker”

• Outcome– A docker image: “coprhd-devkit”

BUILDING THE IMAGE

5© Copyright 2015 EMC Corporation. All rights reserved.

• Same image, multiple deployment types

• Problems to solve– Static IP– Accessing the internal IPs from outside (NAT)

DEPLOYING THE IMAGE

6© Copyright 2015 EMC Corporation. All rights reserved.

• CoprHD needs it, but docker doesn’t

• Docker provides a way and a future plan (libnetwork)

• For now we use pipework

STATIC IP

7© Copyright 2015 EMC Corporation. All rights reserved.

STATIC IP (CONT’D)

Docker host

eth0

veth

containereth0

docker0

to other ports

to port443/4443

NAT rules

9© Copyright 2015 EMC Corporation. All rights reserved.

NAT

Docker host

Container1

172.17.0.1172.17.0.4(VIP)

Container2

172.17.0.2

Container3

172.17.0.3

eth0 eth0 eth0

tcp 443/4443to 172.17.0.4:443/4443

11© Copyright 2015 EMC Corporation. All rights reserved.

DEMO

12© Copyright 2015 EMC Corporation. All rights reserved.

• Trim the size of the image (now 900M)

• Update the deploy script w/ the docker network command

• Build the CoprHD rpm inside the build container

• Publish the docker image on docker hub, perhaps as an automated build repo

FUTURE WORK