Slide 1

Slide 1 text

Deploying a web app On Azure container services

Slide 2

Slide 2 text

Kerala • Old school sys / network admin • <3 shell / UNIX • Cloud • IoT • Mail • DNS

Slide 3

Slide 3 text

Kerala Agenda ● Docker – What is it? What give? ● Dockerfiles ● Azure Container offerings ● Azure Container instances ● Demo

Slide 4

Slide 4 text

What are containers?

Slide 5

Slide 5 text

Kerala ● A Standard unit of software that packages code and all of its dependencies so the application run quickly and reliably from one computing environment to another ● Includes everything needed to run the application: code, runtime, system tools and libraries as well as settings. ● Multiple containers are run by a single OS kernel, therefore are more lightweight than virtual machines.

Slide 6

Slide 6 text

Kerala

Slide 7

Slide 7 text

Kerala

Slide 8

Slide 8 text

Why Containers?

Slide 9

Slide 9 text

Kerala Agility ● Reduced effort from dev to production ● Streamlined dev / test cycles ● Faster time to market ● Quicker turnaround time

Slide 10

Slide 10 text

Kerala Portability ● Write once run everywhere ● Standardised environment throughout lifecycle ● Immutability brings lesser moving parts ● More security - More safety

Slide 11

Slide 11 text

Kerala Scalability ● Less overhead on infra ● Reduced cycle time - Faster boot up / restarts ● Skewed scaling with Orchestration ● Ramp down as well as Ramp up

Slide 12

Slide 12 text

Use cases…

Slide 13

Slide 13 text

Kerala ● Cloud Native ● Lift and Shift ● Batch & Bulk Processing ● New age tech - IoT / ML / AI

Slide 14

Slide 14 text

Container Services on Azure

Slide 15

Slide 15 text

Kerala ● Azure Container Registry (ACR) ● Azure Container Instance (ACI) ● Azure Web Apps for Containers ● Azure Kubernetes Service (AKS)

Slide 16

Slide 16 text

Azure Container Registry

Slide 17

Slide 17 text

Kerala ● A repository for storing container images ● Similar to public registry like docker hub, but typically used in private model ● Container images can be replicated across Azure regions (Premium ACR SKU) ● Containers must have a tag corresponding to the name of the ACR

Slide 18

Slide 18 text

Azure Container Instances

Slide 19

Slide 19 text

Kerala ● Just, run your containers, job done! ● Really quick time to market ● Serverless - Worry about business, not infrastructure ● Bill for what you use - pay per second ● All the Managed Service benefits

Slide 20

Slide 20 text

Dockerfile

Slide 21

Slide 21 text

FROM python:3.7.3-alpine3.8 MAINTAINER [email protected] RUN apk add --no-cache mariadb-dev build-base ADD requirements.txt / RUN pip install -r /requirements.txt COPY ./ /code WORKDIR /code CMD [ "python", ”app.py" ]

Slide 22

Slide 22 text

Build, Deploy & Demo