From 2cc06bb7d7e817354f88ab3ba73123718bf566cb Mon Sep 17 00:00:00 2001 From: Vijay Raghavan Aravamudhan Date: Wed, 5 May 2021 18:36:33 +0530 Subject: Upgraded nodejs to '14.16.1' (#482) --- .devcontainer/Dockerfile | 31 +++++++++++++------------------ .devcontainer/devcontainer.json | 22 +++++++++++++--------- 2 files changed, 26 insertions(+), 27 deletions(-) (limited to '.devcontainer') diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index e1af327..048cebe 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,21 +1,16 @@ -#------------------------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See https://go.microsoft.com/fwlink/?linkid=2090316 for license information. -#------------------------------------------------------------------------------------------------------------- +# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.174.0/containers/javascript-node/.devcontainer/base.Dockerfile -# To fully customize the contents of this image, use the following Dockerfile instead: -# https://github.com/microsoft/vscode-dev-containers/tree/v0.117.1/containers/javascript-node-12/.devcontainer/Dockerfile -FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-12 +# [Choice] Node.js version: 14, 12, 10 +ARG VARIANT="14-buster" +FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT} -# ** [Optional] Uncomment this section to install additional packages. ** -# -# ENV DEBIAN_FRONTEND=noninteractive -# RUN apt-get update \ -# && apt-get -y install --no-install-recommends \ -# # -# # Clean up -# && apt-get autoremove -y \ -# && apt-get clean -y \ -# && rm -rf /var/lib/apt/lists/* -# ENV DEBIAN_FRONTEND=dialog +# [Optional] Uncomment this section to install additional OS packages. +# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ +# && apt-get -y install --no-install-recommends +# [Optional] Uncomment if you want to install an additional version of node using nvm +# ARG EXTRA_NODE_VERSION=10 +# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}" + +# [Optional] Uncomment if you want to install more global node modules +# RUN su node -c "npm install -g " diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1c169bf..d7bd89b 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,12 +1,16 @@ -// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at: -// https://github.com/microsoft/vscode-dev-containers/tree/v0.117.1/containers/javascript-node-12 +// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: +// https://github.com/microsoft/vscode-dev-containers/tree/v0.174.0/containers/javascript-node { - "name": "Node.js 12", - "dockerFile": "Dockerfile", + "name": "Node.js", + "build": { + "dockerfile": "Dockerfile", + // Update 'VARIANT' to pick a Node version: 10, 12, 14 + "args": { "VARIANT": "14" } + }, // Set *default* container specific settings.json values on container create. - "settings": { - "terminal.integrated.shell.linux": "/bin/bash" + "settings": { + "terminal.integrated.defaultProfile.linux": "/bin/bash" }, // Add the IDs of extensions you want installed when the container is created. @@ -18,8 +22,8 @@ // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "npm install" + // "postCreateCommand": "npm install", - // Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root. - // "remoteUser": "node" + // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. + "remoteUser": "node" } -- cgit v1.2.3-54-g00ecf