If you are coming here from part 2 of the series you will recognize the setup here.
Most systems are composed of multiple applications. An orchestration mechanism is needed to start the applications when needed and in the correct order. A typical modern application may consist of a database such as MongoDB and a web service implemented using NodeJS. The web application may provide a number of API services accessible via a http ReST interface. Testing those services will require test tools that can send requests to the http interface and evaluate the results returned such as http status codes and response content.
In our example today we are going to discuss how to create a simple web server (IIS) and run it in a container . We will also inject some of our custom HTML for the example. The prerequisite for this lab would be to have a Windows 2016 server running Docker.
Linux based apps can use MongoDB, MySQL or PostgreSQL in the form of Docker Linux Containers. Windows-based SQL Server containers are now supported with Windows Server 2016. Let's look at how you can create and connect to a MSSQL container in Azure and Windows.
Once we have created the Windows 2016 server, we can logg into the Azure Portal and connect to the instance via RDP. For our example, we will be creating a folder structure where at the root of C:/, there is a folder called “dockerlabs”. Under the c:/dockerlabs folder, we will also create the folder “env”.In this blog post, we will be outlining the concept “Dockerfile” and create a simple example to highlight the difference between container images and instances. Of course, before we first need to make sure that we are using a Windows 2016 Server with containers feature enabled. These are the steps shown in my previous article - "Deploying a Simple Windows Container in Azure".
With the release of Windows Server 2016, Microsoft has expanded its integration with Docker to include running Docker Windows Containers. As I mentioned in my previous article, this now means that there we can now run both Docker FOR Windows and Docker ON Windows.
There are several prerequisites for installing Docker for Windows. Fortunately, Microsoft Azure already has a Windows Server 2016 with a containers template that will satisfy those requirements for you. We will go through an exercise to demonstrate what a general implementation of Docker for Windows would look like if you elected to use Azure for your computing needs.
Subscribing to our blog is a great way to stay up to date with the latest information from Vizuri, as well as our strategic partners. We focus on providing a range of content that is practically useful and relevant from both a technical and business perspective.