21
#DOH18

Presentazione standard di PowerPoint - devops-heroes.net · •Build a REST API with .NET Core 2 and run it on Docker Linux container; •Get Started Building Microservices with ASP.NET

Embed Size (px)

Citation preview

#DOH18

2

API INTO .NET CORE CONTAINER;a Continuous Deployment's tale

Giuliano [email protected]@gmail.com

#DOH18 3

Organizer & sponsors

GetLatestVersion.it

#DOH18 4

About me• ITPro > 25 year

• Istruttore Informatico at Comune di Chiaravalle (AN)

• Senior Software Developer at INNOTEAM s.r.l.

• CTS Senior Member at Federation IDEM AAI

• ICT Administrator at Università Politecnica delle Marche

• Member of WindowServer.it community

• Member of DevMarche community

• Linux Foundation Member

#DOH18 5

I hope will answer to questions

• How&Why Docker is useful for developing in ASP.NET Core;

• How to make Continuous Delivery/Deployment with Docker;

•What is Docker Registry;

• How Dockerfile&Docker-compose create Infrastructure.

#DOH18 6

Agenda• Docker Architecture/Infrastructure;

• Continuous Delivery/Deployment on Docker;

• How&When Docker Registry;

• Docker CI/CD workflow;

• DEMO: Start&Use&Destroy a Private Registry;

• DEMO: Build&Run container from Local FS;

• DEMO: Build&Run&Pull container from Github to Private Registry;

• Microservice in Docker on ASP.NET Core;

• DEMO: Study&Run Infrastructure for Microservices in Docker.

#DOH18 7

Docker Architecture/Infrastructure

#DOH18 8

Docker Architecture/Infrastructure

#DOH18 9

Continuous Delivery/Deployment on Docker

#DOH18 10

How&When Docker Registry

#DOH18 11

How&When Docker Registry

#DOH18 12

How&When Docker Registry• Start Private Registry

docker run -d -p 5000:5000 --name registry registry:2

• Tag image to push in private registrydocker image tag ubuntu localhost:5000/myfirstimage

• Push image into privare registrydocker push localhost:5000/myfirstimage

• Use image from private registrydocker pull localhost:5000/myfirstimage ordocker run localhost:5000/myfirstimage

• Stop&Destroy private registrydocker container stop registry && docker container rm -v registry

#DOH18 13

Docker CI/CD workflow

14

DEMO

Start&Use&Destroy

a Private Registry

15

DEMO

Build&Run container

from Local FS

16

DEMO

Build&Run&Pull

container from Github

to Private Registry

#DOH18 17

Microservice in Docker on ASP.NET Core

18

DEMO

Study&Run Infrastructure

for Microservices in Docker

#DOH18 20

Did I answer the questions?

• How&Why Docker is useful for developing in ASP.NET Core;

• How to make Continuous Delivery/Deployment with Docker;

•What is Docker Registry;

• How Dockerfile&Docker-compose create Infrastructure.

I hope so, man…☺

#DOH18

THANK YOU!