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.

From Docker Swarm to OCCS and Wercker: Live-hacking at Oracle CODE Mexico 2017

266 views

Published on

Live hacking with Docker Swarm at Oracle CODE Conference in Mexico City 2017: From a Raspberry Pi Cluster to OCCS and Wercker.

Published in: Internet
  • Hey guys! Who wants to chat with me? More photos with me here 👉 http://www.bit.ly/katekoxx
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

From Docker Swarm to OCCS and Wercker: Live-hacking at Oracle CODE Mexico 2017

  1. 1. munz & more Docker in the Oracle Universe Including OCCS and Wercker Oracle Code Mexico City 2017 Dr. Frank Munz
  2. 2. 2 Frank Munz • Founded munz & more in 2007 • 17 years Oracle Middleware, Cloud, and Distributed Computing • Consulting and High-End Training • Wrote two WebLogic books and one Cloud book
  3. 3. 3 things about Docker
  4. 4. Solves the “Worked For Me!” issue munz & more #4 OS tools, JDK, patches, database driver, libs, appserver, domain, deployment, tools, scripts Docker OS utils, JDK, patches, database driver, libs, appserver, domain, deployment, tools, scripts Integration, Performance, Acceptance Testing Production dockerize it! You can pass environment variables for specific settings e.g. in prod Docker Registry
  5. 5. Docker in the Cloud? Supported by every major cloud provider: munz & more #5 On premise -> all clouds Docker Registry Docker Container Service EC2 Container Service Google Container Engine Azure Container Service Bluemix Containers
  6. 6. what should be your biggest nightmare: unknown and unofficial images 10s of thousands Docker Registry
  7. 7. fancy a demo?
  8. 8. Small Images / Microservices You can have a real service in ... Possible Options: busybox and static binary munz & more #8
  9. 9. Simple Life Inside Container munz & more #9 processes FS mounts
  10. 10. Security
  11. 11. $ docker run -d –p 8080:9999 fmunz/micro
  12. 12. vs.
  13. 13. A stranger gives you a box at night and asks you to connect it to your company network: Would you do it?
  14. 14. Oracle Options
  15. 15. WebLogic in a Docker Container!
  16. 16. Official Support #16^ Oracle support does not require you to use the provided Docker files Oracle Product Official Support GlassFish MySQL yes NoSQL OpenJDK Oracle Linux yes OracleCoherence yes OracleDatabase yes OracleHTTPServer yes OracleJDK yes OracleTuxedo yes OracleWebLogic yes
  17. 17. Oracle and Docker To get images: • Oracle Docker registry • DIY: Dockerfile from Oracle github To run Oracle Docker containers: • Oracle Container Cloud Service • Build and deploy with Wercker munz & more #17
  18. 18. Docker Registry Docker images from Oracle container registry (restricted to US / OZ / GB!) Get image: $ docker login container-registry.oracle.com $ docker pull container-registry.oracle.com/java/serverjre:8 munz & more #18
  19. 19. Just Drop Server JRE and WLS Installer munz & more #19 $ cd java-8 $ docker build -t oracle/jdk:8 . Sending build context to Docker daemon 4.096 kB Step 1 : FROM oraclelinux:latest latest: Pulling from library/oraclelinux 10ec637c060c: Downloading 4.865 MB/97.84 MB ... $ sh buildDockerImage.sh -g -v 12.2.1.1 ... https://github.com/oracle/docker-images
  20. 20. Extend the WLS image Sample script provided: • Dockerfile to extend WLS image • Run WLST script to create domain • Create boot.properties • Expose NM, Server ports munz & more #20 Linux Base Image JDK Image WebLogic Image WLS Domain Image
  21. 21. http://www.oracle.com/us/pro ducts/middleware/cloud-app- foundation/weblogic/weblogic -server-on-docker-wp- 2742665.pdf Oracle Whitepaper WebLogic on Docker
  22. 22. munz & more #22 Good Docker book by J. Turnbull / $ 9.99 (covering Docker 1.13)
  23. 23. Orchestration / Cluster Manager
  24. 24. Cluster Manager Options On Premise Cloud Docker Swarm Docker 1.12 Docker DC (EE) Kubernetes DIY Google Oracle Oracle Registry Oracle Git Oracle CCS munz & more #24
  25. 25. Welcome Mini J
  26. 26. Kubernetes (K8s) • Kicked off by Google’s Borg • Most active github project • Orchestration for containers, e.g. Docker • Declarative configuration • Service discovery • Rolling upgrades munz & more #26
  27. 27. K8s • YAML configuration • Pod: Container(s) sharing IP, network, filesystem – IP is ephemeral – Uses Labels • Replication Controller -> Replica Set – Manages PODs (restarts replicas based on labels) • Services – Proxy for pod – Permanent IP munz & more #27
  28. 28. Docker Swarm • Native Docker cluster with same API as a single engine -> part of Docker • Fast provisioning, about 500 msec • Scheduling: spread, binpack, rand • No insecure mode J munz & more #28
  29. 29. Design Goals for Mini • Hands-on Raspi experience • Distributed Kubernetes setup & Docker Swarm setup • HA / failover / rolling updates • Have a fun project munz & more #29 Others have build Raspi clusters as well and a lot of credit goes to them, e.g. to Roland Huss, Alex Ellis etc
  30. 30. Design Decisions for Mini • Hypriot Linux • 4 node cluster • ARM based -> runs ARM Docker images • Preferred Gbit switch, but WIFI only – Better I/O throughput with separate WIFI chip • Wifi router in hotspot mode – Mac OS issue with NAT • DIY: github https://github.com/fmunz/raspicluster munz & more #30
  31. 31. Paper bag Computer Raspberry Pi • 1.2 GHz Quad Core ARM cortex-a53 • RAM: 1 GB LPDDR2 Speicher • Dual Core VideoCore, 1920x1080 • Bluetooth • 802.11 B/G WIFI • Boots from micro SD card • 38 € munz & more #31
  32. 32. DIY Raspi Docker Cluster munz & more #32 Component Price Raspi 4x 38€ Micro SD 4x 11€ Power 28€ Wifi 22€ Case 30€ Wires 10€
  33. 33. Kubernetes or Swarm? • Swarm wasn’t impressive when released, but this has changed • Swarm is much easier to understand and to operate • Swarm covers a lot of what K8s does • Swarm is tightly linked to Docker API -> harder to replace Docker with e.g. Rocket munz & more #33
  34. 34. Docker Swarm munz & more #34
  35. 35. Google Kubernetes munz & more #35
  36. 36. Docker Containers in Kubernetes munz & more #36
  37. 37. OCCS
  38. 38. OCCS • Easy way to run Docker container in Oracle cloud • No need to install Docker, buy machines etc. • Integrates with Docker hub and Oracle Container registry • Does not use Kubernetes or Docker Swarm
  39. 39. fancy a demo?
  40. 40. Dashboard
  41. 41. Services munz & more #41
  42. 42. Ressource Pools munz & more #42
  43. 43. Service Editor
  44. 44. Deployment Pulls Image munz & more #44
  45. 45. Running Grafana in OCCS munz & more #45
  46. 46. • Grafana Docker image • Runs on OCCS • Measures Oracle Cloud DNS/ping from worldwide locations • Run it on OCCS without knowing much about Docker or Grafana! munz & more #46
  47. 47. Webcasts on Youtube munz & more #47 https://www.youtube.com/watch?v=YFWAUEjtTpk https://www.youtube.com/watch?v=aRj0WK6uids
  48. 48. Wercker
  49. 49. Wercker • Recently acquired by Oracle • Pipelines execute steps on code – Pipelines == series of steps – Execute inside Docker container • Workflows == chained and branched pipelines • Quickly provision ready to run infrastructure – Push images to any registry – Restart OCCS via webhooks munz & more #49
  50. 50. https://app.wercker.com munz & more #50
  51. 51. fancy a demo?
  52. 52. Predictions • Swarm will take its share from Kubernetes. • OCCS is the easier solution for OPC • You will not dockerize 90% of your enterprise IT in the next 24 months. • Docker is the new Linux. Be ready to experience that feeling we had with Linux 13 years ago J • Sometimes Docker is the new PaaS. munz & more #52
  53. 53. Conclusion • Docker is used in production today • Docker, but more so cluster managers are still evolving • Oracle caught the trend early – good! • Many Oracle are supported • OCCS saves you from the heavy lifting • Wercker creates and deploys Docker images munz & more #53
  54. 54. TL;DR @docker / #cloud works for me: solved / cross cloud / just Docker is not enough / #swarm is the easier #k8s / not a security risk / many products offered as images / official Oracle support & OCCS & Wercker / consider cloud services. @frankmunz
  55. 55. www.munzandmore.com/blog facebook.com/cloudcomputingbook facebook.com/weblogicbook @frankmunz https://www.linkedin.com/in/ frankmunz/ youtube.com/weblogicbook -> more than 50 web casts Don’t be shy J

×