├── .gitignore
├── Instructions
├── ServiceFabricMesh
│ ├── 1buildacontainer.md
│ ├── 2createacr.md
│ ├── 3meshhelloworld.md
│ ├── 4createappvs.md
│ ├── 5addservice.md
│ └── README.md
└── ServiceFabricNative.md
├── LICENSE
├── README.md
└── eShopLegacyWebFormsSolution
├── eShopLegacyWebForms.sln
└── src
└── eShopLegacyWebForms
├── About.aspx
├── About.aspx.cs
├── About.aspx.designer.cs
├── App_Start
├── BundleConfig.cs
└── RouteConfig.cs
├── ApplicationInsights.config
├── Bundle.config
├── Catalog
├── Create.aspx
├── Create.aspx.cs
├── Create.aspx.designer.cs
├── Delete.aspx
├── Delete.aspx.cs
├── Delete.aspx.designer.cs
├── Details.aspx
├── Details.aspx.cs
├── Details.aspx.designer.cs
├── Edit.aspx
├── Edit.aspx.cs
└── Edit.aspx.designer.cs
├── Contact.aspx
├── Contact.aspx.cs
├── Contact.aspx.designer.cs
├── Content
├── base.css
├── bootstrap.css
├── bootstrap.min.css
├── custom.css
└── site.css
├── Default.aspx
├── Default.aspx.cs
├── Default.aspx.designer.cs
├── Global.asax
├── Global.asax.cs
├── Models
├── CatalogBrand.cs
├── CatalogDBContext.cs
├── CatalogItem.cs
├── CatalogItemHiLoGenerator.cs
├── CatalogType.cs
└── Infrastructure
│ ├── CatalogDBInitializer.cs
│ ├── PreconfiguredData.cs
│ ├── dbo.catalog_brand_hilo.Sequence.sql
│ ├── dbo.catalog_hilo.Sequence.sql
│ └── dbo.catalog_type_hilo.Sequence.sql
├── Modules
└── ApplicationModule.cs
├── Pics
├── 1.png
├── 10.png
├── 11.png
├── 12.png
├── 2.png
├── 3.png
├── 4.png
├── 5.png
├── 6.png
├── 7.png
├── 8.png
├── 9.png
└── dummy.png
├── Properties
└── AssemblyInfo.cs
├── Scripts
├── WebForms
│ ├── DetailsView.js
│ ├── Focus.js
│ ├── GridView.js
│ ├── MSAjax
│ │ ├── MicrosoftAjax.js
│ │ ├── MicrosoftAjaxApplicationServices.js
│ │ ├── MicrosoftAjaxComponentModel.js
│ │ ├── MicrosoftAjaxCore.js
│ │ ├── MicrosoftAjaxGlobalization.js
│ │ ├── MicrosoftAjaxHistory.js
│ │ ├── MicrosoftAjaxNetwork.js
│ │ ├── MicrosoftAjaxSerialization.js
│ │ ├── MicrosoftAjaxTimer.js
│ │ ├── MicrosoftAjaxWebForms.js
│ │ └── MicrosoftAjaxWebServices.js
│ ├── Menu.js
│ ├── MenuStandards.js
│ ├── SmartNav.js
│ ├── TreeView.js
│ ├── WebForms.js
│ ├── WebParts.js
│ └── WebUIValidation.js
├── bootstrap.js
├── bootstrap.min.js
├── jquery-1.10.2.intellisense.js
├── jquery-1.10.2.js
├── jquery-1.10.2.min.js
├── jquery-1.10.2.min.map
├── modernizr-2.6.2.js
├── respond.js
└── respond.min.js
├── Services
├── CatalogService.cs
├── CatalogServiceMock.cs
└── ICatalogService.cs
├── Setup
├── CatalogBrands.csv
├── CatalogItems.csv
├── CatalogItems.zip
└── CatalogTypes.csv
├── Site.Master
├── Site.Master.cs
├── Site.Master.designer.cs
├── Site.Mobile.Master
├── Site.Mobile.Master.cs
├── Site.Mobile.Master.designer.cs
├── ViewModel
└── PaginatedItemsViewModel.cs
├── ViewSwitcher.ascx
├── ViewSwitcher.ascx.cs
├── ViewSwitcher.ascx.designer.cs
├── Web.Debug.config
├── Web.Release.config
├── Web.config
├── eShopLegacyWebForms.csproj
├── favicon.ico
├── fonts
├── Montserrat-Bold.eot
├── Montserrat-Bold.svg
├── Montserrat-Bold.ttf
├── Montserrat-Bold.woff
├── Montserrat-Bold.woff2
├── Montserrat-Regular.eot
├── Montserrat-Regular.svg
├── Montserrat-Regular.ttf
├── Montserrat-Regular.woff
└── Montserrat-Regular.woff2
├── images
├── brand.png
├── brand_dark.png
├── main_banner.png
└── main_footer_text.png
└── packages.config
/.gitignore:
--------------------------------------------------------------------------------
1 | ## Ignore Visual Studio temporary files, build results, and
2 | ## files generated by popular Visual Studio add-ons.
3 | ##
4 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5 |
6 | # User-specific files
7 | *.suo
8 | *.user
9 | *.userosscache
10 | *.sln.docstates
11 |
12 | # User-specific files (MonoDevelop/Xamarin Studio)
13 | *.userprefs
14 |
15 | # Build results
16 | [Dd]ebug/
17 | [Dd]ebugPublic/
18 | [Rr]elease/
19 | [Rr]eleases/
20 | x64/
21 | x86/
22 | bld/
23 | [Bb]in/
24 | [Oo]bj/
25 | [Ll]og/
26 |
27 | # Visual Studio 2015 cache/options directory
28 | .vs/
29 | # Uncomment if you have tasks that create the project's static files in wwwroot
30 | #wwwroot/
31 |
32 | # MSTest test Results
33 | [Tt]est[Rr]esult*/
34 | [Bb]uild[Ll]og.*
35 |
36 | # NUNIT
37 | *.VisualState.xml
38 | TestResult.xml
39 |
40 | # Build Results of an ATL Project
41 | [Dd]ebugPS/
42 | [Rr]eleasePS/
43 | dlldata.c
44 |
45 | # .NET Core
46 | project.lock.json
47 | project.fragment.lock.json
48 | artifacts/
49 | **/Properties/launchSettings.json
50 |
51 | *_i.c
52 | *_p.c
53 | *_i.h
54 | *.ilk
55 | *.meta
56 | *.obj
57 | *.pch
58 | *.pdb
59 | *.pgc
60 | *.pgd
61 | *.rsp
62 | *.sbr
63 | *.tlb
64 | *.tli
65 | *.tlh
66 | *.tmp
67 | *.tmp_proj
68 | *.log
69 | *.vspscc
70 | *.vssscc
71 | .builds
72 | *.pidb
73 | *.svclog
74 | *.scc
75 |
76 | # Chutzpah Test files
77 | _Chutzpah*
78 |
79 | # Visual C++ cache files
80 | ipch/
81 | *.aps
82 | *.ncb
83 | *.opendb
84 | *.opensdf
85 | *.sdf
86 | *.cachefile
87 | *.VC.db
88 | *.VC.VC.opendb
89 |
90 | # Visual Studio profiler
91 | *.psess
92 | *.vsp
93 | *.vspx
94 | *.sap
95 |
96 | # TFS 2012 Local Workspace
97 | $tf/
98 |
99 | # Guidance Automation Toolkit
100 | *.gpState
101 |
102 | # ReSharper is a .NET coding add-in
103 | _ReSharper*/
104 | *.[Rr]e[Ss]harper
105 | *.DotSettings.user
106 |
107 | # JustCode is a .NET coding add-in
108 | .JustCode
109 |
110 | # TeamCity is a build add-in
111 | _TeamCity*
112 |
113 | # DotCover is a Code Coverage Tool
114 | *.dotCover
115 |
116 | # Visual Studio code coverage results
117 | *.coverage
118 | *.coveragexml
119 |
120 | # NCrunch
121 | _NCrunch_*
122 | .*crunch*.local.xml
123 | nCrunchTemp_*
124 |
125 | # MightyMoose
126 | *.mm.*
127 | AutoTest.Net/
128 |
129 | # Web workbench (sass)
130 | .sass-cache/
131 |
132 | # Installshield output folder
133 | [Ee]xpress/
134 |
135 | # DocProject is a documentation generator add-in
136 | DocProject/buildhelp/
137 | DocProject/Help/*.HxT
138 | DocProject/Help/*.HxC
139 | DocProject/Help/*.hhc
140 | DocProject/Help/*.hhk
141 | DocProject/Help/*.hhp
142 | DocProject/Help/Html2
143 | DocProject/Help/html
144 |
145 | # Click-Once directory
146 | publish/
147 |
148 | # Publish Web Output
149 | *.[Pp]ublish.xml
150 | *.azurePubxml
151 | # TODO: Comment the next line if you want to checkin your web deploy settings
152 | # but database connection strings (with potential passwords) will be unencrypted
153 | *.pubxml
154 | *.publishproj
155 |
156 | # Microsoft Azure Web App publish settings. Comment the next line if you want to
157 | # checkin your Azure Web App publish settings, but sensitive information contained
158 | # in these scripts will be unencrypted
159 | PublishScripts/
160 |
161 | # NuGet Packages
162 | *.nupkg
163 | # The packages folder can be ignored because of Package Restore
164 | **/packages/*
165 | # except build/, which is used as an MSBuild target.
166 | !**/packages/build/
167 | # Uncomment if necessary however generally it will be regenerated when needed
168 | #!**/packages/repositories.config
169 | # NuGet v3's project.json files produces more ignorable files
170 | *.nuget.props
171 | *.nuget.targets
172 |
173 | # Microsoft Azure Build Output
174 | csx/
175 | *.build.csdef
176 |
177 | # Microsoft Azure Emulator
178 | ecf/
179 | rcf/
180 |
181 | # Windows Store app package directories and files
182 | AppPackages/
183 | BundleArtifacts/
184 | Package.StoreAssociation.xml
185 | _pkginfo.txt
186 |
187 | # Visual Studio cache files
188 | # files ending in .cache can be ignored
189 | *.[Cc]ache
190 | # but keep track of directories ending in .cache
191 | !*.[Cc]ache/
192 |
193 | # Others
194 | ClientBin/
195 | ~$*
196 | *~
197 | *.dbmdl
198 | *.dbproj.schemaview
199 | *.jfm
200 | *.pfx
201 | *.publishsettings
202 | orleans.codegen.cs
203 |
204 | # Since there are multiple workflows, uncomment next line to ignore bower_components
205 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
206 | #bower_components/
207 |
208 | # RIA/Silverlight projects
209 | Generated_Code/
210 |
211 | # Backup & report files from converting an old project file
212 | # to a newer Visual Studio version. Backup files are not needed,
213 | # because we have git ;-)
214 | _UpgradeReport_Files/
215 | Backup*/
216 | UpgradeLog*.XML
217 | UpgradeLog*.htm
218 |
219 | # SQL Server files
220 | *.mdf
221 | *.ldf
222 | *.ndf
223 |
224 | # Business Intelligence projects
225 | *.rdl.data
226 | *.bim.layout
227 | *.bim_*.settings
228 |
229 | # Microsoft Fakes
230 | FakesAssemblies/
231 |
232 | # GhostDoc plugin setting file
233 | *.GhostDoc.xml
234 |
235 | # Node.js Tools for Visual Studio
236 | .ntvs_analysis.dat
237 | node_modules/
238 |
239 | # Typescript v1 declaration files
240 | typings/
241 |
242 | # Visual Studio 6 build log
243 | *.plg
244 |
245 | # Visual Studio 6 workspace options file
246 | *.opt
247 |
248 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
249 | *.vbw
250 |
251 | # Visual Studio LightSwitch build output
252 | **/*.HTMLClient/GeneratedArtifacts
253 | **/*.DesktopClient/GeneratedArtifacts
254 | **/*.DesktopClient/ModelManifest.xml
255 | **/*.Server/GeneratedArtifacts
256 | **/*.Server/ModelManifest.xml
257 | _Pvt_Extensions
258 |
259 | # Paket dependency manager
260 | .paket/paket.exe
261 | paket-files/
262 |
263 | # FAKE - F# Make
264 | .fake/
265 |
266 | # JetBrains Rider
267 | .idea/
268 | *.sln.iml
269 |
270 | # CodeRush
271 | .cr/
272 |
273 | # Python Tools for Visual Studio (PTVS)
274 | __pycache__/
275 | *.pyc
276 |
277 | # Cake - Uncomment if you are using it
278 | # tools/**
279 | # !tools/packages.config
280 |
281 | # Telerik's JustMock configuration file
282 | *.jmconfig
283 |
284 | # BizTalk build output
285 | *.btp.cs
286 | *.btm.cs
287 | *.odx.cs
288 | *.xsd.cs
289 |
--------------------------------------------------------------------------------
/Instructions/ServiceFabricMesh/1buildacontainer.md:
--------------------------------------------------------------------------------
1 |
2 | # Build a Docker container for Windows, using an existing ASP.NET web application
3 |
4 | **Goal:** The goal of this section is to have an ASP.NET application running in a Docker container on your Windows 10 developer machine.
5 |
6 | ## Process
7 |
8 | | **Step** | **Procedure** |
9 | | ---------------------------------- | ------------------------------------------------------------------------------------------------------ |
10 | | Run the application | Run the existing ASP.NET application to verify its functionality, using Visual Studio and IIS Express. |
11 | | Create a Docker container | Create a docker container. |
12 | | Run the application in a container | Run and debug the application running in a container, using Visual Studio. |
13 |
14 | ## Run the Application
15 |
16 | In this section we will test the ASP.NET application using Visual Studio
17 | and IIS
18 | Express.
19 |
20 | | **Step** | **Action** | **Result** |
21 | | -------- | ---------- | ---------- |
22 | | 1 | Open the solution **eShopLegacyWebForms.sln**, which you will find in the **\\Lab\\eShopLegacyWebFormsSolution** folder on the desktop.
**Note**
Visual Studio will ask for login, choose **Not now** and choose a theme. | Visual Studio will open, and you will see one project with an ASP.NET MVC application in Visual Studio. |
23 | | 2 | Expand the **Default.aspx** file in the **Solution Explorer**, then open the **Default.aspx.cs** file in Visual Studio and set a breakpoint at line **25**. | This will break the application once a browser requests the home page. |
24 | | 3 | Change the **Solution Configuration** to **Debug** and press **F5** to start debugging the application. | The application will now build, and Edge will open with the application when it’s ready. |
25 | | 4 | When the breakpoint is hit, click **F5** to continue code execution. | The applications home page shows up in Edge. |
26 | | 5 | The application simulates a simple web shop administrative interface. Feel free to browse around the application to see details of the various products and some of the functionality. | **Note:** The application is setup to use mock data loaded from source files, so all changes will be reverted once the debug session closes. |
27 | | 6 | Press **Shift+F5** to stop the debugging | Debugging stops. |
28 |
29 | ### Completion
30 |
31 | You’ve now complete debugging an ASP.NET application using Visual Studio
32 | and IIS Express.
33 |
34 | ## Create a Docker container
35 |
36 | In this section we will create a docker container image to run the
37 | ASP.NET application eShopLegacyWebForms, which requires Internet
38 | Information Server (IIS) to be running in the container.
39 |
40 | | **Step** | **Action** | **Result** |
41 | | -------- | ---------- | ---------- |
42 | | 1 | Publish eShopLegacyWebForms application to a folder from Visual Studio by:
1. **Right-Clicking** the **eShopLegacyWebForms** project and choose **Publish**
2. Choose **Folder**
3. Click **Publish** | The web application is now published to a folder and ready to be deployed in to a container image. |
43 | | 2 | Open **PowerShell** and change directory to **“C:\\Users\\Administrator\\Desktop\\
Lab\\eShopLegacyWebFormsSolution\\src\\eShopLegacyWebForms”** | |
44 | | 3|Create a new DockerFile (no file extension) and open it in Notepad, by running the following commands:
1. New-Item Dockerfile
2. Notepad Dockerfile
3. A blank Notepad will show up.||
45 | | 4| Add the following content:
FROM microsoft/aspnet:4.7.1-windowsservercore-ltsc2016
COPY bin/Release/Publish /inetpub/wwwroot|
46 | | 5 | **Save and close** the file| The Dockerfile contains instructions for the docker engine on how to build a container, when running the “docker build” command in this directory.|
47 | | 6 | In PowerShell run the command
**“docker build . -t eshopweb:1.0”**
in the directory **“C:\\Users\\Administrator\\Desktop\\
Lab\\eShopLegacyWebFormsSolution\\src\\eShopLegacyWebForms”** | This command will tell the Docker host to build a container image and tag it eshopweb:1.0, using the instructions in the Dockerfile. **Note:** Make sure Docker is running and on Windows containers mode
48 | | 7 | Run the command **docker images** to see the container images cached on your machine | You should see an image with the repository: eshopweb and the tag: 1.0. |
49 |
50 | ### Completion
51 |
52 | You’ve now published the ASP.NET application eShopLegacyWebForms and
53 | built a docker container image with the application.
54 |
55 | ## Run the application in a container
56 |
57 |
Step | 61 |Action | 62 |Result | 63 |
---|---|---|
1 | 68 |Create an instance of the container and run it, by running the following command in PowerShell: 69 |docker run -p 80:80 -d --name eshoptest eshopweb:1.0 |
70 | This creates and starts a container, exposing port 80 on the local host. | 71 |
2 | 74 |Once the command return, open Edge and browse to http://localhost. | 75 |You should now see the application being served from the container. | 76 |
3 | 79 |Stop the container by running the command docker stop eshoptest in PowerShell | 80 |This stops the container and persists the state and configuration. You can then restart the container at a later point. | 81 |
4 | 84 |Remove the container by running the command docker rm eshoptest in PowerShell | 85 |This command will remove the container state and configuration. We will do this as in the next step we create a new instance of the container with a different configuration. | 86 |
5 | 89 |The application has a feature to add an environment variable to the front-page title. 90 |Create a new configuration of the container image, by running the following command in PowerShell: 91 |docker run -p 80:80 -d --name eshoptest -e eShopTitle=MyTitle eshopweb:1.0 92 |Note: 93 |This feature is implemented in the Site.Master.cs file. |
94 | Environment variables is a common way of passing configurations to containers. The -e parameter is used with docker to pass environment variables to containers. | 95 |
6 | 98 |Once the command returns, open Edge and browse to http://localhost. | 99 |You should now see the application title using your environment variable. | 100 |
7 | 103 |You can run commands inside a running container’. Output the environment variables from the container by running the following commands in PowerShell: 104 |docker exec eshoptest cmd.exe /C SET |
105 | You will see all the environment variables in the container being output. | 106 |
8 | 109 |Let’s stop and remove the container: 110 |
|
114 | 115 | |
Step | 15 |Procedure | 16 |
---|---|
Create a container registry | 21 |Create a private container registry using the Azure Container Registry service. 22 |Note: This requires an Azure account |
23 |
Build, tag and push the container image | 26 |Create a production ready container image and push it to the registry. | 27 |
Pull the container image and run it locally | 30 |Pull the production ready image from the container registry and run it. | 31 |
Step | 44 |Action | 45 |Result | 46 |
---|---|---|
1 | 51 |Browse to https://shell.azure.com/ and sign-in to your Azure subscription. | 52 |If you do not have one, you can get a trial subscription here: https://azure.microsoft.com/en-us/free/ | 53 |
2 | 56 |Create a new resource group: 57 |az group create --name [insert rg name] --location eastus 58 |Note: Substitute the [insert rg name] with the name for your Resource Group |
59 | az will output information about the resource group. | 60 |
3 | 63 |Create a container registry in that resource group: 64 |az acr create --resource-group [insert rg name] --name [insert acr name] --sku Basic --admin-enabled 65 |Note: Substitute the [insert acr name] with the name for your registry name |
66 | az will output the information about the newly created acr. | 67 |
4 | 70 |Retrieve the credentials to sign-in to the container registry, and note these to be used later: 71 |az acr credential show --name [insert acr name] 72 |Note: Substitute the [insert acr name] with the name for your registry name |
73 | az will output the passwords and login names for the registry, which we will use later in the lab. | 74 |
Step | 94 |Action | 95 |Result | 96 |
---|---|---|
1 | 101 |Open PowerShell and run the following command to tag the image: 102 |docker tag eshopweb:1.0 [insert acr name].azurecr.io/eshopweb:1.0 103 |Note: 104 |The registry part of the container image tag should match the name of your container registry. |
105 | This command creates a container image tag with the container registry name and version of the container image. | 106 |
2 | 109 |Run the following command to login to your container registry: 110 |docker login [insert acr name].azurecr.io 111 |Note: 112 |To retrieve the login server, username and password, see above section |
113 | 114 | |
3 | 117 |Push the container image to your registry: 118 |docker push [insert acr name].azurecr.io/eshopweb:1.0 |
119 | This will start uploading the container image layers to you Azure Container Registry. | 120 |
MyEnvVar value: @Environment.GetEnvironmentVariable("MyEnvVar")
70 | ``` 71 | 72 | 1. Press **F5** to debug the application, once the web site comes up, go to the **About** page and you should see the value from the environment variable show up. 73 | 74 | 1. Without stopping the debugger, you can make changes to the About.cshtml file and reload the browser to see you changes. There is no need to redeploy the container and app to quickly see changes that do not require recompiling the code. 75 | 76 | 1. Stop the debug session by pressing **Shift+F5** 77 | 78 | ## Deploy the new version to Azure Service Fabric Mesh 79 | 80 | 1. To publish the updated application to Service Fabric Mesh in Azure, **Right-click** the Service Fabric Mesh application project and choose **Publish** 81 | 82 | 1. The publish dialog should have stored the information and you can click **Publish** 83 | 84 | This will kick-off a rebuild and deployment of the containers. Once finished go to the web site. You can also browse the Azure portal to see the environment variable that the container is running with. 85 | 86 | ### Completion 87 | 88 | In this section of the lab, we’ve build a new asp.net core service and deployed it to Azure Service Fabric Mesh -------------------------------------------------------------------------------- /Instructions/ServiceFabricMesh/5addservice.md: -------------------------------------------------------------------------------- 1 | # Create an second service to your application 2 | 3 | ## Goal 4 | 5 | The goal of this section is to add a second service to your .net core application and run it in Mesh. 6 | 7 | ## Process 8 | 9 | | **Step** | **Procedure** | 10 | | ------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------- | 11 | | Create a second service for our Service Fabric Mesh Application using Visual Studio | We will use Visual Studio to create a Service Fabric application hosting the container | 12 | | Setup communication between the services | Using HTTPClient to communicate | 13 | | Debug and deploy the services | We will see it running in Mesh | 14 | 15 | ## Add a second to the Service Fabric Application 16 | 17 | 1. In Visual Studio **right-click** the Service Fabric Mesh Application project and choose **Add --> New Service Fabric Service** 18 | 19 | 1. Choose **ASP.NET Core** and click **Next** 20 | 21 | 1. Choose the **API** template 22 | 23 | 1. Open the **ValuesController.cs** file in the **Controllers** folder 24 | 25 | 1. Substitute the **Get()** method with this method: 26 | 27 | ```c# 28 | public String Get() 29 | { 30 | return "Hello from the other side"; 31 | } 32 | ``` 33 | 34 | 1. Save the file 35 | 36 | ## Setup communication between the services 37 | 38 | 1. Open the **About.cshtml.cs** file in the first project you created 39 | 40 | 1. Add the following code snippet to replace the OnGet method 41 | 42 | ```c# 43 | public async Task OnGet() 44 | { 45 | HttpClient client = new HttpClient(); 46 | string response = await client.GetStringAsync("http://web1:2008/api/values); 47 | 48 | Message = response; 49 | } 50 | ``` 51 | 52 | **Note** Make sure to make the URL match the name of the new WebAPI service you created, as well as the port it's listening on. The port, can be found in the service.yaml file in the WebAPI project. 53 | 54 | ## Deploy the new version to Azure Service Fabric Mesh 55 | 56 | 1. To publish the updated application to Service Fabric Mesh in Azure, **Right-click** the Service Fabric Mesh application project and choose **Publish** 57 | 58 | 1. The publish dialog should have stored the information and you can click **Publish** 59 | 60 | This will kick-off a rebuild and deployment of the containers. Once finished go to the web site. You can also browse the Azure portal to see the environment variable that the container is running with. -------------------------------------------------------------------------------- /Instructions/ServiceFabricMesh/README.md: -------------------------------------------------------------------------------- 1 | # ContainersSFLab - Service Fabric Mesh application 2 | 3 | The instructions below walk you through working with ASP.NET for Azure Service Fabric Mesh. 4 | 5 | For more info about Service Fabric Mesh look here: https://docs.microsoft.com/en-us/azure/service-fabric-mesh 6 | 7 | Requirements for running the lab are documented here: https://docs.microsoft.com/en-us/azure/service-fabric-mesh/service-fabric-mesh-howto-setup-developer-environment-sdk 8 | 9 | You'll also need an Azure subscription. If you do not have one, you can get a trial subscription here: https://azure.microsoft.com/en-us/free/ 10 | 11 | ## Lab content 12 | 13 | 1. Build a Docker container and upload it to Azure Container Registry 14 | 1. [Build a Docker container for an existing asp.net application](./1buildacontainer.md) 15 | 1. [Create an Azure Container Registry and push the container](./2createacr.md) 16 | 1. Azure Service Fabric Mesh 101 17 | 1. [Deploy a container to Azure Service Fabric Mesh](./3meshhelloworld.md) 18 | 1. Build an application for Azure Service Fabric Mesh 19 | 1. [Use Visual Studio to create and ASP.NET Core application for Mesh](./4createappvs.md) 20 | 1. [Add more services to your application](./5addservice.md) 21 | 22 | If you are already familiar with building Docker containers and using ACR, you can skip the first part of the lab. -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2018 Mikkel Mork Hegnhoj 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ContainersSFLab 2 | 3 | This repository containers instructions for two Service Fabric container labs: 4 | 5 | 1. [Containerize an existing ASP.NET application using Visual Studio and Service Fabric clusters](./Instructions/ServiceFabricNative.md) 6 | 7 | 1. [Hands-on with Azure Service Fabric Mesh](./Instructions/ServiceFabricMesh/README.md) 8 | -------------------------------------------------------------------------------- /eShopLegacyWebFormsSolution/eShopLegacyWebForms.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.27130.2020 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "eShopLegacyWebForms", "src\eShopLegacyWebForms\eShopLegacyWebForms.csproj", "{4416714A-9BB8-480B-95B3-C2599598E3EC}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Debug|x64 = Debug|x64 12 | Release|Any CPU = Release|Any CPU 13 | Release|x64 = Release|x64 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {4416714A-9BB8-480B-95B3-C2599598E3EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {4416714A-9BB8-480B-95B3-C2599598E3EC}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {4416714A-9BB8-480B-95B3-C2599598E3EC}.Debug|x64.ActiveCfg = Debug|Any CPU 19 | {4416714A-9BB8-480B-95B3-C2599598E3EC}.Debug|x64.Build.0 = Debug|Any CPU 20 | {4416714A-9BB8-480B-95B3-C2599598E3EC}.Release|Any CPU.ActiveCfg = Release|Any CPU 21 | {4416714A-9BB8-480B-95B3-C2599598E3EC}.Release|Any CPU.Build.0 = Release|Any CPU 22 | {4416714A-9BB8-480B-95B3-C2599598E3EC}.Release|x64.ActiveCfg = Release|Any CPU 23 | {4416714A-9BB8-480B-95B3-C2599598E3EC}.Release|x64.Build.0 = Release|Any CPU 24 | EndGlobalSection 25 | GlobalSection(SolutionProperties) = preSolution 26 | HideSolutionNode = FALSE 27 | EndGlobalSection 28 | GlobalSection(ExtensibilityGlobals) = postSolution 29 | SolutionGuid = {7BB9F6BE-2470-4251-80B7-0825E02EEA6F} 30 | EndGlobalSection 31 | EndGlobal 32 | -------------------------------------------------------------------------------- /eShopLegacyWebFormsSolution/src/eShopLegacyWebForms/About.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Title="About" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="About.aspx.cs" Inherits="eShopLegacyWebForms.About" %> 2 | 3 |Use this area to provide additional information.
7 |7 | 8 | Create New 9 | 10 |
11 | 12 |No data was returned. | 17 |
25 | | Name 26 | | 27 |Description 28 | | 29 |Brand 30 | | 31 |Type 32 | | 33 |Price 34 | | 35 |Picture name 36 | | 37 |Stock 38 | | 39 |Restock 40 | | 41 |Max stock 42 | | 43 |
---|
58 | <%#:Item.Name%> 59 |
60 |63 | <%#:Item.Description%> 64 |
65 |68 | <%#:Item.CatalogBrand.Brand%> 69 |
70 |73 | <%#:Item.CatalogType.Type%> 74 |
75 |78 | <%#:Item.Price%> 79 |
80 |83 | <%#:Item.PictureFileName%> 84 |
85 |88 | <%#:Item.AvailableStock%> 89 |
90 |93 | <%#:Item.RestockThreshold%> 94 |
95 |98 | <%#:Item.MaxStockThreshold%> 99 |
100 |