Upload
hanguyet
View
212
Download
0
Embed Size (px)
Citation preview
#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 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 19
Bibliography• Build a REST API with .NET Core 2 and run it on Docker Linux container;
• Get Started Building Microservices with ASP.NET Core and Docker in Visual Studio Code;
• Docker Registry;
• Private Docker RegistryPart 1 – Part 2 – Part 3 – Part 4;
• Asp.Net Core Automated Deployment (AWS,Jenkins, Docker, Nginx);
• Docker Build;
• Docker Run;
• Dockerfile;
• Docker-compose.yml.
#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…☺