Implementing an application that runs on an ACI

In this first part of this demonstration, we are going to create a simple application that can be packaged inside a Docker container. To create a Dockerfile for this application, you need to install Docker Desktop. For the installation URL, refer to the Technical requirements section, which can be found at the beginning of this chapter. To create the app, follow these steps:

  1. Open Visual Studio and add a new project.
  2. In the new project wizard, select the .NET Core Console App and click Next.
  3. Add the following values and create a new project:
    1. Project name: PacktACIApp
    2. Location: Pick a location
    3. Solution name: PacktACIApp
  4. Click Next.
  5. On the next screen, select Web Application and click Create.
  6. We are going to use the default web application, so no code changes are required.
  7. Press F5 to run the application. The output will look as follows:

Web app output

In this section, we created an application that can be packaged inside a Docker container. We will continue with this in the next section.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset