Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Jenkins x azure

694 views

Published on

Microsoftの話、DevOpsの話、Jenkinsの話、Jenkins on Azureの話

Published in: Technology
  • Be the first to comment

Jenkins x azure

  1. 1. Azure Jenkins x Azure 2018 8 25 1
  2. 2. Azure, O365, D365 OSS VSTS Jenkins DevOps UI/UX User Story Mapping Python NodeJS C# Infra Management Operation @moriyamakyohei
  3. 3. © Microsoft Corporation Jenkins x Azure Jenkins 20 DevOps !!!
  4. 4. Microsoft
  5. 5. –Project Natick -
  6. 6. 1. 200 DC 200km =4.0ms/ 8.0ms 2. 3.
  7. 7. https://natick.research.microsoft.com/#divcenter
  8. 8. 3 3 months before…
  9. 9. “Microsoft is a developer-first company, and by joining forces with GitHub we strengthen our commitment to developer freedom, openness and innovation,” said Satya Nadella, CEO, Microsoft. “We recognize the community responsibility we take on with this agreement and will do our best work to empower every developer to build, innovate and solve the world’s most pressing challenges.”
  10. 10. Our Mission is …
  11. 11. Microsoft Corporation's mission statement is “to empower every person and every organization on the planet to achieve more.”
  12. 12. Microsoft Corporation's mission statement is “to empower every person and every organization on the planet to achieve more.”
  13. 13. Microsoft Azure Azure
  14. 14. 16 Azure Cloud Platform Security & Management Web Apps Mobile Apps API Management API Apps Logic Apps Notification Hubs Content Delivery Network (CDN) Media Services HDInsight Machine Learning Stream Analytics Data Factory Event Hubs Mobile Engagement Active Directory Multi-Factor Authentication Automation Portal Key Vault Biztalk Services Hybrid Connections Service Bus Storage Queues Store / Marketplace Hybrid Operations Backup StorSimple Site Recovery Import/Export SQL Database DocumentDB Redis Cache Search Tables SQL Data Warehouse Azure AD Connect Health AD Privileged Identity Management Operational Insights Cloud Services Batch Remote App Service Fabric Visual Studio Application Insights Azure SDK Team Project VM Image Gallery & VM Depot Infrastructure Services Platform Services
  15. 15. Global opportunity with Azure infrastructure 54 total regions: 42 generally available and 12 coming soon Regions generally available Regions coming soon
  16. 16. Microsoft global network
  17. 17. The most trusted and compliant cloud
  18. 18. Linux, Open Source, and Red Hat
  19. 19. Microsoft MicrosoftAzure
  20. 20. © Microsoft Corporation Applications Infrastructure Management Databases & middleware App frameworks & tools DevOps
  21. 21. DevOps?
  22. 22. DevOps? –
  23. 23. ↓↑ ↑
  24. 24. IT IT IT ○ ○ ○
  25. 25. IT ○ ○ ○ ○ ○ ○ VS IT SLO Service Level Objective ○
  26. 26. DevOps
  27. 27. 1 2 DevOps 4 3
  28. 28. https://puppetlabs.com/ 30 200 DevOps IT IT IT 1/60 168
  29. 29. DevOps is the union of people, process, and products to enable continuous delivery of value to our end users. - Donovan Brown http://bit.ly/WhatIs-DevOps DevOps -
  30. 30. /
  31. 31. Marketing and Operation Business Decision Maker IT Decision Maker Program Manager Project Manager Software Engineer Site Reliability Engineer Platform Operation Engineer Biz Tech Corp Gov... Budget Negotiat ion Business Decision IT Decision RoadMap creation End User /Custo mer Peer Peer Dev Ops Dev and/or Ops Financial Designer /Producer User Story Mapping Service Proposal User Experience Design Business Planner Marketing Peer ERP CRM SelesPeer Work in Real world Tool and framework quality assurance Engineer Feedback to Program Manager and/or Software Engineer and/or Site Reliability Engineer Support/ Escalation Engineer Marketing Software Development Write Test Code Unit Test/ Function Test Integration Test User Interface Design MA (Marketing Automation) Q and A Problem Solving Knowledge Management Check Monitoring Status Recover from Platform Problems Problem Analysis Source Code Analysis Log Analysis Task Management Infra Engineer? Build Prod Infra Regression Test Performance Test Test Analysis Peer Peer PeerPeer Tech Biz CI/CD Jenkins VSTS ITS/BTS - Jira - Trello - Ansible Terraform Shell Script LL Script Software Build -> artifact creation Middle ware Tuning Infra Design Build Test Infra SCM/ Version Management ithub VSTS Issue Tracking Maven Mocha Selenium Junit Remove Toils 1 2 f a c t o r X P Icinga Nagios datadog New Relic
  32. 32. • • • • • : http://www.itproguy.com/devops-practices/
  33. 33. Azure DevOps framework
  34. 34. DevOps DevOps Growth Mindset /
  35. 35. © Microsoft Corporation Jenkins x Azure
  36. 36. Jenkins
  37. 37. Jenkins Jenkins ( ) Java [3] cron URL https://ja.wikipedia.org/wiki/Jenkins
  38. 38. Jenkins 1. 2. 3. 4. 1.
  39. 39. Jenkins CI/CD NodeJS Express ✓Unit Test - Supertest - Should - Mocha Webhook ✓deploy to Test(β)Env Azure ✓E2E Test - Selenium ✓UAT Manual Operation ✓Deploy to Prod Env Release PipeLine Continuous Integration Continuous Deployment Developer Github Jenkins
  40. 40. Jenkins Agent Host Script not only sh) $cat hogehoge.sh echo “hello, world!” $bash hogehoge.sh $cat hogehoge.py print(“hello, world!”) $python hogehoge.py
  41. 41. Jenkins - Jenkins Jenkins JenkinsJenkins Build and Unit Test Server Group E2E Test Server Group Jenkins Deployment Server Group IaC
  42. 42. © Microsoft Corporation Jenkins / / / / E2E
  43. 43. © Microsoft Corporation Jenkins / / / / E2E Jenkins α
  44. 44. © Microsoft Corporation Jenkins
  45. 45. Jenkins x Azure
  46. 46. Jenkins on Azure - Azure - plugin - Azure App Service - Azure Commons - Azure Container Agents - Azure Container Service - Azure Credential - Azure VM Agents - Windows Azure Storage(=Azure Storage) - - Azure CLI - git
  47. 47. Jenkins on Azure - ubuntu - IP - → nginx - → nginx - Network Security Group - 22, 80 Open - ssh - Web ssh
  48. 48. Build Agent 2 1. Azure Container Instance 2. VM aws Fargate Ansible Terraform build
  49. 49. Jenkins
  50. 50. Jenkins on Azure - Visual Studio Team Service Circle CI VSTS [ ] Jenkins Azure CD [ ]
  51. 51. JenkinsonAzure -MSIxTerraform → ! https://www.slideshare.net/kyoheim/terraformazure-102448779
  52. 52. Managed Service Identity Tenant - Subscription Resource Group A Azure Active Directory Resource Group B MSI VM [Management VM] $az login --identity MSI endpoint Management VM Resource Group A Token Get Auth Token $terraform init/plan /apply/destroy VM
  53. 53. JenkinsonAzure - DB MSIxAzureKeyvault MSI Managed Service Identity DB Source Code DB Build and Test Test DB DB
  54. 54. …Jenkins demo Solution Template VM deploy → Agent VM https://docs.microsoft.com/ja-jp/azure/jenkins/install-jenkins-solution-template
  55. 55. Azure VM Build VM demo 1. Azure VM 2. Azure VM a. 3. 4. 5. Jenkins 6. Azure VM Job https://docs.microsoft.com/ja-jp/azure/jenkins/jenkins-azure-vm-agents
  56. 56. Demo Azure VM Build Tool/ Azure Resource Manager Endpoint VM VM
  57. 57. Q and A
  58. 58. 1. Jenkins Azure Solution 2. DB MSI Azure Key Vault 3. Azure MSI Service Principal 4. Ansible Terraform Jenkins Agent , 5.Azure

×