Sie sind auf Seite 1von 49

Docker and Oracle

Everything You Wanted To Know


June, 2017

Umesh Tanna
Principal Technology Sales Consultant
Oracle Sales Consulting Centers(SCC)
Bangalore

Copyright 2017, Oracle and/or its affiliates. All rights reserved. |


Safe Harbor Statement
The following is intended to outline our general product direction. It is intended for
information purposes only, and may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality, and should not be relied upon
in making purchasing decisions. The development, release, and timing of any features or
functionality described for Oracles products remains at the sole discretion of Oracle.

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 2


Program Agenda
1 Docker Containers What and Why
2 Oracle Linux and Docker Containers
3 Oracle Cloud and Docker Containers
4 Introducing Oracle Container Cloud Service(OCCS)
5 OCCS Functional Walk-through
6 Q&A

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 3


Virtual Machines vs. Containers

Containers
VMs

Virtual Machines Containers


Each virtual machine (VM) Containers include the app & all of its dependencies,
includes the app, the but share the kernel with other containers.
necessary binaries and Run as an isolated process in userspace on the host OS
libraries and an entire guest Not tied to any specific infrastructure containers run
operating system on any computer, infrastructure and cloud.
Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 4
The history of Unix containers
While Docker has been playing a key role in adoption of the Linux container technology,
they did not invent the concept of containers
OCI 2015
rkt 2014
Docker 2013
LMCTFY 2013
Warden 2011
LCX 2008
AIX (6.1)WPARS 2007
cgroups in Linux Kernel (2.6.24) 2007
Process Containers 2006
openvz 2005
Oracle Solaris Zones 2004
Linux vserver 2001
FreeBSD Jails 2000
UNIX V7 added chroot 1979

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 5


Docker Engine
Container execution and admin
Uses Linux Kernel namespaces
and control groups
Namespaces provide for isolated
workspace

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 6


Docker Images
An image is a collection of files and some meta data
Images are comprised of multiple layers, multiple layers
referencing/based on another image
Each image contains software you want to run
Every image contains a base layer
Docker uses a copy on write file system
Layers are read only

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 7


Why Containers?
A container is packaged as an entire runtime environment: OCCS
the service/app plus all dependencies, libraries, & configuration
files needed to run it
Portable across environments & lightweight (share the OS)

Developers care because: IT cares because:


Quickly create ready-to-run packaged Improve speed and frequency of releases, reliability
applications, low cost deployment and replay of deployments
Automate testing, integration, packaging Makes app lifecycle efficient, consistent and
repeatable configure once, run many times
Reduce / eliminate platform compatibility issues Eliminate environment inconsistencies between
(It works in dev!) development, test, production
Support next gen applications (microservices) Improve production application resiliency and scale
out / in on demand

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 8


Key Container Use Cases
Developer productivity a top use
case today
Building out CI/CD pipelines
Consistent container image moves
through pipeline
Preventing it worked in dev
syndrome
Application modernization and
portability are also key adoption
SOURCE: THE EVOLUTION OF THE MODERN SOFTWARE SUPPLY CHAIN, DOCKER SURVEY 2016
drivers (Prem <-> cloud)

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 9


The Need for Unified Container Management
Advanced Functions
Orchestration, Monitoring, Operations, Service
Discovery
Docker Environment Provisioning

+ Fragmented Market Solutions




Kubernetes
Swarm, Docker Data Center, Docker Cloud
Consul, ETCD, Docker Networking
etc

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 10


Oracle Linux and Docker

Support for Docker Running on Oracle Linux (Doc ID 1921163.1)

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 11


Installing Docker on Oracle Linux

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 12


Installing Docker on Oracle Linux

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 13


Installing Docker on Oracle Linux

7 Steps installation is documented. However, getting started for learning purpose steps 4, 5 and 6 may
not be required. However, please follow the appropriate section depending whether you are installing
docker in Linux 6 or Linux 7.

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 14


Oracle Cloud and Docker Containers

Compute CS Container CS Application Container CS

DIY Container Oracle Managed Docker-based Cloud


Management Container Service Polyglot Platform

DIY Container OCCS ACCS

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 15


Docker Page On http://developer.oracle.com/docker

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 16


Oracle Product Images on http://store.docker.oracle

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 17


Oracle on GitHub

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 18


Oracle Linux, Docker, and Oracle's
Announcing: Official Oracle Docker Images Container Registry [CON7461]

Oracle Container Registry server to host pre-built


Docker images for Oracle products
container-registry.oracle.com

Dockerfiles and samples on Oracles GitHub


github.com/oracle/docker-images
Oracle Coherence Oracle Linux
Oracle Database Oracle NoSQL Database
Oracle HTTP Server Oracle Tuxedo
Oracle Java Oracle WebLogic

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 19


Introducing Oracle Container Cloud Service!

Hosted container service allows customers to bring and run their own Docker containers
What is It? Core and Advanced Docker Management to orchestrate container placement and policies

Building & maintaining Docker environments & management is complex, costly and time
consuming
What Problems
Lack of example container applications and best practices to get started
Does it Solve?
Enterprises need Docker management from dev/test through to production

Enables developers to get started and deploy containers quickly, DevOps teams with Docker
management, visibility and control.
Key Benefits Integrates with Continuous Integration & Deployment Pipelines to automate new releases.

Supports polyglot development, open source software and microservice architectures

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 20


Key Container CS Terminology Covered in Demo
Container CS Concept Description
Service A service is a template for how to run a container from a single image and
associated Docker runtime information (e.g. mapped ports, storage volumes
etc)

Stack A Stack is a template for how to run a multi-service (container) based


application (e.g. an ELK stack). It is very similar (and compatible with)
Docker Compose format.

Deployment One or more running containers that have been created from deploying a
Service or a Stack

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 21


Container CS Key Features
Enterprise Operations
Cloud & Container Native Collaboration Built-In
Ready
Docker Compatible (Docker Operations Dashboards Elegant Interface - Quickstart
Engine, Docker Compose) Wizards to get users started
Key health/performance
Convert between Docker stats & container logs Best Practices Included
run, UI, YAML (example stacks covering
Container Health Checks (port monitoring, logging, load
One Click Deploy (of example ping for container processes) balancing)
application stacks)
Service Scaling (scale out Run & Deploy Oracle
Registry Integration (connect to services via UI or API) Certified Docker images
public & private registries such
as Docker Hub) Orchestration & Scheduling API Ready Drive common
Policies (least CPU/Memory, tag container operations and
Build CI/CD Pipelines (via based placement, others) deployments via REST API
WebHooks)
Self-Healing Deployments Resource Pools (partition
Service Discovery Built in to (maintain the desired state of a compute resources across dev,
enable multi-container cross deployed multi-container app) test, staging etc
host deployments

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 22


Container CS Provides Out of the Box Functionality

Configuration Application Container Operations


Management Deployment Orchestration Management

Create Instances as Needed Edit Create New Services Automated Deployment Integrated Health Checks
Define Resource Pools Compose Application Stacks Multi-Host, Easy Scale Out Unified Dashboard
Add Private Registries Deploy Stacks with 1 Click Built in Service Discovery Monitoring and Auditing

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 23


Container Cloud Service Differentiation
1. Easy Onboarding and Use
2. Example Application Stacks
3. Part of Rich App Dev Portfolio
4. Planned Container Hybrid Cloud
with Cloud @ Customer

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 24


1. Easy Onboarding and Use
Intuitive complete UI for
Developers and DevOps teams
Quickstart Wizards for rapid setup
Dashboards give at a glance
operational views
Docker Compatible (Docker Engine
and tooling like Docker Compose)

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 25


2. Example Application Stacks
Example Stacks enable quick
customer ramp without complex
orchestration
Service Discovery Built-In to enable Q
multi-host app deployments Load Admin Server u
e
Balancer

Complete functioning examples: r


y
Load Balancing
Logging Managed Managed Managed
Monitoring Server Server Server
Open Source (WordPress, Redis, others)
WebLogic Multi-Host Multi-Host WebLogic Stack with Load balancer

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 26


3. Part of Rich App Dev Portfolio
Unique in Blending Traditional, Cloud Native and Low Code with End to End PaaS

Oracle Platform for Cloud Application Development

BACK-END EE F(x) FRONT-END


SERVICES Application Java Functions Mobile
TOOLING SDKs App
Container (3rd Party, Builder
JET)

COMMON
SERVICES Developer Cloud Container Cloud APM/Log API Identity
(CICD) (Docker, Orchestration) Analytics Management

DATA INTEGRATION
SERVICES Database MySQL NoSQL SERVICES Integration SOA Internet of
Things

Compute (VM, Bare Metal) Network Storage

Infrastructure as a Service

Copyright
Copyright 2017,
2016, Oracle
Oracle and/or
and/or itsits affiliates.All
affiliates. Allrights
rightsreserved.
reserved. || 27
4. Planned Container Hybrid Cloud with Cloud @ Customer
Same IaaS and PaaS software
Same updates as Oracle Cloud
Data Management
Same subscription and pay-as-
Management Application you-go pricing
Development

PaaS
Single vendor for the entire
Identity Integration
solution
Content & Process Business Analytics

IaaS
Network Storage Compute

Oracle Data Center Your Data Center


Oracle Cloud Machine
Oracle Cloud

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 28


Oracle Container Cloud Service Architecture

SSH Access / Console UI / REST API


OCCS Manager Node Image Registry (Public/Private)

OCCS Worker Node OCCS Worker Node OCCS Worker Node

OCCS Instance

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 29


How Does Container CS fit into the DevOps Story?

IaaS-centric target for


Mobile CS
deployment of Docker-ized apps
Complements Oracle PaaS
Applications with a Bring your Developer CS
Own Container Service Java CS
Run ANY Containerized (Java EE)

Application including Open


Source
Application Container CS
Container CS (Java SE & Node)

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 30


The Docker DevOps Cycle
Seen in the DevOps Sales Play
Plan
featuring:
Monitor Code
Oracle Developer Cloud Service
Now Includes Docker Image Build Function
Oracle Container Cloud Service
Operate Build Deploy, Operate, Monitor

Container CS Dev CS

Deploy Test

Release

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 31


The New Docker Pipeline Using Docker with Continuous
Delivery in Oracle Cloud [CON4824]
Docker App Image
Registry

Docker Management & Control

App Code,
Tests, Certified Base
Docker File Docker Images
Test Staging Production

Developer Local

Dev CS
Container CS

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 32


Functional Walkthrough
Oracle Container Cloud Service

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 33


Configuration Management Create instances of Oracle
Container CS quickly. Use these
either long term or short term.
Configure Instances as Needed Teams can have their own
instances.

Access in Oracle Cloud My


Services

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 34


Configuration Management
Create Resource Pools - Groups of
Hosts - to match your needs for full

Control & Pool Resources Lifecycle Deployments

Launch your applications into


Resource pools

Pools can align with your


DevOps cycle

Oracle Confidential Internal

Pools can be shared


resources

Copyright 2017, Oracle and/or its affiliates. All rights reserved. |


Configuration Management
The Docker Public registry is
defined by default
Add Private Registries
Add registries to access your
organizations images

Users can add as many registry


definitions as needed

Copyright 2017, Oracle and/or its affiliates. All rights reserved. |


Application Deployment Select from one of many pre-
configured Services

Services (container templates) Edit or Create New Services via UI,


Docker Run or Docker Compose
YAML

Leverage images from Docker Hub


or your Private Registry

Compose via UI, Docker Run


or YAML

Copyright 2017, Oracle and/or its affiliates. All rights reserved. |


Application Deployment
Copy and Paste an existing Docker
Run command or Docker Compose
Services (container templates) based YAML

Switch between views (UI, Run or


YAML) as needed

Docker Run Docker Compose YAML

Copyright 2017, Oracle and/or its affiliates. All rights reserved. |


Application Deployment
Select from one of many example
application Stacks included
Stacks (application templates) Stacks are sets of services that are
ready to run as containerized
applications

Stacks
Stacksare
areReady
deployable
to Runin in
1 Click
1 Click
or or
Further
Edited Further
and Saved
Edited
as a New Stack

Copyright 2017, Oracle and/or its affiliates. All rights reserved. |


Application Deployment

Easily edit existing Stacks to


Stacks (application templates) change such things as orchestration
defaults

Easily Edit YAML

Drag and Drop


Services
Copyright 2017, Oracle and/or its affiliates. All rights reserved. |
Application Deployment

Deploy a Stack in One Click Stacks can be quickly deployed with


1 click

Choose Resource Pool to Deploy To

Preset Orchestration based on YAML


(can be changed at deployment time)

1 Click Stack Deploy

Copyright 2017, Oracle and/or its affiliates. All rights reserved. |


Container Orchestration
Deployment Status and Health is
clearly shown in the UI
Orchestrate Easily Easily scale running Deployments
when needed

Green designates Healthy


Green = Healthy Deployment
Deployment

Easy Scale Up/Down

Integrated
HTTP, TCP and
Basic Auth
Health checks

Copyright 2017, Oracle and/or its affiliates. All rights reserved. |


Container Orchestration

Container CS provides a super-


Scale Out in a Click easy method to scale containers
up or down

Simply change the quantity


of Containers to total
needed

Automatic deployment across hosts in resource pool per


the orchestration policy for that service

Copyright 2017, Oracle and/or its affiliates. All rights reserved. |


Container Orchestration
Container CS provides integrated
Built-in Service Discovery Service Discovery, so application
containers know where to find
dependent resources / services

Automatic registration of
host ip and port for service

Copyright 2017, Oracle and/or its affiliates. All rights reserved. |


Operations Management

Container CS supplements the


Healthy Deployments reported container status with
integrated Health checks

Successful Health Check

Copyright 2017, Oracle and/or its affiliates. All rights reserved. |


Operations Management
Views across all Docker
Dashboard Unified View Resources

Quickly Identify Problem Areas

Unhealthy App Deployment

Over Utilization of
Resources

Copyright 2017, Oracle and/or its affiliates. All rights reserved. |


Operations Management
Container CS provides the user with
an easy way to view container logs.
Easily View Container Logs No need to navigate a CLI and
learn Docker commands

View Container Logs with a Click

Copyright 2017, Oracle and/or its affiliates. All rights reserved. |


Operations Management

Auditing / Monitoring Container CS provides built-in


Monitoring and Event Logging

Integrated Host Monitoring

Integrated Event Log

Copyright 2017, Oracle and/or its affiliates. All rights reserved. |


Questions?

Copyright 2017, Oracle and/or its affiliates. All rights reserved. | 49

Das könnte Ihnen auch gefallen