1. Understanding Docker -- 2. Docker Quick Reference -- 3. Getting Ready -- 4. Docker Images and Containers -- 5. Docker Volumes and Networks -- 6. Docker Compose -- 7. Docker Swarms -- 8. Containerized Development.;Find out how to use Docker in your ASP.NET Core MVC applications, and how containers
Essential Docker for ASP.NET Core MVC
β Scribed by Freeman, Adam
- Publisher
- Apress
- Year
- 2017
- Tongue
- English
- Leaves
- 179
- Category
- Library
No coin nor oath required. For personal study only.
β¦ Synopsis
Find out how to use Docker in your ASP.NET Core MVC applications, and how containers make it easier to develop, deploy and manage those applications in production environments. Packed with examples and practical demonstrations, this book will help you deploy even large-scale, cross-platform web applications from development into production.
Best-selling authorAdam Freemantakes you on a whirlwind tour of Docker, from creating a consistent development environment for your team to deploying a project and scaling it up in production. By the end of the book, you will have a solid understanding of what Docker does, how it does it and why it is useful when developing and deploying ASP.NET Core MVC applications.What You Will Learn
Gain a solid understanding of Docker: what it is, and why you should be using it for your ASP.NET Core MVC applications
Use Docker to create a development platform for ASP.NET Core MVC so that applications behave consistently across development and production
Use Docker to test, deploy and manage ASP.NET Core MVC containers
Use Docker Swarms to scale up applications to cope with large workloads
Who This Book Is For
ASP.NET Core MVC developers who want to use Docker to containerize and manage their applications
β¦ Table of Contents
Contents at a Glance......Page 5
Contents......Page 6
About the Author......Page 12
About the Technical Reviewer......Page 13
Is This an Exhaustive Docker Reference?......Page 14
What Is the Consistency Problem?......Page 15
How Does Docker Solve the Consistency Problem?......Page 16
Arenβt Docker Containers Just Virtual Machines?......Page 17
Do Docker Containers Have Limitations?......Page 18
Summary......Page 19
Docker Images Quick Reference......Page 20
Docker Containers Quick Reference......Page 22
Docker Volumes Quick Reference......Page 23
Docker Software-Defined Networks Quick Reference......Page 24
Docker Compose Quick Reference......Page 25
Docker Swarm Quick Reference......Page 27
Summary......Page 29
Installing the Required Software Packages......Page 30
Installing .NET Core SDK on Linux......Page 31
Installing .NET Core on macOS......Page 32
Installing Node.js on Windows......Page 33
Installing Node.js on Linux......Page 34
Installing Git on Windows or macOS......Page 35
Installing Docker for Windows......Page 36
Installing Docker for Linux......Page 38
Installing Docker on macOS......Page 40
Installing Visual Studio 2017......Page 41
Installing Visual Studio Code for macOS......Page 42
Testing the Development Environment......Page 43
Creating the Example MVC Application......Page 44
Configuring the Client-Side Packages......Page 45
Creating the Data Model and Repository......Page 46
Preparing the Controller and View......Page 48
Configuring ASP.NET and Creating the Entry Point......Page 49
Running the MVC Application......Page 50
Summary......Page 51
Chapter 4: Docker Images and Containers......Page 52
Preparing for This Chapter......Page 53
Downloading Images......Page 54
Deleting Images......Page 55
Setting the Base Image......Page 56
Running the Application......Page 57
Creating a Custom Image......Page 58
Creating Additional Containers from an Image......Page 59
Starting Containers......Page 60
Stopping Containers......Page 62
Creating and Starting Containers with a Single Command......Page 63
Modifying Containers......Page 64
Changing a Container......Page 65
Examining Changes to a Container......Page 67
Executing Commands in Containers......Page 68
Creating Images from Modified Containers......Page 70
Tagging the Images for Publication......Page 71
Publishing the Images......Page 72
Switching to Windows Containers......Page 74
Creating a .NET Core Windows Image......Page 75
Creating the Image and the Container......Page 76
Testing the Windows Container......Page 77
Executing Commands in Windows Containers......Page 78
Interacting with Windows Containers......Page 79
Summary......Page 80
Chapter 5: Docker Volumes and Networks......Page 81
Working with Volumes......Page 82
Demonstrating the Problem......Page 83
Step 1: Updating the Docker File......Page 84
Step 3: Creating the Container......Page 85
Adding a Database to the Example Application......Page 86
Pulling and Inspecting the Database Image......Page 87
Creating the Volume and Container......Page 88
Preparing the Example Application......Page 89
Creating the Repository Class......Page 90
Configuring the Application......Page 92
Creating the Database Migration......Page 93
Changing the View......Page 94
Testing the Application......Page 95
Working with Software-Defined Networks......Page 97
Scaling the MVC Application......Page 99
Creating Custom Software-Defined Networks......Page 100
Connecting Containers to Custom Networks......Page 101
Creating the MVC Containers......Page 102
Adding a Load Balancer......Page 103
Summary......Page 107
Chapter 6: Docker Compose......Page 108
Changing the View Message......Page 109
Creating the Compose File......Page 110
Composing the Database......Page 112
Testing the Application Setup and Teardown......Page 114
Modifying the MVC Application......Page 115
Describing the Database Initialization and MVC Services......Page 118
Composing the Load Balancer......Page 121
Processing the Compose File......Page 123
Starting the MVC Application......Page 124
Scaling the MVC Service......Page 125
Stopping the Application......Page 127
Summary......Page 128
Chapter 7: Docker Swarms......Page 129
Preparing the Swarm......Page 131
Creating the Swarm......Page 132
Manually Deploying Services on a Swarm......Page 133
Creating the Database Service......Page 134
Preparing the Database......Page 137
Creating the MVC Application Service......Page 139
Testing the MVC Application Service......Page 142
Creating the Load Balancer......Page 143
Deploying to a Swarm Using a Compose File......Page 145
Performing the Deployment......Page 146
Preparing the Database......Page 147
Scaling Services......Page 148
Taking Nodes Out of Service......Page 149
Updating a Service......Page 150
Creating Global Services......Page 152
Summary......Page 154
Chapter 8: Containerized Development......Page 155
Using Development Mode to Prepare the Database......Page 156
Understanding Containerized ASP.NET Core Development......Page 157
Adding the DotNet Watcher Package......Page 158
Creating the Development Image and Compose File......Page 159
Preparing for a Development Session......Page 163
Starting a Development Session......Page 164
Setting Up Container Debugging......Page 166
Creating the Debugging Docker File......Page 167
Creating the Debugging Service......Page 168
Starting the Debugging Service......Page 170
Debugging with Visual Studio 2017......Page 171
Testing the Debugger......Page 172
Debugging with Visual Studio Code......Page 173
Testing the Debugger......Page 176
Summary......Page 177
Index......Page 178
β¦ Subjects
Computer Science;Programming;Science
π SIMILAR VOLUMES
<p>Find out how to use Docker in your ASP.NET Core MVC applications, and how containers make it easier to develop, deploy and manage those applications in production environments. Packed with examples and practical demonstrations, this book will help you deploy even large-scale, cross-platform web a
<span>Angular 5 and .NET Core 2 updates for this book are now available. Follow the </span><span>Download Source Code</span><span> link for this book on the Apress website.</span><span><br><br>Discover Angular, the leading client-side web framework, from the point of view of an ASP.NET Core MVC deve
Discover Angular, the leading client-side web framework, from the point of view of an ASP.NET Core MVC developer. Best-selling author Adam Freeman brings these two key technologies together and explains how to use ASP.NET Core MVC to provide back-end services for Angular applications. This fast-pace
<p><p></p><p>Combine the strengths of Angular, the leading framework for developing complex client-side applications, and ASP.NET Core MVC 3, the latest evolution of Microsoftβs framework for server-side applications. This new edition offers updated Angular, ASP.NET Core 3, Entity Framework Core 3 e
<p><b>Learn how web applications can be built efficiently using ASP.NET Core 2.0 and related frameworks</b></p><h4>Key Features</h4><ul><li>Get to grips with the new features and APIs introduced in ASP.NET Core 2.0</li><li>Leverage the MVC framework and Entity Framework Core 2 to build efficient app