In the previous post we installed Docker on our Ubuntu server. Now we are going to add the Docker repository to our local server so that we can get the latest version of Docker. Step-By-Step Instructions: Open the terminal command line tool and switch to root user with the sudo su command 2. Now we have to add the Docker repo key to our local machine by typing the following command wget -qO- https://get.docker.com/gpg | apt-key add - 3. The next command is to add the Docker repository to the Ubuntu repository source list. Type the following command into the terminal: echo deb http://get.docker.com/ubuntu docker main > /etc/apt/sources.list.d/docker.list 4. Now type apt-get update to get the latest updates from the Docker repository. If you haven't ran update for a while. This might take a while. 5. After the update has completed type docker -v to the version number
1. Type in the following URL into your browser's address bar http://msftdbprodsamples.codeplex.com/ 2. Click on the "Download" button on page 3. Click on the recommended download link 4. Unizp the file you just downloaded 5. Open the SQL Server Management Studio, then right click on "Databases" and then select "Restore Database" 6. Select "Device" under "Source" 7. Click on the "..." button, and the "Select" backup devices will appear, select "File" for "Backup media type" 8. Click on the "Add" button, and select the "AdventureWorks2014.bak" file, then click "OK" 8. Click "OK" on the "Select backup devices" screen 9. Click "OK" on "Restore Database" window 10. A message will pop up that says you have successfully restored the AdventureWorks2014 database 11. The "AdventureWorks2014" database is now ...
As I have mentioned before ASP.NET Core decouples the application from the infrastructure as much as possible. Therefore, you have to tell it exactly what you want in your project. In this blog post we are going to tell ASP.NET that we want to serve static html files in our application. Here are the steps to serve static files in our ASP.NET Core application. 1. Open the "NorthwindCafe.Web" project, then click on the "Startup.cs" file in the project. You will see the following markup in the Configure method public void Configure(IApplicationBuilder app) { app.Run(async (context) => { await context.Response.WriteAsync("Hello World!"); }); } 2. Go into the Configure method, remove the existing code and type in the following code public void Configure(IApplicationBuilder app) { app.UseStaticFiles() } You will notice that the app.UseStaticFil...
Comments
Post a Comment