From 059cdc2761c6a524d3250fe88cbfd8bce6d204b9 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Thu, 3 Dec 2020 11:18:13 -0500 Subject: [PATCH] Update devcontainer to include npm and publish port 3000 for working with documentation updates --- .devcontainer/Dockerfile | 18 +++++++++++++----- .devcontainer/devcontainer.json | 2 +- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 6c5677f4..db9d5a3b 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -2,14 +2,22 @@ FROM zmkfirmware/zephyr-west-action-arm ENV LC_ALL=C -RUN apt-get -y update && \ - apt-get -y upgrade && \ - apt-get install --no-install-recommends -y \ +RUN apt-get -y update \ + && apt-get -y upgrade \ + && apt-get install --no-install-recommends -y \ ssh \ nano \ locales \ - gpg && \ - rm -rf /var/lib/apt/lists/* + ssh \ + gpg \ + gpg-agent \ + curl \ + && curl -sL https://deb.nodesource.com/setup_14.x | bash - \ + && apt-get -y update \ + && apt-get install --no-install-recommends -y nodejs \ + && node --version \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* COPY .bashrc tmp RUN mv /tmp/.bashrc ~/.bashrc diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 0de8bcfb..b74d9c00 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,7 +2,7 @@ "name": "ZMK Development", "dockerFile": "Dockerfile", "extensions": ["ms-vscode.cpptools"], - "runArgs": ["--security-opt", "label=disable"], + "runArgs": ["--security-opt", "label=disable", "--publish", "3000"], "containerEnv": {"WORKSPACE_DIR": "${containerWorkspaceFolder}"}, "settings": { "terminal.integrated.shell.linux": "/bin/bash"