Slide 1

Slide 1 text

munz & more Docker Live Hacking: From Raspberry Pi to Kubernetes Oracle CODE 2018 US, China, Argentina, Germany Dr. Frank Munz

Slide 2

Slide 2 text

2 Dr. Frank Munz • Founded munz & more in 2007 • 17 years Oracle Middleware, Cloud, and Distributed Computing • Consulting and High-End Training • Wrote two Oracle WLS and one Cloud book • Twitter: @frankmunz

Slide 3

Slide 3 text

3 things about Docker

Slide 4

Slide 4 text

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

Slide 5

Slide 5 text

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

Slide 6

Slide 6 text

Docker Registry

Slide 7

Slide 7 text

fancy a demo?

Slide 8

Slide 8 text

Security

Slide 9

Slide 9 text

docker run -d –P fmunz/micro

Slide 10

Slide 10 text

vs.

Slide 11

Slide 11 text

A stranger gives you a box at night and asks you to connect it to your company network: Would you do it? what should be your biggest nightmare: unknown and unofficial images 10s of thousands

Slide 12

Slide 12 text

DB or WebLogic in a Docker Container!

Slide 13

Slide 13 text

Oracle Docker Images You have three main options 1.DIY: Dockerfile from Oracle github 2.Oracle Container Registry 3.Docker Hub munz & more #13 https://github.com/oracle/docker-images https://container-registry.oracle.com

Slide 14

Slide 14 text

http://www.oracle.com/us/pro ducts/middleware/cloud-app- foundation/weblogic/weblogic -server-on-docker-wp- 2742665.pdf Oracle Whitepaper WebLogic on Docker

Slide 15

Slide 15 text

Orchestration / Cluster Manager

Slide 16

Slide 16 text

Orchestration Options • On premises: – Docker Swarm, Kubernetes • Oracle Cloud, easy: – Container Cloud Service (OCCS) • Oracle Cloud Enterprise: Kubernetes – Container Engine (OCE) – Free CI/CD Wercker included munz & more #16

Slide 17

Slide 17 text

Welcome Mini J

Slide 18

Slide 18 text

Design Goals for Mini • Hands-on Raspi experience • Distributed Kubernetes setup & Docker Swarm setup • HA / failover / rolling updates • Have a fun project munz & more #18 Others have build Raspi clusters as well. A lot of credit goes to Roland Huss, Alex Ellis etc

Slide 19

Slide 19 text

DIY Raspi Docker Cluster munz & more #20 Component Price Raspi 4x 38€ Micro SD 4x 11€ Power 28€ Wifi 22€ Case 30€ Wires 10€

Slide 20

Slide 20 text

K8s • YAML configuration, declarative, uses labels • Pod: Containers sharing IP, network, filesystem – IP is ephemeral • Replica Set (was Replication Controller) – Manages PODs: restarts replicas • Services – Like a proxy, exposes pod – Permanent IP munz & more #22

Slide 21

Slide 21 text

Docker Swarm • Native Docker cluster with same API as a single engine -> part of Docker • Fast provisioning, about 500 msec • Various scheduling algorithms: spread, binpack, rand • No insecure mode J munz & more #23

Slide 22

Slide 22 text

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 • Industry standard: Kubernetes – See Oracle, AWS, Azure, Google cloud – Kubernetes supported by Docker munz & more #24

Slide 23

Slide 23 text

Kubernetes munz & more #25 https://blog.docker.com/2016/03/swarmweek-docker-swarm-exceeds-kubernetes-scale/ K8s components run as Docker containers

Slide 24

Slide 24 text

Could you debug it? munz & more #26

Slide 25

Slide 25 text

Docker Swarm munz & more #27 https://blog.docker.com/2016/03/swarmweek-docker-swarm-exceeds-kubernetes-scale/

Slide 26

Slide 26 text

Managed Enterprise Solution for running Docker?

Slide 27

Slide 27 text

OCCS

Slide 28

Slide 28 text

OCCS Walkthrough

Slide 29

Slide 29 text

OCCS • Easy way to run Docker container in Oracle cloud • No need to install Docker, Kubernetes, buy machines etc. • Integrates with Docker hub and Oracle Container registry • Does neither use Kubernetes nor Docker Swarm

Slide 30

Slide 30 text

OCE Managed Kubernetes

Slide 31

Slide 31 text

Standard Kubernetes munz & more #33 kubectl run microg --image=fmunz/microg --port 5555 kubectl CLI K8s admin

Slide 32

Slide 32 text

Cloud Native Compute Foundation munz & more #34

Slide 33

Slide 33 text

https://app.wercker.com munz & more #35

Slide 34

Slide 34 text

Wercker

Slide 35

Slide 35 text

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 #37

Slide 36

Slide 36 text

fancy a demo?

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

Predictions • Kubernetes is now de-facto standard for enterprises. • You will not dockerize 80% of your enterprise IT in the next 24 months. • Docker is somehow like the new Linux: Be ready to experience that cutting edge feeling we had with Linux 12 years ago J • Kubernetes is (sometimes) the new PaaS. munz & more #40

Slide 39

Slide 39 text

TL;DR @docker #cloud Docker is used in production / many products offered as Docker images / cross cloud / Docker orchestration is needed / #swarm is the easier #k8s / OCE or OCCS & Wercker removes heavy lifting / Oracle caught the trend! / if Kubernetes then cloud service? / emerging CNCF: Jaeger, Graphana, Prometheus + also: Fn Project @frankmunz

Slide 40

Slide 40 text

munz & more #42

Slide 41

Slide 41 text

No content

Slide 42

Slide 42 text

3 Membership Tiers • Oracle ACE Director • Oracle ACE • Oracle ACE Associate bit.ly/OracleACEProgram 500+ Technical Experts Helping Peers Globally Connect: Nominate yourself or someone you know: acenomination.oracle.com @oracleace Facebook.com/oracleaces oracle-ace_ww@oracle.com

Slide 43

Slide 43 text

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