microsoft/Windows-Containers

Tutorial: Web Development on Windows Containers

ntrappe-msft opened this issue · 1 comments

Feature Request

Create a tutorial to introduce novices to the idea of Windows Containers. Use web development to showcase the benefit of containers for security, portability, consistency, and scalability.

Considerations

Environment

  1. Check that they have a compatible environment (e.g., device, OS).
  2. Install necessary tools and package managers.
  3. Verify everything looks good (e.g., versions, reachable).

Base Image

  1. Explain what the base image is.
  2. Pull the base image.
  3. Verify that it works.

Web App

  1. Understand the web app code.
  2. Build the app.
  3. Check the app with localhost.

Dockerfile

  1. Understand the Dockerfile.
  2. Build the Dockerfile.
  3. Check that the image was created.

Run Container

  1. Start up the container from new image.
  2. Check files are inside.
  3. Expose port and check with localhost.

Additional Steps

  1. What they can do next.

Questions

  • Should we provide a verification script they can run to validate the following?:
    • Compatible device, OS, tools, runtimes, package managers
    • Image was created and can be used
    • Web app code is still stable and passes tests
  • What should the example webapp demonstrate?
    • Windows Container statistics (e.g., usage, start up times, images)
    • How to get support or troubleshoot
    • New features/things to try

Modifying to use inquirer.js to provide following functionality:

  • users can select their web dev framework
  • code is automatically populated vs copy & paste
  • validation script is automatically running
  • fastest way to containerize web app