Book Image

Developing with Docker

By : Jaroslaw Krochmalski, Jarosław Krochmalski
Book Image

Developing with Docker

By: Jaroslaw Krochmalski, Jarosław Krochmalski

Overview of this book

This fast-paced practical guide will get you up and running with Docker. Using Docker, you will be able to build, ship, and run many distributed applications in real time. You will start with quickly installing Docker and start working with images and containers. We will present different types of containers and their applications, and show you how to find and build images. You will learn how you can contribute to the image repository by publishing different images. This will familiarize you with the image building process and you will be able to successfully run your programs within containers. By finishing this book, you will be well equipped in deploying your applications using Docker and will have a clear understanding of concepts, techniques, and practical methods to get it running in production systems.
Table of Contents (16 chapters)
Developing with Docker
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface

Packaging Angular.js application


In this example, we are going to create a simple Angular.js application which runs on node.js runtime. For the purpose of clarity of example, we are not going to introduce any tests. As it was the case with SpringBoot application, our Angular.js application will be as simple and tiny as possible. We are going to understand how to containerize it instead of diving into Angular.js development. Of course, you are more than welcome to get to know Angular.js if you haven't done this already; it's a wonderful technology. Before you start, you will need to have node.js installed. You can get the installer from node.js website at https://nodejs.org/en/.

First, let's divide the structure of our application in two parts. The first one will be frontend, will all the static resources such as Java Scripts and HTML files. The second one will be node.js backed, actually serving our frontend files and responding to HTTP request. The folder structure, having the angular-docker...