© Okcan Yasin Saygili 2017

Okcan Yasin Saygili, Oracle IaaS, 10.1007/978-1-4842-2832-6_5

5. Container Cloud

Okcan Yasin Saygili

(1)Istanbul, Turkey

Today, many web applications are released in the cloud, to provide service through the public Internet. Ten years ago, all of these applications were hosted on a hosting service on a virtualized machine. Whenever a new machine was needed in the cloud, this new machine was only generated by a service provider. However, some customers didn’t want to give this permission. Therefore, Docker changed this with a new-generation virtualization solution that was particularly useful to startup companies.

Docker is an open source project that manages multiple virtual images in a service. Docker provides continuous integration and continuous deployment, particularly with GitHub and Jenkins, for improving development flow. Docker creates clone machines in a few minutes from the cloud. This saves customers time, as they can create new machine configurations, such as hardware, network, etc., with a few clicks, without burdening their customers with an additional workload. Docker is developed with multiple layers, including infrastructure, operating, and Docker system. Therefore, all such items are unified at a single point.

The Docker system provides virtualized service geared to develop applications in multiple IT environments. Traditionally, IT systems are not transparent to other services, but Docker supports transparency between cloud machines. For example, if you have one machine for developing Java and WebLogic, but this system no longer accepts an additional workload, normally you might have to create and configure one machine again, causing much time to be spent on this process. Furthermore, the project might expire as the result of a time-related issue. Therefore, the Oracle Container Cloud Service is designed to provide a high degree of availability and scalability .

Docker architecture is divided into two parts :

  1. Container: The Docker container is managed by the Container service, and this service’s main aim is to manage all Docker images, so that they work properly with one another.

  2. Image: A Docker image is created for building new services, such as an application server, database, and other IT applications, and this image aims to work applications on container. Furthermore, all images are working on a container, thus disks will be saved.

Docker Architecture

Docker has a unique design (Figure 5-1), although it offers multiple products for the IT world. Traditional virtual machine (VM) ser vers don’t support API-based solutions to create and manage new virtual machines. Docker is powered by the cloud, thus developers don’t need comprehensive knowledge to manage the service. Docker works with two main elements.

A439975_1_En_5_Fig1_HTML.jpg
Figure 5-1. Differences between the VM and Docker container
  1. Namespace: This service aims to isolate service and control this isolation.

  2. Cgroups: This service adjust resource size to work properly within a system.

Oracle Cloud Container

Oracle understood Docker technologies’ power to add value to cloud solutions, thus Oracle’s interest in how to easily manage Docker services through third-party cloud service. Oracle Cloud services helps users to make containers, and this service offers the ability to create services quickly and easily, thereby increasing a company’s productivity. This service uses special production, testing, and pre-production environments. Oracle Container Cloud Service’s main aim is to manage Docker and improve control for systems to work properly.

  • Management: As you know that time is an important asset for productivity, if you have to set up Docker on infrastructure quickly, Oracle Container Cloud helps to sets up Docker in a few clicks.

  • Configuration: Oracle offers flexibility to change Docker infrastructure.

Following is how the service is created:

  1. Container Cloud is released by Oracle. Click Container Cloud Service (Figure 5-2).

    A439975_1_En_5_Fig2_HTML.jpg
    Figure 5-2. Oracle Container Cloud Service Console

    The overview page indicates the starting date, ending date, and CSI number.

    • Starting Date: This information shows the create machine time. Start your service time until your end time.

    • End Date: This information shows the ending service time.

    • Datacenter: This information shows which data center keeps your data.

    • Customer Account: Cloud owner name

    • Status: This information indicates the status of the cloud.

  2. Check your container billing metrics for using the service (Figure 5-3).

    A439975_1_En_5_Fig3_HTML.jpg
    Figure 5-3. Metrics for billing
  3. Click Open Service Console on Overview and Welcome to Container Cloud Service (Figure 5-4).

    A439975_1_En_5_Fig4_HTML.jpg
    Figure 5-4. Services
  4. Check your container service status in the Services section (Figure 5-5).

    A439975_1_En_5_Fig5_HTML.jpg
    Figure 5-5. Checking container service status
  5. Check your container service activity in the Activity section (Figure 5-6).

    A439975_1_En_5_Fig6_HTML.jpg
    Figure 5-6. Monitoring activity
  6. Create a container service with the Create Service button (Figure 5-7).

    A439975_1_En_5_Fig7_HTML.jpg
    Figure 5-7. Services
  7. Enter the public key from the keys generated. (Chapter 2 explains how to generate SSH.) (See Figure 5-8.)

    A439975_1_En_5_Fig8_HTML.jpg
    Figure 5-8. SSH
  8. Specify the admin password, compute shape, and data volume (Figure 5-9).

    • Admin password: This password specifies the administrator password for accessing the service.

    • Compute Shape: This section specifies CPU and RAM sizes.

    • Master node: This node is for managing worker nodes and orchestrations nodes.

    • Worker node: This node is responsible for different resource pool managing requests.

    A439975_1_En_5_Fig9_HTML.jpg
    Figure 5-9. Details
  9. Check selection summary at top right (Figure 5-10).

    A439975_1_En_5_Fig10_HTML.jpg
    Figure 5-10. Selection Summary
  10. Check your service to confirm your configurations (Figure 5-11).

    A439975_1_En_5_Fig11_HTML.jpg
    Figure 5-11. Confirmation of configurations
  11. Check your machine status (Figure 5-12).

    A439975_1_En_5_Fig12_HTML.jpg
    Figure 5-12. Services status
  12. Finally, the created service is ready to use (Figure 5-13).

    A439975_1_En_5_Fig13_HTML.jpg
    Figure 5-13. Service overview
  13. Log in with your credentials (Figure 5-14).

    • Username: This service provides a default username, which is admin.

    • Password: The password you specify.

    A439975_1_En_5_Fig14_HTML.jpg
    Figure 5-14. Panel
  14. Check your service status from the dashboard (Figure 5-15).

    A439975_1_En_5_Fig15_HTML.jpg
    Figure 5-15. Dashboard
  15. First, add the new registry by clicking the New Registry button (Figure 5-16).

    A439975_1_En_5_Fig16_HTML.jpg
    Figure 5-16. Registries
  16. Fill in the information for registering the system (Figure 5-17).

    • URL: A URL can be added from the Docker account or a specific registry domain.

    • Username: Required login information

    • Password: Required login information

    • Email: Registered e-mail address

    A439975_1_En_5_Fig17_HTML.jpg
    Figure 5-17. Edit Registry
  17. Click Resource Pools and create a pool for Docker (Figure 5-18).

    A439975_1_En_5_Fig18_HTML.jpg
    Figure 5-18. Pool
  18. Enter your details for building a new pool, which creates resources for deploying services across different hosts (Figure 5-19).

    A439975_1_En_5_Fig19_HTML.jpg
    Figure 5-19. New Pool
  19. Click Move Hosts under Resource Pools (Figure 5-20).

    A439975_1_En_5_Fig20_HTML.jpg
    Figure 5-20. Resource Pools
  20. Select a hostname and click Add Selected Hosts (Figure 5-21).

    A439975_1_En_5_Fig21_HTML.jpg
    Figure 5-21. Hosts
  21. Finally, specify hostname in Pools (Figure 5-22).

    A439975_1_En_5_Fig22_HTML.jpg
    Figure 5-22. Pools
  22. Click the Services section to deploy the service. This service shows all the preconfigured services that use the Oracle Container Cloud Service container console (Figure 5-23).

    A439975_1_En_5_Fig23_HTML.jpg
    Figure 5-23. Service
  23. Fill in the blanks with information, especially the service name and Docker run command for starting the service. Oracle Container Cloud works with different methods, such as Docker RUN, Docker Compose(YAML), and User Interface views (Figure 5-24).

    A439975_1_En_5_Fig24_HTML.jpg
    Figure 5-24. Service Editor
  24. Click the Deploy button (Figure 5-25).

    A439975_1_En_5_Fig25_HTML.jpg
    Figure 5-25. Deploy button
  25. The system asks the deployment resource pool for this sample and selects your built resource pool (Figure 5-26).

    A439975_1_En_5_Fig26_HTML.jpg
    Figure 5-26. Example
  26. Finally, click the Deploy button (Figure 5-27).

    A439975_1_En_5_Fig27_HTML.jpg
    Figure 5-27. Deploy button

Summary

In this chapter, I explained what the container service is and how to use it. You’ve seen how to facilitate interactions between Oracle and Docker. Oracle supports new-generation startup technologies, and it has built new cloud applications, using the Docker architecture. As you know, Oracle Container Cloud supports management and configuration of the Docker system, and Oracle also harnesses the power of open source technology. Oracle tries to accommodate other open source technologies and will continue to support open source software and software development environments.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.249.198