Top Banner
50

Using the Azure Container Service in your company

Jan 23, 2018

Download

Technology

Jan de Vries
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: Using the Azure Container Service in your company
Page 2: Using the Azure Container Service in your company
Page 3: Using the Azure Container Service in your company
Page 4: Using the Azure Container Service in your company

light-weight vm

Page 5: Using the Azure Container Service in your company

app + environment

Page 6: Using the Azure Container Service in your company
Page 7: Using the Azure Container Service in your company
Page 8: Using the Azure Container Service in your company

Microsoft oriented

Page 9: Using the Azure Container Service in your company

Reliable-classes

Page 10: Using the Azure Container Service in your company
Page 11: Using the Azure Container Service in your company

Docker oriented

Page 12: Using the Azure Container Service in your company

Orchestrators

Page 13: Using the Azure Container Service in your company

best-practices

Page 14: Using the Azure Container Service in your company

as-is deployments

Page 15: Using the Azure Container Service in your company

Rebooting

Crashing

Updating

Page 16: Using the Azure Container Service in your company

Service per container

Page 17: Using the Azure Container Service in your company
Page 18: Using the Azure Container Service in your company
Page 19: Using the Azure Container Service in your company
Page 20: Using the Azure Container Service in your company
Page 21: Using the Azure Container Service in your company

Too pricey for me!

Page 22: Using the Azure Container Service in your company
Page 23: Using the Azure Container Service in your company
Page 24: Using the Azure Container Service in your company
Page 25: Using the Azure Container Service in your company
Page 26: Using the Azure Container Service in your company
Page 27: Using the Azure Container Service in your company
Page 28: Using the Azure Container Service in your company
Page 29: Using the Azure Container Service in your company
Page 30: Using the Azure Container Service in your company
Page 31: Using the Azure Container Service in your company
Page 32: Using the Azure Container Service in your company
Page 33: Using the Azure Container Service in your company

sudo ssh -fNL 80:localhost:80 -p 2200

[email protected] -i

/mnt/d/SkyDrive/Development/jan.ppk

Protect your private key!!!

Page 34: Using the Azure Container Service in your company

Local managementhttp://localhost http://localhost/marathon http://localhost/mesos

Page 35: Using the Azure Container Service in your company
Page 36: Using the Azure Container Service in your company

{

"id": "nginx",

"cpus": 0.1,

"mem": 32.0,

"instances": 1,

"container": {

"type": "DOCKER",

"docker": {

"image": "nginx",

"network": "BRIDGE",

"portMappings": [

{

"containerPort": 80,

"servicePort": 9000,

"protocol": "tcp"

}

]}}}

Page 37: Using the Azure Container Service in your company

curl localhost/marathon/v2/apps

Page 38: Using the Azure Container Service in your company
Page 39: Using the Azure Container Service in your company
Page 40: Using the Azure Container Service in your company
Page 41: Using the Azure Container Service in your company

FROM microsoft/dotnet:1.1-runtime

ARG source

WORKDIR /app

COPY ${source:-obj/Docker/publish} .

ENTRYPOINT ["dotnet", "Convertor1.dll"]

Page 42: Using the Azure Container Service in your company

Repeat

Page 43: Using the Azure Container Service in your company

version: '3'

services:

convertor1:

image: convertor1

build:

context: ./Convertor1

dockerfile: Dockerfile

convertor2:

image: convertor2

build:

context: ./Convertor2

dockerfile: Dockerfile

Page 44: Using the Azure Container Service in your company

ERROR: Your Docker server host is configured for 'Linux’,

however the docker-compose project targets 'Windows'.

Page 45: Using the Azure Container Service in your company

REPOSITORY TAG IMAGE ID CREATED SIZE

convertor2 latest bf602eb14b69 4 seconds ago 252MB

convertor1 latest b4b8fe7cf747 5 seconds ago 252MB

convertor1 dev e860883229b0 6 minutes ago 251MB

convertor2 dev 8bdc920fd3e2 18 minutes ago 251MB

Page 46: Using the Azure Container Service in your company

{

"id": "convertor1",

"cpus": 0.1,

"mem": 32.0,

"instances": 1,

"container": {

"type": "DOCKER",

"docker": {

"image": "jandev/convertor1",

"network": "BRIDGE",

"portMappings": [

{

"containerPort": 80,

"servicePort": 9000,

"protocol": "tcp"

}

]}}}

Page 47: Using the Azure Container Service in your company
Page 48: Using the Azure Container Service in your company
Page 49: Using the Azure Container Service in your company

Create ACS cluster

Connect with SSH + Tunnel

Add Docker support to projects

Rebuild as Release

Push to registry

Deploy services as container

Page 50: Using the Azure Container Service in your company

https://github.com/Jandev/acsdemo

@Jan_de_V

[email protected]

https://jan-v.nl