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

Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

Jan 21, 2018

Download

Technology

Docker, Inc.
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

Jeff NickoloffIndependent Software Engineer,Docker Captain

Elton StonemanDeveloper Advocate, Docker, Inc.

Escape From Your VMs with Image2Docker

Page 2: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

(But we have a solution)

We have a problem

Page 3: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker
Page 4: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

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?

Page 5: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

• Targeted• Open source• Extensible

Image2Docker

Page 6: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

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?

Page 7: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

Discovery.Extraction.

Provisioning.Generation.

Image2Docker

Ubuntu

Apache

My SQL

PHP

 

Page 8: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

Discovery.Extraction.

Provisioning.Generation.

Image2Docker

Ubuntu

Apache

My SQL

PHP

Windows

IIS

.NET

ASP.NET

   

Page 9: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

2 VMs.2 operating systems.

2 app stacks.2 deployment models.

2 admin models.

Current State

Page 10: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

1 Docker swarm.1 platform.

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

Desired State

Page 11: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

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

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

Page 12: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

Demo: Working on the app

Page 13: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

make preparemake buildmake builtin-prep

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

Image2Docker - Linux

Page 14: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

Demo: Image2Docker -Linux

Page 15: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

Install-Module Image2DockerImport-Module Image2Docker

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

Image2Docker - Windows

Page 16: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

Demo: Image2Docker -Windows

Page 17: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker
Page 18: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

w3wp.exe

Page 19: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

w3wp.exe httpd

Page 20: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

Manager Worker Worker

Page 21: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

GET è

� �

è

Page 22: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

Demo: Hybrid Docker swarm

Page 23: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

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

SummaryHybrid swarm• Host diversity• App diversity• Single interface

Page 24: Escape From Your VMs with Image2Docker Jeff Nickoloff, All in Geek Consulting Services and Elton Stoneman, Docker

It’s OSS – join in!

@docker #dockercon @allingeek @EltonStoneman

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