Upgrade to Pro — share decks privately, control downloads, hide ads and more …

DevOps with Docker

DevOps with Docker

Slidedeck of the demo done during Microsoft User Group on 25th January 2018

https://www.meetup.com/mssgug/events/246692740/

Nilesh Gule

January 25, 2018
Tweet

More Decks by Nilesh Gule

Other Decks in Technology

Transcript

  1. AGENDA .Net Core Azure CLI VSTS Docker Multi stage builds

    ARM Azure Container Service Docker Swarm SQL Server 2017 Linux Portainer Docker Hub
  2. Provision Swarm cluster 5 Application overview Docker Multi- stage builds

    CI Build CD Release pipeline How are we going to use all these? 1 2 3 4 5
  3. Docker Multi-Stage build Advantages • All phases can be sequenced

    • Build • Test • Package • Default ENVIRONMENT variables can be set • Describes all the steps for building a docker image in one single Dockerfile
  4. Multi-container app using Docker Compose Advantages • All the services

    are described in compose file • Dependencies are easier to specify • All images can be built together
  5. Resource group • Logical grouping of resources in Azure ARM

    templates for ACS Engine Location • Azure region Template file • JSON file with declarative resources Parameters • JSON file with overrides
  6. swarmm-vnet-coredemo ACS Engine Resources swarm-master-coredemo-0 (172.16.0.5) Master availability set 172.16.0.0/24

    subnet swarmm-master-availabilitySet-coredemo swarmm-master-ip-swarmmaster-coredemo swarmm-master-lb-coredemo swarm-agent-coredemo-0 Swarm-agent-coredemo-1 Agent VM Scale set 10.0.0.0/16 subnet swarmm-agent-coredemo-vmss Swarm: 2375 SSH :22 2200 Docker: 2375 http: 80 https: 443 http:8080 swarmm-agent-coredemo swarmm-agent-ip-swarmagent-coredemo 443 80 8080 9000
  7. Provision Swarm cluster 21 Application overview Docker Multi- stage builds

    CI Build CD Release pipeline We managed to do all these 2 3 4 5 1 Azure CLI ARM .Net Core SQL Server 2017 Linux
  8. 22 References 1. Demo source code - https://github.com/NileshGule/dotnet-2017 2. Docker

    getting started - https://docs.docker.com/get-started/ 3. Docker compose V3 - https://docs.docker.com/compose/compose-file/#build 4. Commands Gist - https://gist.github.com/NileshGule/ddea94fdebc5fff19a0eedc2ab75a2e1 5. Continuous Deployment of Multi-container apps in Azure using VSTS and Docker - https:// www.handsonarchitect.com/2017/12/continuous-deployment-of-multi.html 6. Provision Swarm Cluster using ACS Engine - https://www.handsonarchitect.com/2017/12/ provision-docker-swarm-cluster-in-azure.html 7. Provision Swarm using ARM - https://www.handsonarchitect.com/2018/01/provision-docker- swarm-with-azure.html