From d87d002e5b22081012e7a413391573d3f05afa50 Mon Sep 17 00:00:00 2001 From: hubwriter Date: Tue, 5 Apr 2022 15:07:22 +0100 Subject: [PATCH 1/3] Create Dockerfile --- .../test-custom-devcontainer/Dockerfile | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .devcontainer/test-custom-devcontainer/Dockerfile diff --git a/.devcontainer/test-custom-devcontainer/Dockerfile b/.devcontainer/test-custom-devcontainer/Dockerfile new file mode 100644 index 0000000000..89633bf993 --- /dev/null +++ b/.devcontainer/test-custom-devcontainer/Dockerfile @@ -0,0 +1,21 @@ +# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/javascript-node/.devcontainer/base.Dockerfile + +# [Choice] Node.js version: 16, 14, 12 +ARG VARIANT="16-buster" +FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT} + +# [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 " + +# Install the GitHub CLI see: +# https://github.com/microsoft/vscode-dev-containers/blob/3d59f9fe37edb68f78874620f33dac5a62ef2b93/script-library/docs/github.md +COPY library-scripts/github-debian.sh /tmp/library-scripts/ +RUN apt-get update && bash /tmp/library-scripts/github-debian.sh From e24fd8a34d765de503b0d156dbe333530479dc8a Mon Sep 17 00:00:00 2001 From: hubwriter Date: Tue, 5 Apr 2022 15:14:11 +0100 Subject: [PATCH 2/3] Update devcontainer.json --- .devcontainer/test-custom-devcontainer/devcontainer.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.devcontainer/test-custom-devcontainer/devcontainer.json b/.devcontainer/test-custom-devcontainer/devcontainer.json index 99d645cc03..11e23e0ca3 100644 --- a/.devcontainer/test-custom-devcontainer/devcontainer.json +++ b/.devcontainer/test-custom-devcontainer/devcontainer.json @@ -26,8 +26,7 @@ "sissel.shopify-liquid", "davidanson.vscode-markdownlint", "bierner.markdown-preview-github-styles", - "streetsidesoftware.code-spell-checker", - "alistairchristie.open-reusables" + "streetsidesoftware.code-spell-checker" ], // Use 'forwardPorts' to make a list of ports inside the container available locally. From 666f592dbd7199621f6041da1a2aa4cac3dd11b7 Mon Sep 17 00:00:00 2001 From: hubwriter Date: Tue, 5 Apr 2022 15:33:03 +0100 Subject: [PATCH 3/3] Remove Dockerfile ref --- .devcontainer/test-custom-devcontainer/devcontainer.json | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.devcontainer/test-custom-devcontainer/devcontainer.json b/.devcontainer/test-custom-devcontainer/devcontainer.json index 11e23e0ca3..67869ed146 100644 --- a/.devcontainer/test-custom-devcontainer/devcontainer.json +++ b/.devcontainer/test-custom-devcontainer/devcontainer.json @@ -1,13 +1,5 @@ -// 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.177.0/containers/javascript-node -// - { "name": "docs.github.com", - "build": { - "dockerfile": "Dockerfile", - // Update 'VARIANT' to pick a Node version: 12, 14, 16 - "args": { "VARIANT": "16" } - }, // Set *default* container specific settings.json values on container create. "settings": {