Microservices on the cloud

One of the capabilities mentioned in the microservices capability model is the use of the cloud infrastructure for microservices. Earlier in this chapter, we also explored the necessity of using the cloud for microservices deployments. So far, we have not deployed anything to the cloud. As we have eight microservices in total—Config-server, Eureka-server, Turbine, RabbitMQ, Elasticsearch, Kibana, and Logstash—in our overall BrownField PSS microservices ecosystem, it is hard to run all of them on the local machine.

In the rest of this book, we will operate using AWS as the cloud platform to deploy BrownField PSS microservices.

Installing Docker on AWS EC2

In this section, we will install Docker on the EC2 instance.

This example assumes that readers are familiar with AWS and an account is already created on AWS.

Perform the following steps to set up Docker on EC2:

  1. Launch a new EC2 instance. In this case, if we have to run all the instances together, we may need a large instance. The example uses t2.large.

    In this example, the following Ubuntu AMI image is used: ubuntu-trusty-14.04-amd64-server-20160114.5 (ami-fce3c696).

  2. Connect to the EC2 instance and run the following commands:
    sudo apt-get update 
    sudo apt-get install docker.io
    
  3. The preceding command will install Docker on an EC2 instance. Verify the installation with the following command:
    docker version
    
..................Content has been hidden....................

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