50

Using the Azure Container Service in your company

Embed Size (px)

Citation preview

light-weight vm

app + environment

Microsoft oriented

Reliable-classes

Docker oriented

Orchestrators

best-practices

as-is deployments

Rebooting

Crashing

Updating

Service per container

Too pricey for me!

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

[email protected] -i

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

Protect your private key!!!

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

{

"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"

}

]}}}

curl localhost/marathon/v2/apps

FROM microsoft/dotnet:1.1-runtime

ARG source

WORKDIR /app

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

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

Repeat

version: '3'

services:

convertor1:

image: convertor1

build:

context: ./Convertor1

dockerfile: Dockerfile

convertor2:

image: convertor2

build:

context: ./Convertor2

dockerfile: Dockerfile

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

however the docker-compose project targets 'Windows'.

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

{

"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"

}

]}}}

Create ACS cluster

Connect with SSH + Tunnel

Add Docker support to projects

Rebuild as Release

Push to registry

Deploy services as container

https://github.com/Jandev/acsdemo

@Jan_de_V

[email protected]

https://jan-v.nl