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

Commit ece7573

Browse files
committed
Improve .NET Core containers, switch to MCR images
1 parent d1998aa commit ece7573

File tree

54 files changed

+440
-26
lines changed

Some content is hidden

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

54 files changed

+440
-26
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Dev Container Editing",
3-
"dockerFile": ".devcontainer/Dockerfile",
3+
"dockerFile": "Dockerfile",
44
"extensions": [
55
"yzhang.markdown-all-in-one",
66
"streetsidesoftware.code-spell-checker",
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#-----------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See LICENSE in the project root for license information.
4+
#-----------------------------------------------------------------------------------------
5+
6+
FROM mcr.microsoft.com/dotnet/core/sdk:2.1
7+
8+
# Install git, process tools, bash
9+
RUN apt-get update && apt-get -y install git procps
10+
11+
# Install Azure Functions and Azure CLI
12+
RUN apt-get install -y apt-transport-https curl gnupg2 lsb-release \
13+
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
14+
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-$(lsb_release -cs)-prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list \
15+
&& curl -L https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
16+
&& apt-get update \
17+
&& apt-get install -y azure-cli azure-functions-core-tools
18+
19+
# Clean up
20+
RUN apt-get autoremove -y \
21+
&& apt-get clean -y \
22+
&& rm -rf /var/lib/apt/lists/*
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "Azure Functions & C# (.NET Core 2.1)",
3+
"dockerFile": "Dockerfile",
4+
"appPort": 7071,
5+
"extensions": [
6+
"ms-azuretools.vscode-azurefunctions",
7+
"ms-vscode.csharp"
8+
]
9+
}
File renamed without changes.
Lines changed: 23 additions & 0 deletions
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#-----------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See LICENSE in the project root for license information.
4+
#-----------------------------------------------------------------------------------------
5+
6+
FROM mcr.microsoft.com/dotnet/core/sdk:latest
7+
8+
# Install git, process tools, bash
9+
RUN apt-get update && apt-get -y install git procps
10+
11+
# Install Azure Functions and Azure CLI
12+
RUN apt-get install -y apt-transport-https curl gnupg2 lsb-release \
13+
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
14+
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-$(lsb_release -cs)-prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list \
15+
&& curl -L https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
16+
&& apt-get update \
17+
&& apt-get install -y azure-cli azure-functions-core-tools
18+
19+
# Clean up
20+
RUN apt-get autoremove -y \
21+
&& apt-get clean -y \
22+
&& rm -rf /var/lib/apt/lists/*
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "Azure Functions & C# (.NET Core Latest)",
3+
"dockerFile": "Dockerfile",
4+
"appPort": 7071,
5+
"extensions": [
6+
"ms-azuretools.vscode-azurefunctions",
7+
"ms-vscode.csharp"
8+
]
9+
}
File renamed without changes.
Lines changed: 23 additions & 0 deletions

containers/azure-functions-node-8/.devcontainer/Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Licensed under the MIT License. See LICENSE in the project root for license information.
44
#-----------------------------------------------------------------------------------------
55

6-
FROM microsoft/dotnet:2.1-sdk-bionic
6+
FROM mcr.microsoft.com/dotnet/core/sdk:2.1
77

88
# Install git, process tools, bash
99
RUN apt-get update && apt-get -y install git procps
@@ -18,13 +18,13 @@ RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh
1818
# Install eslint
1919
RUN /bin/bash -c "source $HOME/.nvm/nvm.sh && npm install -g eslint"
2020

21-
# Install Azure Functions
22-
RUN apt-get install -y apt-transport-https \
23-
&& curl -sSO https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb \
24-
&& dpkg -i packages-microsoft-prod.deb \
25-
&& rm packages-microsoft-prod.deb \
21+
# Install Azure Functions and Azure CLI
22+
RUN apt-get install -y apt-transport-https curl gnupg2 lsb-release \
23+
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/azure-cli/ $(lsb_release -cs) main" > /etc/apt/sources.list.d/azure-cli.list \
24+
&& echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-$(lsb_release -cs)-prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list \
25+
&& curl -L https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
2626
&& apt-get update \
27-
&& apt-get install -y azure-functions-core-tools
27+
&& apt-get install -y azure-cli azure-functions-core-tools
2828

2929
# Clean up
3030
RUN apt-get autoremove -y \

0 commit comments

Comments
 (0)