layout: true
--- # Docker ![:img Docker, 10%](docker.png) for Developers (press >) ( code at https://ignatandrei.github.io/Presentations/DockerForDevs.zip ) | For | =>What | | ------------- |:-------------:| | ![:img netfrcorestandard, 40%](netfrcorestandard.png) ![:img ang, 20%](angular.ico) | DevelopmentSoftware( .NET Core, Angular, others) | | ![:img sql, 30%](sqlserver.jpg) | Databases(SqlServer,Mongo, others) | | ![:img nunit, 30%](nunit.gif) | Running Tests(NUnit, XUnit, JUnit, others) | | ![:img Windows, 10%](win.ico) ![:img Android, 10%](android.png) ![:img linux, 10%](linux.ico) | Generating Deployment Application(Windows,Android,iOS,Mac, Linux) | | ![:img azure, 30%](azure.png) | Continous Delivery(AzureDevOps, Heroku, others) | --- # Agenda 0. About me 1. Introduction to Docker (images, container, logs) 2. Scenario Create applications 3. Scenario Run Applications 4. Scenario Test Applications 6. Integration Run + Test for Developers 5. Scenario Create Deploy Applications 7. Continous Testing + Deployment - Stankins 8. VSCode 7. Questions ? --- class: center, top # About me Andrei Ignat http://msprogrammer.serviciipeweb.ro/ www.ASP.NET forum moderator YouTube 5 minutes .NET and tools : http://bit.ly/5MinTools Book Making Open Source Component : http://bit.ly/NetOpenSourceComponent Book Copy Paste from StackOverflow : https://amzn.to/2PQ8EDc Monthly meetings: https://www.meetup.com/Bucharest-A-D-C-E-S-Meetup/ --- # Introduction to Docker (images, container, logs) Docker Hub for images MCR.Microsoft.Com Demo 1. Jenkins : docker pull jenkins/jenkins , docker run -p 8080:8080 -p 50000:50000 jenkins/jenkins:lts 1. Sql Server tutorial: https://www.codeproject.com/Articles/5258260/Using-Docker-for-Local-SQL-Server-Development 1. Stankins : docker run -p 5000:5000 ignatandrei/stankins_linux 1. Your database ? --- # Scenario Create applications Demo Angular, .NET Core, Cordova, SqlServer --- # Scenario Run Applications Demo Angular, .NET Core, Cordova, SqlServer For new applications, ok. What about old applications ? ( Run Angular, Connect with VSCode, see ng --version) See Angular 8 vs Angular 9 demo presentation --- # Scenario Test Applications Demo .NET Core Edit MyImportantClass.cs --- # Scenario Generating Deployment Application Demo .NET Core (Linux + Windows) --- # Continous Testing + Deployment Stankins 1. Build on Linux with Docker 2. Integration Test with Docker(SqlServer, Jenkins, Cachet) Introduction to YAML for Azure [https://docs.microsoft.com/en-us/azure/devops/pipelines/yaml-schema?view=vsts&tabs=schema] [https://docs.microsoft.com/en-us/azure/devops/pipelines/languages/dotnet-core?view=vsts&tabs=yaml] Automatic Deploy Demo - modifying some data [GIT - https://github.com/ignatandrei/stankins](https://github.com/ignatandrei/stankins) [Pipeline Azure Devops https://dev.azure.com/ignatandrei0674/stankinsv2/_build?definitionId=1](https://dev.azure.com/ignatandrei0674/stankinsv2/_build?definitionId=1) Time ~ 20 minutes --- # VSCODE Interacting with containers Running in containers DevContainers: https://github.com/microsoft/vscode-dev-containers CTRL+SHIFT+P - open folder in container --- class: center, top # Questions? Andrei Ignat http://msprogrammer.serviciipeweb.ro/ www.ASP.NET forum moderator YouTube 5 minutes .NET and tools : http://bit.ly/5MinTools Book Making Open Source Component : http://bit.ly/NetOpenSourceComponent Book Copy Paste from StackOverflow : https://amzn.to/2PQ8EDc Monthly meetings: https://www.meetup.com/Bucharest-A-D-C-E-S-Meetup/