This demo is based on a Blog post on https://stormpath.com/blog/tutorial-deploy-asp-net-core-on-linux-with-docker
Other references:
-
https://medium.com/trafi-tech-beat/running-net-core-on-docker-c438889eb5a#.ibbhafarm
-
https://docs.microsoft.com/en-us/dotnet/articles/csharp/tutorials/microservices
-
To run this example, open a cmd window and run the dockerbuild.cmd. This will build the build the dot net program, create the docker image, and start the docker container.
-
If all is successful, you should beable to connect to http://localhost:8080/api/employee and you will get a json object with an employee.
-
To stop the docker contianer run 'Docker kill mydemo'
-
To clean up old docker containers run 'FOR /f "tokens=*" %i IN ('docker ps -a -q') DO docker rm %i'
We've made some big updates in this release, so it’s important that you spend a few minutes to learn what’s new.
You've created a new ASP.NET Core project. Learn what's new
- Sample pages using ASP.NET Core MVC
- Gulp and Bower for managing client-side libraries
- Theming using Bootstrap
- Add a Controller and View
- Add an appsetting in config and access it in app.
- Manage User Secrets using Secret Manager.
- Use logging to log a message.
- Add packages using NuGet.
- Add client packages using Bower.
- Target development, staging or production environment.
- Conceptual overview of what is ASP.NET Core
- Fundamentals of ASP.NET Core such as Startup and middleware.
- Working with Data
- Security
- Client side development
- Develop on different platforms
- Read more on the documentation site
We would love to hear your feedback