Deploying microservices in Docker
This section will operationalize our learning by showcasing how to build containers for our BrownField PSS microservices.
Note
The full source code of this chapter is available under the Chapter 8
project in the code files. Copy chapter7.configserver
, chapter7.eurekaserver
, chapter7.search
, chapter7.search-apigateway
, and chapter7.website
into a new STS workspace and rename them chapter8.*
.
Perform the following steps to build Docker containers for BrownField PSS microservices:
Install Docker from the official Docker site at https://www.docker.com.
Follow the Get Started link for the download and installation instructions based on the operating system of choice. Once installed, use the following command to verify the installation:
$docker –version Docker version 1.10.1, build 9e83765
In this section, we will take a look at how to dockerize the Search (
chapter8.search
) microservice, the Search API Gateway (chapter8.search-apigateway
) microservice, and the Website...