$30 off During Our Annual Pro Sale. View Details »

Clojure REPL or cluster deployment with Docker – January 2014

Clojure REPL or cluster deployment with Docker – January 2014

What is Docker and how to use it to spawn a Clojure REPL or for deploy and run a cluster of services.

Filippo Vitale

January 30, 2014
Tweet

More Decks by Filippo Vitale

Other Decks in Programming

Transcript

  1. Clojure REPL or cluster deployment with Docker (nth clj-syd 19)

  2. Docker

  3. Docker pack, ship and run LXC

  4. LXC Definition LXC is a userspace interface for the Linux

    kernel containment features
  5. LXC Linux Container “...something in the middle between

  6. LXC Linux Container “...something in the middle between ★ a

    chroot on steroids and a
  7. LXC Linux Container “...something in the middle between ★ a

    chroot on steroids and a ★ full fledged virtual machine.”
  8. LXC Linux Container “...something in the middle between ★ a

    chroot on steroids and a ★ full fledged virtual machine.” The goal of LXC is to create an environment as close as possible as a standard Linux
  9. LXC Linux Container “...something in the middle between ★ a

    chroot on steroids and a ★ full fledged virtual machine.” The goal of LXC is to create an environment as close as possible as a standard Linux without the need for a separate kernel
  10. LXC Linux Container “...something in the middle between ★ a

    chroot on steroids and a ★ full fledged virtual machine.” The goal of LXC is to create an environment as close as possible as a standard Linux without the need for a separate kernel “If it can run on the Host, it can run in the Container”
  11. LXC Linux Container

  12. LXC ThoughtWorks technology radar

  13. LXC ThoughtWorks technology radar

  14. LXC ThoughtWorks technology radar

  15. Docker

  16. Docker Containers vs. VMs

  17. Docker Containers vs. VMs

  18. Docker Containers vs. VMs Docker Inc - http://docker.io/

  19. Docker Concepts

  20. Docker Concepts Image

  21. Docker Concepts Container

  22. Docker Concepts: Image and Containers Container Image Container Run Run

  23. Docker Concepts: Image and Containers Host Container Container Container Image

    Image Run Run Run
  24. Docker Basic Docker Functions

  25. Docker Basic Docker Functions

  26. Docker Basic Docker Functions Docker Inc - http://docker.io/

  27. Docker Basic Docker Functions

  28. Docker Deployment Host Container FS TCP Ports TCP Ports IPTables

  29. Docker Deployment

  30. Docker run

  31. Docker Demo sudo docker run -i -t -rm ubuntu bash

  32. Docker Demo sudo docker run -i -t -rm ubuntu bash

    # touch xxx # rm /bin/yyy
  33. Docker Demo sudo docker run \ -i -t -rm \

    filippovitale/java7 \ java -version
  34. Docker http://index.docker.io/

  35. Docker build

  36. Docker Ubuntu Java7 Clojure-REPL

  37. Docker Demo

  38. Docker The whole Enchilada

  39. Docker Ubuntu Java7 Clojure-REPL Zookeeper

  40. Docker Demo Z Z Z C C C

  41. Docker

  42. Docker

  43. Docker

  44. Questions? Twitter @filippovitale BitBucket: filippovitale GitHub: filippovitale Docker Index: filippovitale

  45. f in