Windows-Containers icon indicating copy to clipboard operation
Windows-Containers copied to clipboard

Tutorial: Web Development on Windows Containers

Open ntrappe-msft opened this issue 2 years ago • 2 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

ntrappe-msft avatar Apr 04 '24 23:04 ntrappe-msft

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

ntrappe-msft avatar Apr 16 '24 22:04 ntrappe-msft

This issue has been open for 90 days with no updates. @ntrappe-msft, please provide an update or close this issue.