Book Image

Software Architecture with Spring 5.0

By : René Enríquez, Alberto Salazar
Book Image

Software Architecture with Spring 5.0

By: René Enríquez, Alberto Salazar

Overview of this book

Spring 5 and its ecosystem can be used to build robust architectures effectively. Software architecture is the underlying piece that helps us accomplish our business goals whilst supporting the features that a product demands. This book explains in detail how to choose the right architecture and apply best practices during your software development cycle to avoid technical debt and support every business requirement. Choosing the right architecture model to support your business requirements is one of the key decisions you need to take when a new product is being created from scratch or is being refactored to support new business demands. This book gives you insights into the most common architectural models and guides you when and where they can be used. During this journey, you’ll see cutting-edge technologies surrounding the Spring products, and understand how to use agile techniques such as DevOps and continuous delivery to take your software to production effectively. By the end of this book, you’ll not only know the ins and outs of Spring, but also be able to make critical design decisions that surpass your clients’ expectations.
Table of Contents (21 chapters)
Title Page
Copyright and Credits
Packt Upsell
Contributors
Preface
Index

Containerizing applications


A dockerized application is a basic deployable unit that can be integrated later as part of your whole ecosystem of applications. When you're dockerizing your application, you'll have to create your own Dockerfile with all the required instructions to make your application work.

As we mentioned in the last section, we can create a container using an existing base image with the FROM command. You can also copy the Dockerfile content of the base image, but this practice is highly discouraged because it does not make sense to duplicate the code that was already written when the image was created.

It is strongly recommended that you find official images in DockerHub. Since the Dockerfile is available, you should always read it in order to avoid security issues and fully understand how the image works.

Before dockerizing an application, it is important that you make your system use environmental variables instead of configuration files. In this way, you can create images...