{docker}

Open source containerization platform

# What is Docker?

What is Docker?

Docker is a set of platform tools that allows your application to be available as a package. This package can be then be distributed and deployed as needed

# Docker

Docker vs VMs

# DSAS - Docker

What defines DSAS?

Linux

JVM

DSAS

Linux

JVM

DL

Linux

JVM

MDS

Linux

JVM

i3RW

Linux

Oracle

Linux

JVM

SOLR

# DSAS - Docker

Dockerized DSAS

DSAS

Infrastructure

Operating System

Docker

MDS

MDS

MDS

i3RW

MDS

DB

DL

SOLR

Linux

DSAS

Infrastructure

Docker

MDS

MDS

MDS

i3RW

MDS

DB

DL

SOLR

Linux

SC

SC

SC

SC

SC

SC

SC

SideCar

  • Logging

  • Auditing

  • Load Balancing

  • Rate Limiting

  • API Gateway

Terminologies

Image is a packaged binary for:

- Operating System

- JVM

- Application

Image

Container

Container is basically the packaging of the image along with configurations and running it on Docker

# Docker
# Docker

Image

Layered architecture for images

Alpine Linux

JVM

Apache SOLR

DSAS

Linux

Alpine Linux

Linux

JVM

Linux

JVM

JVM

Alpine Linux

Apache SOLR

DSAS

# Docker

Container

Containers run images that you created on Docker

Apache SOLR

JVM

Alpine Linux

Apache SOLR

JVM

Alpine Linux

Docker

Docker CLI

# Docker CLI

Docker CLI demo

 

https://github.pie.apple.com/abhaila/docker-brown-bag/blob/main/README.md

1

Developer pushes and merges DS code

2

Jenkins starts the build process

3

Jenkins generates a docker image

4

Jenkins pushes image to a docker repository (Artifactory)

Docker workflow

5

Ops pulls the image and deploys the container

👩🏽‍💻

# Docker

Dockerfile

Dockerfile acts as a playbook that defines what an image will look like. It lists down the information for the base image, along with any configuration and customizations needed. A docker image is built from this Dockerfile after which it can be built and optionally published to a docker registry

Demo: SOLR docker image

# Docker

Docker Compose

Docker compose acts like a glue that declares all the different Dockerfiles to compose a full end to end service with all its dependencies. Once defined, a Docker compose script will be used to start all the containerized services on Docker

Demo: CSS demo app + SOLR using docker-compose

Docker - where do we go from here?

Kubernetes

Docker Swarm

Managing a cluster of containers

  • Load balancing
  • Service Discovery
  • Storage/Volume management
  • Self-healing
  • Secret Management

docker-bb

By Ahmed Bhaila

docker-bb

  • 39