Book Image

Mastering Spring Boot 2.0

By : Dinesh Rajput
Book Image

Mastering Spring Boot 2.0

By: Dinesh Rajput

Overview of this book

Spring is one of the best frameworks on the market for developing web, enterprise, and cloud ready software. Spring Boot simplifies the building of complex software dramatically by reducing the amount of boilerplate code, and by providing production-ready features and a simple deployment model. This book will address the challenges related to power that come with Spring Boot's great configurability and flexibility. You will understand how Spring Boot configuration works under the hood, how to overwrite default configurations, and how to use advanced techniques to prepare Spring Boot applications to work in production. This book will also introduce readers to a relatively new topic in the Spring ecosystem – cloud native patterns, reactive programming, and applications. Get up to speed with microservices with Spring Boot and Spring Cloud. Each chapter aims to solve a specific problem or teach you a useful skillset. By the end of this book, you will be proficient in building and deploying your Spring Boot application.
Table of Contents (23 chapters)
Title Page
Copyright and Credits
Dedication
Packt Upsell
Contributors
Preface
Index

Installing Docker on AWS EC2


You can easily install Docker on the AWS EC2 instance. Let's connect the EC2 instance using PuTTY. In this section, we will install Docker on the EC2 instance. Follow these steps to install Docker:

  1. Let's run the EC2 instance and generate a private key using PuTTYgen. You have to load the dineshonjava.pem file that we generated in the previous section. It will generate the dineshonjava.ppk file. It will be used to connect the EC2 instance using Putty.
  1. Open Putty and connect to the EC2 instance. In Host Name, use Public DNS to connect this EC2 instance and port 22. Also, load the private key file for authentication. In the category section, go to Connection | SSH | Auth and upload the private key file for authentication, as shown in the following screenshot:
  1. Upload a private key file, dineshonjava.ppk, and click on the Open button. It will connect to the AWS EC2 instance, as shown in the following screenshot:

As you can see in the preceding screenshot, we have connected...