Docker

$ whoami

Problems ...

  • "Works on my machine"
  • "Will it work on production?"

Platform that provides easy APIs to develop, manage and ship applications as containers

 

// Creating a blueprint
class Person { 
    constructor(firstName, lastName) {
    	this.firstName = firstName;
        this.lastName = lastName;
    }
  
    fullName() {
      console.log(`${this.firstName} ${this.lastName}`);
    }
}

const batman = new Person('Bruce', 'Wayne');

const robin = new Person('Dick', 'Grayson');

$ docker run

Image

Container

$ docker pull

$ docker run

$ docker run

Registry

Image

Let's get our hands dirty with Docker

https://github.com/alyyousuf7/docker-workshop

Redis

Worker

Voting app

Result app

Database

Recap ...

  • Creates consistent development environments
  • Accelerated developer on-boarding
  • Minimal difference between development and staging/prod environments
  • Accelerated developer on-boarding
  • Ship software reliably

Code along workshop

When: Post lunch

Where: Hall 103

Agenda: Hands on Docker with Angular

Pre-requisites

  • Docker CE installed on your machine
  • NodeJS installed
  • Angular CLI installed

Q & A

Made with Slides.com