DODDFW2017 - Everything I need to know about DevOps I learned in The Marines

DODDFW2017 - Everything I need to know about DevOps I learned in The Marines

We all wish we could “install the DevOps”, but we can’t. If you compare the 2016 and 2017 State of DevOps reports, “low performers” are deploying more often, but their quality has gone down. Discipline and rigorous technical practices are required to achieve the benefits DevOps promises.

The military is the ultimate in command and control, making sure your every second is accounted for and every step planned. This is pretty much the opposite of a DevOps culture where sharing and accepting failure are norms… right?

Not so fast…

When I got to boot camp 30 years they made us sit cross legged on bare concrete for “classroom” sessions. Try it for more than 10 minutes some time. It hurts. It made no sense. Of course you get used to it after a few weeks.

Around the sixth week they started teaching us shooting positions. Turns out one of the most stable is sitting cross legged. Stability is important at 300 yards. Something that hurt a couple months earlier was now second nature. We had the foundation required to learn the next steps (literally).

Ready to shoot, right? Yeah, not so much. Now we got to spend a week sitting on grass and pretending to shoot before we ever saw a round of ammunition. Staging deployment anyone?

In much the same way, solid technical principles enable a DevOps culture.

If we make good automation, good test practices, good code quality, useful measurement and helpful feedback loops second nature, we’re free to let our teams solve the hard problems with reduced risk. Command and control can be at the organizational level where it needs to be, with the people best suited to it (our development teams) providing the value required to support that mission.

This talk will underscore the importance of many technical practices, but the talk itself is not technical. For example, I’ll compare test driven development (TDD) to “dry firing” in boot camp, but I won’t be showing test code.


DevOpsDays DFW

August 30, 2017


  1. 1.
  2. 2.

    “…low performers reported improved deployment frequency and lead time for

    changes, compared to last year. However, the low performers reported slower recovery times and higher failure rates... “
  3. 3.


    THE MARINES Ken Mugrage ThoughtWorks @kmugrage
  4. 4.

    KEN MUGRAGE • Technology Evangelist at ThoughtWorks • DevOpsDays core

    organizer • On the Twitters at @kmugrage • On the Interwebz at
  5. 5.

    This presentation contains images of military training, including people preparing

    to fire weapons There are no images of active combat There is no audio
  6. 6.
  7. 7.
  8. 9.
  9. 10.
  10. 11.
  11. 12.
  12. 15.
  13. 16.
  14. 17.
  15. 18.
  16. 19.
  17. 20.
  18. 21.
  19. 22.

    “DevOps: A culture where people, regardless of title or background,

    work together to imagine, develop, deploy and operate a system.” -Me
  20. 23.
  21. 24.

    “In our study only 10% of participants acknowledged that having

    a CI server was not the same as practicing CI. Conversely, 90% of individuals said they were practicing CI regardless of whether they were specifically practicing the fundamentals of CI or not.” Suzie Prince - theatre/
  22. 25.

    ACTUAL CONTINUOUS INTEGRATION • Is everyone pushing their code into

    trunk / master (not feature branches) on a daily basis? • Does every commit trigger your tests? • When the build is broken, is it typically fixed within 10 minutes? Paraphrased from
  23. 26.
  24. 28.
  25. 29.
  26. 30.
  27. 31.
  28. 32.
  29. 33.
  30. 34.
  31. 35.

    WORK ON GOOD HABITS 1. I need to work on

    this thing 2. Writes a test 3. Writes some code 4. Test passes 5. Commits to trunk
  32. 37.
  33. 38.

    “There are no white, black, brown, yellow, red, or purple

    recruits here. You’re ALL fucking green.” Sgt. Johnson. Sr Drill Instructor, Platoon 2097 MCRD SD
  34. 40.
  35. 41.
  36. 42.
  37. 43.
  38. 44.
  39. 45.
  40. 46.
  41. 47.
  42. 48.
  43. 51.
  44. 52.
  45. 54.
  46. 55.
  47. 56.
  48. 57.
  49. 58.

    “We’re not accustomed to occupying defensive positions. It’s destructive to

    morale.” –LtGen H. M. “Howlin’ Mad” Smith, Iwo Jima, 1945
  50. 60.

    THANK YOU • Images thanks to in public domain

    subject to unless otherwise noted