Skip to content

xtophs/windows-container-webforms-sqlexpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASP.NET WebForms app running in a Windows Server Container

Overview

The app is V1.0 an old WebForms app from an ASP.NET starter kit called The Beer House. The name was appealing.

The app is running on .NET Framework 2.0. No code changes were necessary to run the app inside a windows container. The only change between the original code and this repo is the connection string to point to the local SQL Express database inside the container. This could just as easily point to Azure SQL DB, but I wanted to demonstrating an app as-is.

Helpful Info

Lauch the container

docker run -p 8000:8000 xtoph/beerhouse:1.0

get the container id

docker ps --filter image=xtoph/beerhouse:1.0 -q
<container-id>

get the IP address for the container

docker inspect <container-id>

then point the browser to `http://:8000

SQL Background

To only run SQL in the base container:

docker run -p 8000:8000 windows-container-webforms-sqlexpress:latest

Credentials for the The SQLExpress database inside the container:

sa
P@ssword

Base container by @samslaider

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published