diff options
author | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-05-03 14:13:51 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-03 08:43:51 +0000 |
commit | 7c8405633f49a0de576aaa6dea228c6bbd179dff (patch) | |
tree | 15eb3df4f2eaf0125b1bd28abd48354e725e17a1 | |
parent | Upgraded electron to '12.0.6'. (#1327) (diff) | |
download | ferdium-app-7c8405633f49a0de576aaa6dea228c6bbd179dff.tar.gz ferdium-app-7c8405633f49a0de576aaa6dea228c6bbd179dff.tar.zst ferdium-app-7c8405633f49a0de576aaa6dea228c6bbd179dff.zip |
Adding vscode dev container (#1330)
-rw-r--r-- | .devcontainer/Dockerfile | 16 | ||||
-rw-r--r-- | .devcontainer/devcontainer.json | 29 |
2 files changed, 45 insertions, 0 deletions
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 000000000..048cebe2d --- /dev/null +++ b/.devcontainer/Dockerfile | |||
@@ -0,0 +1,16 @@ | |||
1 | # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.174.0/containers/javascript-node/.devcontainer/base.Dockerfile | ||
2 | |||
3 | # [Choice] Node.js version: 14, 12, 10 | ||
4 | ARG VARIANT="14-buster" | ||
5 | FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT} | ||
6 | |||
7 | # [Optional] Uncomment this section to install additional OS packages. | ||
8 | # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
9 | # && apt-get -y install --no-install-recommends <your-package-list-here> | ||
10 | |||
11 | # [Optional] Uncomment if you want to install an additional version of node using nvm | ||
12 | # ARG EXTRA_NODE_VERSION=10 | ||
13 | # RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}" | ||
14 | |||
15 | # [Optional] Uncomment if you want to install more global node modules | ||
16 | # RUN su node -c "npm install -g <your-package-list-here>" | ||
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..d7bd89bea --- /dev/null +++ b/.devcontainer/devcontainer.json | |||
@@ -0,0 +1,29 @@ | |||
1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
2 | // https://github.com/microsoft/vscode-dev-containers/tree/v0.174.0/containers/javascript-node | ||
3 | { | ||
4 | "name": "Node.js", | ||
5 | "build": { | ||
6 | "dockerfile": "Dockerfile", | ||
7 | // Update 'VARIANT' to pick a Node version: 10, 12, 14 | ||
8 | "args": { "VARIANT": "14" } | ||
9 | }, | ||
10 | |||
11 | // Set *default* container specific settings.json values on container create. | ||
12 | "settings": { | ||
13 | "terminal.integrated.defaultProfile.linux": "/bin/bash" | ||
14 | }, | ||
15 | |||
16 | // Add the IDs of extensions you want installed when the container is created. | ||
17 | "extensions": [ | ||
18 | "dbaeumer.vscode-eslint" | ||
19 | ], | ||
20 | |||
21 | // Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
22 | // "forwardPorts": [], | ||
23 | |||
24 | // Use 'postCreateCommand' to run commands after the container is created. | ||
25 | // "postCreateCommand": "npm install", | ||
26 | |||
27 | // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
28 | "remoteUser": "node" | ||
29 | } | ||