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.

Embrace chatOps, stop installing deployment software

390 views

Published on

Are you still deploying with capistrano? It is high time to put the chat bots to work. Using chatops to deploy your software gives visibility to all team members. It also gives a consistent interface to deploy. Software Engineers do not need to install any extra software to deploy. Ops is happy because software engineers do not need SSH access to servers anymore. Namshi is a Rocket Internet e-commerce venture in Dubai. At Namshi, we deploy all our apps with chatbots built with hubot. In this session, I will uncover some real life use cases of chat bots at Namshi.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Embrace chatOps, stop installing deployment software

  1. 1. Embrace chatOps, stop installing deployment software Geshan Manandhar @geshan
  2. 2. ◉ Senior Software Engineer ○ Tech solution provider ◉ Agile follower and conditional microservices believer whoami
  3. 3. What to expect from this talk
  4. 4. What is chatOps?
  5. 5. Why do chatOps?
  6. 6. How we do chatOps at Namshi
  7. 7. How can you start using chatOps in minutes
  8. 8. What is chatOps?
  9. 9. “ “putting tools right in the middle of the conversation” - Jesse Newland, GitHub Source: https://speakerdeck.com/jnewland/chatops-at-github
  10. 10. “ “ChatOps is a collaboration model that connects people, tools, process, and automation into a transparent workflow.” - Sean Regan, Atlassian Source: http://blogs.atlassian.com/2016/01/what-is-chatops-adoption-guide/
  11. 11. “ “To move fast and maintain stability it’s important to have a culture of automation, measurement and sharing (CAMS).” - Jason Hand, Victorops Author of ChatOps For Dummies Source: http://www.slideshare.net/VictorOps/chatops
  12. 12. “ “ChatOps is a way to automate tasks within a chat conversation, making it visible to the whole team”
  13. 13. Chat Clients with rooms or #channels
  14. 14. The Bots Hubot By GitHub Written in Coffeescript + Nodejs Lita Written in Ruby Err Written in Python
  15. 15. Custom scripts
  16. 16. Putting them all together = your chatOps stack
  17. 17. Why do chatOps?
  18. 18. Devs are happy, Ops are happier
  19. 19. Devs are free from installing extra software locally
  20. 20. Devs don’t need to install correct vesion of Ruby
  21. 21. or python
  22. 22. Anyone with permission can deploy from anywhere
  23. 23. Devs don’t need ssh access to the servers, so Ops don’t give it to them.
  24. 24. Ops are happier. They don’t need to do the boring tasks, the bots do it for the team.
  25. 25. Each task done by the bot is visible to the whole team
  26. 26. How we do chatOps at Namshi
  27. 27. Tech stack at Namshi
  28. 28. There are ~35 microservices at Namshi https://pixabay.com/en/lego-stones-build-toy-622602/
  29. 29. Big chunk of the backend is in PHP, other apps are built with NodeJs + Js
  30. 30. All new apps are dockerized
  31. 31. Servers on AWS are managed with salt stack
  32. 32. Apps are deployed with Capistrano/Kubernetes
  33. 33. “ “Your deploys should be as boring, straightforward, and stress-free as possible.” - Zach Holman Source: https://zachholman.com/posts/deploying-software
  34. 34. We deployed with email request ~4 years back
  35. 35. Our ChatOps Stack
  36. 36. Our ChatOps Stack
  37. 37. Our ChatOps Stack
  38. 38. Our ChatOps Stack
  39. 39. Chat bot at Namshi can deploy an application
  40. 40. Lock an application for testing
  41. 41. Fetch version of an application
  42. 42. Let’s see how the deployment is done by the bot
  43. 43. Easy Deployment process
  44. 44. Easy Deployment process Nancy Deploy
  45. 45. Easy Deployment process Nancy Deploy
  46. 46. Easy Deployment process Nancy Deploy Cap/Kube deploy
  47. 47. Easy Deployment process Nancy Deploy Cap/Kube deploy
  48. 48. Easy Deployment process Nancy Deploy Cap/Kube deploy Deploy output
  49. 49. Easy Deployment process Nancy Deploy Cap/Kube deploy Deploy output Deploy Result
  50. 50. Say Hello to Nancy
  51. 51. 30 Live deployments in a day 99% Success! 90 Staging deployments in a day It is normal to go live 3-5 times a day for a service/application.
  52. 52. Demo
  53. 53. How can you start using chatOps in minutes
  54. 54. Thinking you have too many things to set up?
  55. 55. ChatOps as a service, has a free plan with 1 bot https://pixabay.com/en/discovery-space-shuttle-launch-1087701/
  56. 56. There is a SAAS even for deployments
  57. 57. Deployment as a service, no free plan anymore https://pixabay.com/en/discovery-space-shuttle-launch-1087701/
  58. 58. Let the chatbot do the boring, recurring tasks. So that you can focus on the productive ones.
  59. 59. Any questions ? You can find me at ◉ @geshan ◉ Geshan.com.np ◉ slideshare.net/geshan Thanks! Presentation template by SlidesCarnival
  60. 60. Credits/References ◉ https://pixabay.com/en/child-girl-winter-snow-face-562297/ ◉ https://pixabay.com/en/robot-toy-grey-first-plane-916284/ ◉ https://pixabay.com/en/primate-ape-thinking-mimic-view-1019101/ ◉ https://pixabay.com/en/running-sprint-cinder-track-498257/ ◉ https://speakerdeck.com/jnewland/chatops-at-github ◉ http://blogs.atlassian.com/2016/01/what-is-chatops-adoption-guide/ ◉ http://www.slideshare.net/VictorOps/chatops ◉ https://pixabay.com/en/child-beach-liangxiaowucai-happy-538029/ ◉ https://pixabay.com/en/jewelry-ruby-pendant-625724/ ◉ https://pixabay.com/en/burmese-python-snake-reptile-nature-1150794/ ◉ https://pixabay.com/en/lock-door-old-rust-bolt-895278/ ◉ https://unsplash.com/photos/8GVGrjx82oo ◉ http://www.livefootballhub.com/tag/nepal/ ◉ https://pixabay.com/en/stacked-stones-cairn-rock-balance-1007944/ ◉ https://pixabay.com/en/lego-stones-build-toy-622602/ ◉ https://pixabay.com/en/child-childrens-baby-children-s-817368/ ◉ http://abdelrahmanhosny.com/2015/07/11/how-to-merge-two-docker-images/ ◉ https://pixabay.com/en/crystal-salt-stone-white-salt-955935/ ◉ https://pixabay.com/en/military-jet-flight-flying-f-15-1096881/
  61. 61. Credits/References ◉ https://zachholman.com/posts/deploying-software ◉ Billy Roh - https://dribbble.com/shots/503044-Hubot/attachments/34307 ◉ https://pixabay.com/en/discovery-space-shuttle-launch-1087701/ ◉ https://pixabay.com/en/lock-locked-padlock-closed-fence-1079329/ ◉ https://pixabay.com/en/golden-retriever-animal-shelter-750592/ ◉ https://pixabay.com/en/discovery-space-shuttle-launch-1087701/ ◉ https://pixabay.com/en/rocket-launch-smoke-rocket-take-off-67723/ ◉ https://pixabay.com/en/robonaut-saluting-dexterous-600978/ ◉ https://stackstorm.com/2015/12/10/chatops_pitfalls_and_tips/ ◉ First Illustration by: Anjan Shrestha - Anjhero.me ◉

×