From Monolith to Docker Distributed Applications

From Monolith to Docker Distributed Applications

by Carlos Sanchez
DevOps Pro Vilnius 2016

6d46284ef16436cb154adf4963e236f0?s=128

DevOps Pro

June 01, 2016
Tweet

Transcript

  1. None
  2. None
  3. None
  4. None
  5. None
  6. None
  7. None
  8. None
  9. None
  10. None
  11. None
  12. None
  13. None
  14. None
  15. None
  16. None
  17. None
  18. None
  19. None
  20. resource "aws_instance" "worker" { count = 1 instance_type = "m3.large"

    ami = "ami-xxxxxx" key_name = "tiger-csanchez" security_groups = ["sg-61bc8c18"] subnet_id = "subnet-xxxxxx" associate_public_ip_address = true tags { Name = "tiger-csanchez-worker-1" "cloudbees:pse:cluster" = "tiger-csanchez" "cloudbees:pse:type" = "worker" } root_block_device { volume_size = 50 } }
  21. terraform apply

  22. None
  23. None
  24. None
  25. None
  26. None
  27. None
  28. nsenter

  29. None
  30. None
  31. None
  32. None
  33. jenkins ubuntu

  34. None
  35. None
  36. /dev/sd[f-p] /dev/sd[q-z]

  37. /dev/sd[f-p] /dev/sd[q-z]

  38. /dev/sd[f-p] /dev/sd[q-z]

  39. None
  40. None
  41. None
  42. None
  43. None
  44. None
  45. None
  46. --cpu- shares

  47. None
  48. None
  49. None
  50. TINI

  51. None
  52. marathon-lb haproxy nginx

  53. iptables --icc=false --link docker0 --ip-forward=false iptables iptables

  54. None
  55. None
  56. overlay # On the Swarm master docker network create --driver

    overlay --subnet=10.0.9.0/24 my-net
  57. None
  58. None
  59. None
  60. None
  61. None
  62. None
  63. None
  64. None
  65. None
  66. None