Skip to content

Commit fc70fcb

Browse files
authored
Merge pull request #5823 from dotnet/master
Update live with current master
2 parents d8bf497 + d9161d6 commit fc70fcb

File tree

21 files changed

+140
-126
lines changed

21 files changed

+140
-126
lines changed

docs/core/docker/building-net-docker-images.md

Lines changed: 26 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ When multiple applications use common images on the same machine, memory is shar
5252

5353
To achieve the goals above, we provide image variants under [`microsoft/dotnet`](https://hub.docker.com/r/microsoft/dotnet/).
5454

55-
* `microsoft/dotnet:<version>-sdk`(`microsoft/dotnet:2.0.0-sdk`) This image contains the .NET Core SDK, which includes the .NET Core and Command Line Tools (CLI). This image maps to the **development scenario**. You use this image for local development, debugging, and unit testing. This image can also be used for your **build** scenarios. Using `microsoft/dotnet:sdk` always gives you the latest version.
55+
* `microsoft/dotnet:<version>-sdk`(`microsoft/dotnet:2.1-sdk`) This image contains the .NET Core SDK, which includes the .NET Core and Command Line Tools (CLI). This image maps to the **development scenario**. You use this image for local development, debugging, and unit testing. This image can also be used for your **build** scenarios. Using `microsoft/dotnet:sdk` always gives you the latest version.
5656

5757
> [!TIP]
5858
> If you are unsure about your needs, you want to use the `microsoft/dotnet:<version>-sdk` image. As the "de facto" image, it's designed to be used as a throw away container (mount your source code and start the container to start your app), and as the base image to build other images from.
@@ -74,9 +74,9 @@ Latest versions of each variant:
7474

7575
## Samples to explore
7676

77-
* [This ASP.NET Core Docker sample](https://github.com/dotnet/dotnet-docker-samples/tree/master/aspnetapp) demonstrates a best practice pattern for building Docker images for ASP.NET Core apps for production. The sample works with both Linux and Windows containers.
77+
* [This ASP.NET Core Docker sample](https://github.com/dotnet/dotnet-docker/tree/master/samples/aspnetapp) demonstrates a best practice pattern for building Docker images for ASP.NET Core apps for production. The sample works with both Linux and Windows containers.
7878

79-
* This .NET Core Docker sample demonstrates a best practice pattern for [building Docker images for .NET Core apps for production.](https://github.com/dotnet/dotnet-docker-samples/tree/master/dotnetapp-prod)
79+
* This .NET Core Docker sample demonstrates a best practice pattern for [building Docker images for .NET Core apps for production.](https://github.com/dotnet/dotnet-docker/tree/master/samples/dotnetapp)
8080

8181
## Your first ASP.NET Core Docker app
8282

@@ -96,9 +96,9 @@ It uses the [Docker multi-stage build feature](https://docs.docker.com/engine/us
9696

9797
To build and run, install the following items:
9898

99-
#### .NET Core 2.0 SDK
99+
#### .NET Core 2.1 SDK
100100

101-
* Install [.NET Core SDK 2.0](https://www.microsoft.com/net/core).
101+
* Install [.NET Core SDK 2.1](https://www.microsoft.com/net/core).
102102

103103
* Install your favorite code editor, if you haven't already.
104104

@@ -107,7 +107,7 @@ To build and run, install the following items:
107107
108108
#### Installing Docker Client
109109

110-
Install [Docker 17.06](https://docs.docker.com/release-notes/docker-ce/) or later of the Docker client.
110+
Install [Docker 18.03](https://docs.docker.com/release-notes/docker-ce/) or later of the Docker client.
111111

112112
The Docker client can be installed in:
113113

@@ -131,22 +131,26 @@ The Docker client can be installed in:
131131

132132
### Getting the sample application
133133

134-
The easiest way to get the sample is by cloning the [samples repository](https://github.com/dotnet/dotnet-docker-samples) with git, using the following instructions:
134+
The easiest way to get the sample is by cloning the [.NET Core Docker repository](https://github.com/dotnet/dotnet-docker) with git, using the following instructions:
135135

136136
```console
137-
git clone https://github.com/dotnet/dotnet-docker-samples/
137+
git clone https://github.com/dotnet/dotnet-docker
138138
```
139139

140-
You can also download the repository (it is small) as a zip from the .NET Core Docker samples repository.
140+
You can also download the repository (it is small) as a zip from the .NET Core Docker repository.
141141

142142
### Run the ASP.NET app locally
143143

144144
For a reference point, before we containerize the application, first run the application locally.
145145

146-
You can build and run the application locally with the .NET Core 2.0 SDK using the following commands (The instructions assume the root of the repository):
146+
You can build and run the application locally with the .NET Core 2.1 SDK using the following commands (The instructions assume the root of the repository):
147147

148148
```console
149-
cd aspnetapp
149+
cd dotnet-docker
150+
cd samples
151+
cd aspnetapp // solution scope where the dockerfile is located
152+
cd aspnetapp // project scope
153+
150154
dotnet run
151155
```
152156

@@ -157,7 +161,10 @@ After the application starts, visit **http://localhost:5000** in your web browse
157161
You can build and run the sample in Docker using Linux containers using the following commands (The instructions assume the root of the repository):
158162

159163
```console
160-
cd aspnetapp
164+
cd dotnet-docker
165+
cd samples
166+
cd aspnetapp // solution scope where the dockerfile is located
167+
161168
docker build -t aspnetapp .
162169
docker run -it --rm -p 5000:80 --name aspnetcore_sample aspnetapp
163170
```
@@ -172,7 +179,10 @@ After the application starts, visit **http://localhost:5000** in your web browse
172179
You can build and run the sample in Docker using Windows containers using the following commands (The instructions assume the root of the repository):
173180

174181
```console
175-
cd aspnetapp
182+
cd dotnet-docker
183+
cd samples
184+
cd aspnetapp // solution scope where the dockerfile is located
185+
176186
docker build -t aspnetapp .
177187
docker run -it --rm --name aspnetcore_sample aspnetapp
178188
```
@@ -230,10 +240,10 @@ dotnet published/aspnetapp.dll
230240

231241
### Docker Images used in this sample
232242

233-
The following Docker images are used in this sample
243+
The following Docker images are used in this sample's dockerfile.
234244

235-
* `microsoft/aspnetcore-build:2.0`
236-
* `microsoft/aspnetcore:2.0`
245+
* `microsoft/dotnet:2.1-sdk`
246+
* `microsoft/dotnet:2.1-aspnetcore-runtime`
237247

238248
Congratulations! you have just:
239249
> [!div class="checklist"]

docs/core/tools/dotnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Command | Function
242242

243243
### Global Tools commands
244244

245-
[.NET Core Global Tools](global-tools.md) are available strating with .NET Core SDK 2.1.300:
245+
[.NET Core Global Tools](global-tools.md) are available starting with .NET Core SDK 2.1.300:
246246

247247
Command | Function
248248
--- | ---

docs/csharp/programming-guide/classes-and-structs/local-functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The following example uses an asynchronous method named `GetMultipleAsync` to pa
6868

6969
[!code-csharp[LocalFunctionAsync`](../../../../samples/snippets/csharp/programming-guide/classes-and-structs/local-functions-async1.cs)]
7070

71-
As we did with the method iterator, we can refactor the code from this example to perform the validation before calling the asynchronous method. As the output from the following example shows, the <xref:System.ArgumentOutOfRangeException> is not wrapped in a <x:System.AggregateException>.
71+
As we did with the method iterator, we can refactor the code from this example to perform the validation before calling the asynchronous method. As the output from the following example shows, the <xref:System.ArgumentOutOfRangeException> is not wrapped in a <xref:System.AggregateException>.
7272

7373
[!code-csharp[LocalFunctionAsync`](../../../../samples/snippets/csharp/programming-guide/classes-and-structs/local-functions-async2.cs)]
7474

docs/framework/data/adonet/connection-strings-and-configuration-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ Embedding connection strings in your application's code can lead to security vul
130130

131131
|Provider|Description|
132132
|--------------|-----------------|
133-
|<!--zz<xref:System.Configuration.RSAProtectedConfigurationProvider>-->`System.Configuration.RSAProtectedConfigurationProvider`|Uses the RSA encryption algorithm to encrypt and decrypt data. The RSA algorithm can be used for both public key encryption and digital signatures. It is also known as "public key" or asymmetrical encryption because it employs two different keys. You can use the [ASP.NET IIS Registration Tool (Aspnet_regiis.exe)](http://msdn.microsoft.com/library/6491c41e-e2b0-481f-9863-db3614d5f96b) to encrypt sections in a Web.config file and manage the encryption keys. ASP.NET decrypts the configuration file when it processes the file. The identity of the ASP.NET application must have read access to the encryption key that is used to encrypt and decrypt the encrypted sections.|
134-
|<!--zz<xref:System.Configuration.DPAPIProtectedConfigurationProvider>-->`System.Configuration.DPAPIProtectedConfigurationProvider`|Uses the Windows Data Protection API (DPAPI) to encrypt configuration sections. It uses the Windows built-in cryptographic services and can be configured for either machine-specific or user-account-specific protection. Machine-specific protection is useful for multiple applications on the same server that need to share information. User-account-specific protection can be used with services that run with a specific user identity, such as a shared hosting environment. Each application runs under a separate identity which restricts access to resources such as files and databases.|
133+
|<xref:System.Configuration.RsaProtectedConfigurationProvider>|Uses the RSA encryption algorithm to encrypt and decrypt data. The RSA algorithm can be used for both public key encryption and digital signatures. It is also known as "public key" or asymmetrical encryption because it employs two different keys. You can use the [ASP.NET IIS Registration Tool (Aspnet_regiis.exe)](http://msdn.microsoft.com/library/6491c41e-e2b0-481f-9863-db3614d5f96b) to encrypt sections in a Web.config file and manage the encryption keys. ASP.NET decrypts the configuration file when it processes the file. The identity of the ASP.NET application must have read access to the encryption key that is used to encrypt and decrypt the encrypted sections.|
134+
|<xref:System.Configuration.DpapiProtectedConfigurationProvider>|Uses the Windows Data Protection API (DPAPI) to encrypt configuration sections. It uses the Windows built-in cryptographic services and can be configured for either machine-specific or user-account-specific protection. Machine-specific protection is useful for multiple applications on the same server that need to share information. User-account-specific protection can be used with services that run with a specific user identity, such as a shared hosting environment. Each application runs under a separate identity which restricts access to resources such as files and databases.|
135135

136136
Both providers offer strong encryption of data. However, if you are planning to use the same encrypted configuration file on multiple servers, such as a Web farm, only the `RsaProtectedConfigurationProvider` enables you to export the encryption keys used to encrypt the data and import them on another server. For more information, see [Importing and Exporting Protected Configuration RSA Key Containers](http://msdn.microsoft.com/library/f3022b39-f17f-48c1-b067-025eab0ce8bc).
137137

0 commit comments

Comments
 (0)