escape from your vms with image2docker jeff nickoloff, all in geek consulting services and elton...

24
Jeff Nickoloff Independent Software Engineer, Docker Captain Elton Stoneman Developer Advocate, Docker, Inc. Escape From Your VMs with Image2Docker

Upload: docker-inc

Post on 21-Jan-2018

10.566 views

Category:

Technology


0 download

TRANSCRIPT

Jeff NickoloffIndependent Software Engineer,Docker Captain

Elton StonemanDeveloper Advocate, Docker, Inc.

Escape From Your VMs with Image2Docker

(But we have a solution)

We have a problem

Should we solve it like this?

Lift-and-shift has its own problems• Wouldn’t learning Docker be easier?• Container best practices?• What are the use-cases?

• Targeted• Open source• Extensible

Image2Docker

Lift-and-shift is hardTooling• Security – are there secrets in the VM?• Content – do we need to lift *everything*?• Config explosion – how many init systems?• Validation – can we automate the testing?

Discovery.Extraction.

Provisioning.Generation.

Image2Docker

Ubuntu

Apache

My SQL

PHP

 

Discovery.Extraction.

Provisioning.Generation.

Image2Docker

Ubuntu

Apache

My SQL

PHP

Windows

IIS

.NET

ASP.NET

   

2 VMs.2 operating systems.

2 app stacks.2 deployment models.

2 admin models.

Current State

1 Docker swarm.1 platform.

1 set of artifacts.1 deployment model.1 admin model.

Desired State

Part 1: Migration1. Check out the app2. I2D for Windows3. I2D for Linux

AgendaPart 2: Deployment1. Create hybrid swarm2. Deploy services3. Relax

Demo: Working on the app

make preparemake buildmake builtin-prep

sudo bin/v2c-darwin64 build -n img.vmdk

Image2Docker - Linux

Demo: Image2Docker -Linux

Install-Module Image2DockerImport-Module Image2Docker

ConvertTo-Dockerfile `-ImagePath c:\iis.vhd `-OutputPath c:\i2d2\iis `-Artifact IIS

Image2Docker - Windows

Demo: Image2Docker -Windows

w3wp.exe

w3wp.exe httpd

Manager Worker Worker

GET è

� �

è

Demo: Hybrid Docker swarm

Lift & shift• I2D for Linux• I2D for Windows• Starter for 10

SummaryHybrid swarm• Host diversity• App diversity• Single interface

It’s OSS – join in!

@docker #dockercon @allingeek @EltonStoneman

dockr.ly/i2d-linuxdockr.ly/i2d-win