summaryrefslogtreecommitdiff
path: root/.devcontainer
diff options
context:
space:
mode:
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}"}
+}
+