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

Commit f55efec

Browse files
committed
Azure functions Node LTS, fixed Azure ML
1 parent 3bf1f61 commit f55efec

File tree

6 files changed

+75
-0
lines changed

6 files changed

+75
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ FROM microsoft/dotnet:2.1-sdk-bionic
99
RUN apt-get update && apt-get -y install git procps
1010

1111
# Install Node.js
12+
# Update "setup" to "setup_<verison>.x" if you want a specific verison of Node.js
13+
# See https://github.com/nodesource/distributions/tree/master/deb for a list
1214
RUN apt-get install -y curl \
1315
&& curl -sSL https://deb.nodesource.com/setup_8.x | bash - \
1416
&& apt-get update \
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 microsoft/dotnet:2.1-sdk-bionic
7+
8+
# Install git, process tools
9+
RUN apt-get update && apt-get -y install git procps
10+
11+
# Install Node.js
12+
# Update "setup" to "setup_<verison>.x" if you want a specific verison of Node.js
13+
# See https://github.com/nodesource/distributions/tree/master/deb for a list
14+
RUN apt-get install -y curl \
15+
&& curl -sSL https://deb.nodesource.com/setup | bash - \
16+
&& apt-get update \
17+
&& apt-get install -y nodejs
18+
19+
# Install Azure Functions
20+
RUN apt-get install -y apt-transport-https \
21+
&& curl -sSO https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb \
22+
&& dpkg -i packages-microsoft-prod.deb \
23+
&& rm packages-microsoft-prod.deb \
24+
&& apt-get update \
25+
&& apt-get install -y azure-functions-core-tools
26+
27+
# Clean up
28+
RUN apt-get autoremove -y \
29+
&& apt-get clean -y \
30+
&& rm -rf /var/lib/apt/lists/*
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "Azure Functions & Node.js",
3+
"dockerFile": "Dockerfile",
4+
"appPort": 7071,
5+
"extensions": [
6+
"ms-azuretools.vscode-azurefunctions"
7+
]
8+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
README.md
2+
test-project
3+
.vscode
4+
.npmignore
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Azure Functions w/Node.js v8
2+
3+
## Summary
4+
5+
*A basic dev container definition for building Node.js based Azure Functions in a container. Includes everything you need to get up and running.*
6+
7+
| Metadata | Value |
8+
|----------|-------|
9+
| *Contributors* | The VS Code Team |
10+
| *Definition type* | Dockerfile |
11+
| *Languages, platforms* | Azure Functions, Node.js, JavaScript |
12+
13+
## Usage
14+
15+
[See here for information on using this definition with an existing project](../../README.md#using-a-definition).
16+
17+
If you prefer, you can also just look through the contents of the `.devcontainer` folder to understand how to make changes to your own project.
18+
19+
## License
20+
21+
Copyright (c) Microsoft Corporation. All rights reserved.
22+
23+
Licensed under the MIT License. See [LICENSE](../../LICENSE).
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "Azure Machine Learning",
3+
"dockerFile": "Dockerfile",
4+
"extensions": [
5+
"ms-toolsai.vscode-ai"
6+
],
7+
"runArgs": ["-v","/var/run/docker.sock:/var/run/docker.sock"]
8+
}

0 commit comments

Comments
 (0)