Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit b2a5c92

Browse files
authored
Merge pull request #142 from microsoft/clantz/node-refactor
Remove "lts" / "latest" definitions in favor of version, add eslint to TS definitions
2 parents 65ff0fd + 2b3ba93 commit b2a5c92

File tree

110 files changed

+7472
-704
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+7472
-704
lines changed

containers/azure-functions-node-lts/.devcontainer/Dockerfile renamed to containers/azure-functions-node-10/.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
44
#-------------------------------------------------------------------------------------------------------------
55

6-
FROM node:lts
6+
FROM node:10
77

88
# Avoid warnings by switching to noninteractive
99
ENV DEBIAN_FRONTEND=noninteractive

containers/azure-functions-node-lts/.devcontainer/devcontainer.json renamed to containers/azure-functions-node-10/.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "Azure Functions & Node.js (latest LTS)",
2+
"name": "Azure Functions & Node.js 10",
33
"dockerFile": "Dockerfile",
44
"appPort": 7071,
55

File renamed without changes.

containers/azure-functions-node-lts/README.md renamed to containers/azure-functions-node-10/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Azure Functions & Node.js (latest LTS)
1+
# Azure Functions & Node.js 10
22

33
## Summary
44

5-
*Develop Azure Functions in Node.js. Includes Node.js (latest LTS), eslint, the Azure Functions SDK, and related extensions and dependencies.*
5+
*Develop Azure Functions in Node.js. Includes Node.js 10, eslint, the Azure Functions SDK, and related extensions and dependencies.*
66

77
| Metadata | Value |
88
|----------|-------|
@@ -19,11 +19,11 @@ This definition requires an Azure subscription to use. You can create a [free ac
1919
2. To use VS Code's copy of this definition:
2020
1. Start VS Code and open your project folder.
2121
2. Press <kbd>F1</kbd> select and **Remote-Containers: Add Development Container Configuration Files...** from the command palette.
22-
3. Select the Azure Functions & Node.js (latest LTS) definition.
22+
3. Select the Azure Functions & Node.js 10 definition.
2323

2424
3. To use latest-and-greatest copy of this definition from the repository:
2525
1. Clone this repository.
26-
2. Copy the contents of `containers/azure-functions-node-lts/.devcontainer` to the root of your project folder.
26+
2. Copy the contents of `containers/azure-functions-node-10/.devcontainer` to the root of your project folder.
2727
3. Start VS Code and open your project folder.
2828

2929
4. After following step 2 or 3, the contents of the `.devcontainer` folder in your project can be adapted to meet your needs.
@@ -37,7 +37,7 @@ This definition includes some test code that will help you verify it is working
3737
1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started) to set up your machine.
3838
2. Clone this repository.
3939
3. Start VS Code, press <kbd>F1</kbd>, and select **Remote-Containers: Open Folder in Container...**
40-
4. Select the `containers/azure-functions-node-8` folder.
40+
4. Select the `containers/azure-functions-node-10` folder.
4141
5. After the folder has opened in the container, press <kbd>F1</kbd> and select **Azure Functions: Create Function...**.
4242
6. Enter these options:
4343
1. Yes (when prompted to create a new project)

containers/dotnetcore-2.1/.devcontainer/Dockerfile

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
44
#-------------------------------------------------------------------------------------------------------------
5-
6-
FROM mcr.microsoft.com/dotnet/core/sdk:2.1
5+
ARG DOTNETCORE_VESRION=2.1
6+
FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNETCORE_VESRION}
77

88
# This Dockerfile adds a non-root 'vscode' user with sudo access. However, for Linux,
99
# this user's GID/UID must match your local user UID/GID to avoid permission issues
@@ -15,7 +15,8 @@ ARG USER_GID=$USER_UID
1515

1616
# [Optional] Version of Node.js to install.
1717
ARG INSTALL_NODE="true"
18-
ARG NODE_MAJOR_VERSION="10"
18+
ARG NODE_VERSION="lts/*"
19+
ENV NVM_DIR=/home/vscode/.nvm
1920

2021
# [Optional] Install the Azure CLI
2122
ARG INSTALL_AZURE_CLI="false"
@@ -28,31 +29,46 @@ RUN apt-get update \
2829
&& apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
2930
#
3031
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed
31-
&& apt-get -y install git iproute2 procps lsb-release \
32+
&& apt-get -y install git iproute2 procps apt-transport-https gnupg2 curl lsb-release \
33+
#
34+
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
35+
&& groupadd --gid $USER_GID $USERNAME \
36+
&& useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \
37+
# [Optional] Add sudo support for the non-root user
38+
&& apt-get install -y sudo \
39+
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\
40+
&& chmod 0440 /etc/sudoers.d/$USERNAME \
3241
#
3342
# [Optional] Install Node.js for ASP.NET Core Web Applicationss
3443
&& if [ "$INSTALL_NODE" = "true" ]; then \
35-
curl -sL https://deb.nodesource.com/setup_$NODE_MAJOR_VERSION.x | bash - \
36-
&& apt-get install -y nodejs; \
44+
#
45+
# Install nvm and Node
46+
mkdir ${NVM_DIR} \
47+
&& curl -so- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash 2>&1 \
48+
&& chown -R vscode:vscode ${NVM_DIR} \
49+
&& /bin/bash -c "source $NVM_DIR/nvm.sh \
50+
&& nvm install ${NODE_VERSION} \
51+
&& nvm alias default ${NODE_VERSION}" 2>&1 \
52+
&& INIT_STRING='[ -s "$NVM_DIR/nvm.sh" ] && \\. "$NVM_DIR/nvm.sh" && [ -s "$NVM_DIR/bash_completion" ] && \\. "$NVM_DIR/bash_completion"' \
53+
&& echo $INIT_STRING >> /home/vscode/.bashrc \
54+
&& echo $INIT_STRING >> /home/vscode/.zshrc \
55+
&& echo $INIT_STRING >> /root/.zshrc \
56+
#
57+
# Install yarn
58+
&& curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/pubkey.gpg | apt-key add - 2>/dev/null \
59+
&& echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
60+
&& apt-get update \
61+
&& apt-get -y install --no-install-recommends yarn; \
3762
fi \
3863
#
3964
# [Optional] Install the Azure CLI
4065
&& if [ "$INSTALL_AZURE_CLI" = "true" ]; then \
41-
apt-get install -y apt-transport-https curl gnupg2 lsb-release \
42-
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
66+
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
4367
&& curl -sL https://packages.microsoft.com/keys/microsoft.asc | apt-key add - 2>/dev/null \
4468
&& apt-get update \
4569
&& apt-get install -y azure-cli; \
4670
fi \
4771
#
48-
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
49-
&& groupadd --gid $USER_GID $USERNAME \
50-
&& useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \
51-
# [Optional] Add sudo support for the non-root user
52-
&& apt-get install -y sudo \
53-
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\
54-
&& chmod 0440 /etc/sudoers.d/$USERNAME \
55-
#
5672
# Clean up
5773
&& apt-get autoremove -y \
5874
&& apt-get clean -y \

containers/dotnetcore-2.1/.devcontainer/devcontainer.json

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,33 @@
88
"terminal.integrated.shell.linux": "/bin/bash"
99
},
1010

11-
// Uncomment the next line if you want to publish any ports.
12-
// "appPort": [],
13-
1411
// Uncomment the next line to run commands after the container is created.
1512
// "postCreateCommand": "dotnet restore"
1613

17-
// Uncomment the next line to use a non-root user. On Linux, this will prevent
18-
// new files getting created as root, but you may need to update the USER_UID
19-
// and USER_GID in .devcontainer/Dockerfile to match your user if not 1000.
20-
// "runArgs": [ "-u", "vscode" ],
14+
// Uncomment the next line if you want to publish any ports.
15+
// "appPort": [5000, 5001],
16+
17+
"runArgs": [
18+
// Uncomment the next line to use a non-root user. On Linux, this will prevent
19+
// new files getting created as root, but you may need to update the USER_UID
20+
// and USER_GID in .devcontainer/Dockerfile to match your user if not 1000.
21+
// "-u", "vscode",
22+
23+
// [Optional] Enable HTTPS in ASP.NET by mount a local dev cert exported the dotnet CLI locally:
24+
// Windows PowerShell:
25+
// dotnet dev-certs https --trust; dotnet dev-certs https -ep "$env:USERPROFILE/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
26+
// macOS/Linux terminal:
27+
// dotnet dev-certs https --trust && dotnet dev-certs https -ep "${HOME}/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
28+
//
29+
// After running the command above, uncomment the lines below and open / rebuild the container.
30+
// "-v", "${env:HOME}${env:USERPROFILE}/.aspnet/https:/home/vscode/.aspnet/https"
31+
// "-e", "ASPNETCORE_Kestrel__Endpoints__Https__Url=https://*:5001",
32+
// "-e", "ASPNETCORE_Kestrel__Certificates__Default__Password=SecurePwdGoesHere",
33+
// "-e", "ASPNETCORE_Kestrel__Certificates__Default__Path=/home/vscode/.aspnet/https/aspnetapp.pfx",
34+
35+
// [Optional] Override the default HTTP endpoints - need to listen to '*' for appPort to work
36+
"-e", "ASPNETCORE_Kestrel__Endpoints__Http__Url=http://*:5000"
37+
],
2138

2239
// Add the IDs of extensions you want installed when the container is created in the array below.
2340
"extensions": [

containers/dotnetcore-2.1/README.md

Lines changed: 66 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,79 @@
1212

1313
## Using this definition with an existing folder
1414

15-
A few notes on this definition:
15+
While the definition itself works unmodified, there are some tips that can help you deal with some of the defaults .NET Core uses.
1616

17-
1. Only the integrated terminal is supported by the Remote - Containers extension. You may need to modify `launch.json` configurations to include the following value if an external console is used.
17+
### Using appPort with ASP.NET Core
1818

19-
```json
20-
"console": "integratedTerminal"
21-
```
19+
By default, ASP.NET Core only listens to localhost. The challenge is that ASP.NET Core thinks that localhost is inside the container. If you use the `appPort` property in `.devcontainer/devcontainer.json`, the port is [published](https://docs.docker.com/config/containers/container-networking/#published-ports) rather than forwarded. So you can override the defaults so that ASP.NET will listen to traffic from your local machine as well.
2220

23-
2. Given how frequently ASP.NET applications use Node.js for front end code, this container also includes Node.js. You can change the version of Node.js installed or disable its installation by updating these lines in `.devcontainer/Dockerfile`.
21+
```json
22+
"appPort": [5000, 5001],
23+
"runArgs": [
24+
"-e", "ASPNETCORE_Kestrel__Endpoints__Http__Url=http://*:5000",
25+
"-e", "ASPNETCORE_Kestrel__Endpoints__Https__Url=https://*:5001"
26+
]
27+
```
2428

25-
```Dockerfile
26-
ARG INSTALL_NODE="true"
27-
ARG NODE_MAJOR_VERSION="10"
28-
```
29+
Rebuild the container using the **Remote-Containers: Rebuild Container** command from the Command Palette (<kbd>F1</kbd>) if you've already opened your folder in a container so the settings take effect.
2930

30-
3. If you would like to install the Azure CLI update this line in `.devcontainer/Dockerfile`:
31+
### Enabling HTTPS in ASP.NET Core
3132

32-
```Dockerfile
33-
ARG INSTALL_AZURE_CLI="true"
34-
```
33+
To enable HTTPS in ASP.NET, you can mount an exported copy of your local dev certificate. First, export it using the following command:
3534

36-
Beyond that, just follow these steps to use the definition:
35+
**Windows PowerShell**
36+
37+
```powershell
38+
dotnet dev-certs https --trust; dotnet dev-certs https -ep "$env:USERPROFILE/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
39+
```
40+
41+
**macOS/Linux terminal**
42+
43+
```powershell
44+
dotnet dev-certs https --trust && dotnet dev-certs https -ep "${HOME}/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
45+
```
46+
47+
Next, add the following in the `runArgs` array in `.devcontainer/devcontainer.json` (assuming port 5000 and 5001 are the correct ports):
48+
49+
```json
50+
"appPort": [5000, 5001],
51+
"runArgs": [
52+
"-e", "ASPNETCORE_Kestrel__Endpoints__Http__Url=http://*:5000",
53+
"-e", "ASPNETCORE_Kestrel__Endpoints__Https__Url=https://*:5001",
54+
"-v", "${env:HOME}${env:USERPROFILE}/.aspnet/https:/home/vscode/.aspnet/https",
55+
"-e", "ASPNETCORE_Kestrel__Certificates__Default__Password=SecurePwdGoesHere",
56+
"-e", "ASPNETCORE_Kestrel__Certificates__Default__Path=/home/vscode/.aspnet/https/aspnetapp.pfx"
57+
]
58+
```
59+
60+
Rebuild the container using the **Remote-Containers: Rebuild Container** command from the Command Palette (<kbd>F1</kbd>) if you've already opened your folder in a container so the settings take effect.
61+
62+
### Debug Configuration
63+
64+
Only the integrated terminal is supported by the Remote - Containers extension. You may need to modify `launch.json` configurations to include the following value if an external console is used.
65+
66+
```json
67+
"console": "integratedTerminal"
68+
```
69+
70+
### Installing Node.js or the Azure CLI
71+
72+
Given how frequently ASP.NET applications use Node.js for front end code, this container also includes Node.js. You can change the version of Node.js installed or disable its installation by updating these lines in `.devcontainer/Dockerfile`.
73+
74+
```Dockerfile
75+
ARG INSTALL_NODE="true"
76+
ARG NODE_VERSION="10"
77+
```
78+
79+
If you would like to install the Azure CLI update this line in `.devcontainer/Dockerfile`:
80+
81+
```Dockerfile
82+
ARG INSTALL_AZURE_CLI="true"
83+
```
84+
85+
Rebuild the container using the **Remote-Containers: Rebuild Container** command from the Command Palette (<kbd>F1</kbd>) if you've already opened your folder in a container so the settings take effect.
86+
87+
### Adding the definition to your folder
3788

3889
1. If this is your first time using a development container, please follow the [getting started steps](https://aka.ms/vscode-remote/containers/getting-started) to set up your machine.
3990

containers/dotnetcore-2.2/.devcontainer/Dockerfile

Lines changed: 33 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information.
44
#-------------------------------------------------------------------------------------------------------------
55

6-
FROM mcr.microsoft.com/dotnet/core/sdk:2.2
6+
ARG DOTNETCORE_VESRION=2.2
7+
FROM mcr.microsoft.com/dotnet/core/sdk:${DOTNETCORE_VESRION}
78

8-
## This Dockerfile adds a non-root 'vscode' user with sudo access. However, for Linux,
9+
# This Dockerfile adds a non-root 'vscode' user with sudo access. However, for Linux,
910
# this user's GID/UID must match your local user UID/GID to avoid permission issues
1011
# with bind mounts. Update USER_UID / USER_GID if yours is not 1000. See
1112
# https://aka.ms/vscode-remote/containers/non-root-user for details.
@@ -15,7 +16,8 @@ ARG USER_GID=$USER_UID
1516

1617
# [Optional] Version of Node.js to install.
1718
ARG INSTALL_NODE="true"
18-
ARG NODE_MAJOR_VERSION="10"
19+
ARG NODE_VERSION="lts/*"
20+
ENV NVM_DIR=/home/vscode/.nvm
1921

2022
# [Optional] Install the Azure CLI
2123
ARG INSTALL_AZURE_CLI="false"
@@ -28,31 +30,46 @@ RUN apt-get update \
2830
&& apt-get -y install --no-install-recommends apt-utils dialog 2>&1 \
2931
#
3032
# Verify git, process tools, lsb-release (common in install instructions for CLIs) installed
31-
&& apt-get -y install git iproute2 procps lsb-release \
33+
&& apt-get -y install git iproute2 procps apt-transport-https gnupg2 curl lsb-release \
34+
#
35+
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
36+
&& groupadd --gid $USER_GID $USERNAME \
37+
&& useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \
38+
# [Optional] Add sudo support for the non-root user
39+
&& apt-get install -y sudo \
40+
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\
41+
&& chmod 0440 /etc/sudoers.d/$USERNAME \
3242
#
3343
# [Optional] Install Node.js for ASP.NET Core Web Applicationss
3444
&& if [ "$INSTALL_NODE" = "true" ]; then \
35-
curl -sL https://deb.nodesource.com/setup_$NODE_MAJOR_VERSION.x | bash - \
36-
&& apt-get install -y nodejs; \
45+
#
46+
# Install nvm and Node
47+
mkdir ${NVM_DIR} \
48+
&& curl -so- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash 2>&1 \
49+
&& chown -R vscode:vscode ${NVM_DIR} \
50+
&& /bin/bash -c "source $NVM_DIR/nvm.sh \
51+
&& nvm install ${NODE_VERSION} \
52+
&& nvm alias default ${NODE_VERSION}" 2>&1 \
53+
&& INIT_STRING='[ -s "$NVM_DIR/nvm.sh" ] && \\. "$NVM_DIR/nvm.sh" && [ -s "$NVM_DIR/bash_completion" ] && \\. "$NVM_DIR/bash_completion"' \
54+
&& echo $INIT_STRING >> /home/vscode/.bashrc \
55+
&& echo $INIT_STRING >> /home/vscode/.zshrc \
56+
&& echo $INIT_STRING >> /root/.zshrc \
57+
#
58+
# Install yarn
59+
&& curl -sS https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/pubkey.gpg | apt-key add - 2>/dev/null \
60+
&& echo "deb https://dl.yarnpkg.com/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/ stable main" | tee /etc/apt/sources.list.d/yarn.list \
61+
&& apt-get update \
62+
&& apt-get -y install --no-install-recommends yarn; \
3763
fi \
3864
#
3965
# [Optional] Install the Azure CLI
4066
&& if [ "$INSTALL_AZURE_CLI" = "true" ]; then \
41-
apt-get install -y apt-transport-https curl gnupg2 lsb-release \
42-
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
67+
echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
4368
&& curl -sL https://packages.microsoft.com/keys/microsoft.asc | apt-key add - 2>/dev/null \
4469
&& apt-get update \
4570
&& apt-get install -y azure-cli; \
4671
fi \
4772
#
48-
# Create a non-root user to use if preferred - see https://aka.ms/vscode-remote/containers/non-root-user.
49-
&& groupadd --gid $USER_GID $USERNAME \
50-
&& useradd -s /bin/bash --uid $USER_UID --gid $USER_GID -m $USERNAME \
51-
# [Optional] Add sudo support for the non-root user
52-
&& apt-get install -y sudo \
53-
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME\
54-
&& chmod 0440 /etc/sudoers.d/$USERNAME \
55-
#
5673
# Clean up
5774
&& apt-get autoremove -y \
5875
&& apt-get clean -y \

containers/dotnetcore-2.2/.devcontainer/devcontainer.json

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,33 @@
88
"terminal.integrated.shell.linux": "/bin/bash"
99
},
1010

11-
// Uncomment the next line if you want to publish any ports.
12-
// "appPort": [],
13-
1411
// Uncomment the next line to run commands after the container is created.
1512
// "postCreateCommand": "dotnet restore"
1613

17-
// Uncomment the next line to use a non-root user. On Linux, this will prevent
18-
// new files getting created as root, but you may need to update the USER_UID
19-
// and USER_GID in .devcontainer/Dockerfile to match your user if not 1000.
20-
// "runArgs": [ "-u", "vscode" ],
14+
// Uncomment the next line if you want to publish any ports.
15+
// "appPort": [5000, 5001],
16+
17+
"runArgs": [
18+
// Uncomment the next line to use a non-root user. On Linux, this will prevent
19+
// new files getting created as root, but you may need to update the USER_UID
20+
// and USER_GID in .devcontainer/Dockerfile to match your user if not 1000.
21+
// "-u", "vscode",
22+
23+
// [Optional] Enable HTTPS in ASP.NET by mount a local dev cert exported the dotnet CLI locally:
24+
// Windows PowerShell:
25+
// dotnet dev-certs https --trust; dotnet dev-certs https -ep "$env:USERPROFILE/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
26+
// macOS/Linux terminal:
27+
// dotnet dev-certs https --trust && dotnet dev-certs https -ep "${HOME}/.aspnet/https/aspnetapp.pfx" -p "SecurePwdGoesHere"
28+
//
29+
// After running the command above, uncomment the lines below and open / rebuild the container.
30+
// "-v", "${env:HOME}${env:USERPROFILE}/.aspnet/https:/home/vscode/.aspnet/https"
31+
// "-e", "ASPNETCORE_Kestrel__Endpoints__Https__Url=https://*:5001",
32+
// "-e", "ASPNETCORE_Kestrel__Certificates__Default__Password=SecurePwdGoesHere",
33+
// "-e", "ASPNETCORE_Kestrel__Certificates__Default__Path=/home/vscode/.aspnet/https/aspnetapp.pfx",
34+
35+
// [Optional] Override the default HTTP endpoints - need to listen to '*' for appPort to work
36+
"-e", "ASPNETCORE_Kestrel__Endpoints__Http__Url=http://*:5000"
37+
],
2138

2239
// Add the IDs of extensions you want installed when the container is created in the array below.
2340
"extensions": [

0 commit comments

Comments
 (0)