summaryrefslogtreecommitdiff
path: root/.devcontainer
diff options
context:
space:
mode:
authorPete Johanson <peter@peterjohanson.com>2020-10-09 23:40:10 -0400
committerGitHub <noreply@github.com>2020-10-09 23:40:10 -0400
commit0e6bea03f24a2220396688356530c5f88f57182b (patch)
tree1ad7e781941de3f8f6dd241d540fcc0003cf6da2 /.devcontainer
parente1dcf1514fe2abb22c3569036af2438709c3d4cb (diff)
parent5401afc002ba086ca964aa7a164fbc6dbd1898b1 (diff)
Merge pull request #209 from idan/containerize-development
Add VSCode devcontainer configuration
Diffstat (limited to '.devcontainer')
-rw-r--r--.devcontainer/.bashrc6
-rw-r--r--.devcontainer/Dockerfile11
-rw-r--r--.devcontainer/devcontainer.json8
3 files changed, 25 insertions, 0 deletions
diff --git a/.devcontainer/.bashrc b/.devcontainer/.bashrc
new file mode 100644
index 0000000..855ea75
--- /dev/null
+++ b/.devcontainer/.bashrc
@@ -0,0 +1,6 @@
+export LS_OPTIONS='-F --color=auto'
+eval "`dircolors`"
+alias ls='ls $LS_OPTIONS'
+if [ -f "$WORKSPACE_DIR/zephyr/zephyr-env.sh" ]; then
+ source "$WORKSPACE_DIR/zephyr/zephyr-env.sh"
+fi
diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile
new file mode 100644
index 0000000..184aae9
--- /dev/null
+++ b/.devcontainer/Dockerfile
@@ -0,0 +1,11 @@
+FROM zmkfirmware/zephyr-west-action-arm
+
+RUN apt-get -y update && \
+ apt-get -y upgrade && \
+ apt-get install --no-install-recommends -y \
+ ssh \
+ gpg && \
+ rm -rf /var/lib/apt/lists/*
+
+COPY .bashrc tmp
+RUN mv /tmp/.bashrc ~/.bashrc
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json
new file mode 100644
index 0000000..940b78b
--- /dev/null
+++ b/.devcontainer/devcontainer.json
@@ -0,0 +1,8 @@
+{
+ "name": "ZMK Development",
+ "dockerFile": "Dockerfile",
+ "extensions": ["ms-vscode.cpptools"],
+ "runArgs": ["--security-opt", "label=disable"],
+ "containerEnv": {"WORKSPACE_DIR": "${containerWorkspaceFolder}"}
+}
+